Recently Added

Notes & Bookmarks

  1. # Hex > RGB $ echo '#!/bin/bash read -p "Hex: " hx printf "R: %d\nG: %d\nB: %d\n" 0x${hx:0:2} 0x${hx:2:2} 0x${hx:4:2}' > $ ./
  2. Forgoing woes of having to use Hyper-V (obv.), this is a great, but badly formatted, read on debugging NT; #hyperv
  3. # Check Existing Resolution $ for i in `ls *.remmina`; do cat | grep reso; done | uniq # Adjust All $ sed -i -e 's/930/970/g' *.remmina
  4. "If you choose not to decide, you still have made a choice..." #freewill
  5. "Into the orchard I walk peering way past the gate, wilted scenes for us who couldn't wait..."

Expand RAID Array on ESXi with No VM Downtime

Updated : 16:41:33pm, 14th Feb 2017

Jan 17th, 2017 : This is old (circa 2014) but it has relevance still.

If it weren't obviously from the detail below, this is only applicable to ESXi / vSphere environments running on HP ProLiant chassis.


In Defense of Our Good Name?

Updated : 01:47:03am, 14th Feb 2017

Frankly, it is of little surprise (and to a point a bearable burden) that much of what you do, say, look for and desire is captured, monitored and scrutinised with the aim of, essentially, marketing the world around you and the content that you're served (although the real reasons are generally far more totalitarian).

Your existence and your interests are nothing more than a row in a database; you are a numerical metric who's behavior and reliance on technology feeds the beast that serves you. Even the most vigilant and staunchly defiant resistors who aim to exist below the radar through Tor or various 'anonymising proxies' would be hard pushed to guarantee they'd never (at least willfully) submitted or contributed some sort of seed to the stockpile.


HTTP(s) Issues w/ Wine32/64 (Steam, uPlay etc.)

Updated : 15:43:10pm, 11th Feb 2017

This is a copy (for my sake) of a thread I've started on the WineHQ forums.

It's a well documented problem but I am unsure of what correlation(s) have been made previously. Intention of this thread is to progress with further debugging.


Surgical Meth Machine - 'I'm Invisible'

Updated : 12:47:50pm, 2nd Apr 2016

Been waiting for this for ages... and I bet the rest of the album is brutally heavy!


Remote Installation of Binary with Powershell & WMI v2

Updated : 16:20:37pm, 22nd Mar 2016

Below is an improved approach to something previously detailed.

As then, the intention of this script was to deploy an AEM agent to remote workstations using -searchbase scopes, with logging. Progress notification (i.e. bar) and a more efficient foreach are on the cards, but this can be easily tweaked to allow deployment of any other silent binary, such as a Bomgar agent;



Updated : 16:08:36pm, 9th Feb 2017


It's doing the rounds but I've no idea where it originally cropped up... almost certainly 4chan or Reddit.


The Structure of Linux

Updated : 15:20:32pm, 20th Mar 2016

The Structure of Linux

Source :


Bob the Process

Updated : 15:17:19pm, 20th Mar 2016

Bob the Process

Bob. Bob the Process.


The Impact of MINIX

Updated : 19:11:06pm, 18th Mar 2016

Grab a cup of tea and sit down for an utterly fascinating and entertaining 10 minutes :)


Your Path

Updated : 17:23:47pm, 16th Jan 2017

Your Path

Move Inactive Workstations to New OU

Updated : 14:43:00pm, 10th Mar 2016

Whilst this function is straightforward, you could of course do anything against the applicable objects (e.g. disable-adaccount);

import-module activedirectory

$inactive = (Get-Date).Adddays(-(180)) 

$comps = get-adcomputer -filter {LastLogonTimeStamp -lt $inactive} -properties * | select-object Name,@{Name="Stamp"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp)}

foreach($comp in $comps){move-adobject $comp –targetpath “ou=Inactive Machines,dc=domain,dc=com”}

Run line by line, or save entire contents as inactive_machines.ps1.


Masscanning the Internet

Updated : 13:48:56pm, 13th Mar 2016

This is a topic I've long considered discussing in public and whilst there are better examples, I found this an interesting watch... if not frustrating, for reasons of my own.

Long term, I might look to use this as a catalyst to upgrade this thread to a 'project' as there is far too much to focus on this element of interest in just a few paragraphs...


HS-210 : QNAP <-> Debian

Updated : 16:31:55pm, 16th Jun 2016

A few months ago, I came across a vendor selling off the QNAP HS-210 for ~£120, which was an incredible bargain. I toyed with getting two, maybe even three, of the units knowing they'd serve my requirements adequately and, for the money, efficiently too. As it goes, I ended up getting just one, and not two days later the vendor stopping selling it entirely... much to my frustration. I guess they were selling off their stockpile; hindsight, eh?

The unit itself is, well, frankly quirky. Clearly, it's beautiful, sleek and aesthetically pleasing. With two 'hot-swap' bays, it's also very manageable and the unit is actually fairly robust considering it's, really, just a T-bone embedded board with no fans. As such, it operates silently, which was my main desire. Obviously with this being a low-end model with only two bays (thus offering only RAID0/1), I wasn't expecting incredible write speeds... which is great, considering this is the biggest problem it has (though, not surprisingly, it does get incredibly hot).


The Expert

Updated : 14:19:45pm, 13th Mar 2016

A classic example of my day when I have to deal with anybody outside of engineering :)

Update Domain Workstations Hosts File

Updated : 12:29:47pm, 12th Mar 2016

Almost identical to the last nugget, you can use this as a tweak to update all the local hosts file on workstations in a domain;

## machine scope(s)
$comps_all_ws = get-adcomputer -searchbase "dc=domain,dc=local" -filter {OperatingSystem -notlike "*Server*"} | select Name -expandproperty Name | sort-object -descending

## globals
$log_file = "c:\host_change.txt"
$log_file_off = "c:\host_change-offline.txt"
$host_file = "\\$comp\c$\Windows\system32\Drivers\etc\hosts"
$ip = ""
$host_record = "server    server.domain.local"

## update cycle
foreach($comp in $comps_test){

      ## check machine if online, else ignore
      if(test-connection $comp -count 1 -quiet){
            $check_hosts = @(get-content $host_file | where-object {$_.Contains("$ip")}).count

            if($check_hosts -eq "1"){
                  write-host "Record exists in $comp"
                  add-content "$log_file" "Record exists in $comp"
                  write-host "Record does not exist in $comp. Updating hosts file..."
                  add-content "$log_file" "Record does not exist in $comp. Updating hosts file..."

                  add-content "$host_file" "`n$ip `t $host_record"

                  $check_host = @(get-content $host_file | where-object {$_.Contains("$ip")}).count

                  if($check_host -eq "1"){
                        write-host "Record now exists in $comp"
                        add-content "$log_file" "Record now exists in $comp"
                        write-host "Record does not exist in $comp and has not been added."
                        add-content "$log_file" "Record does not exist in $comp and has not been added."

            write-host "$comp is offline. `n"
            add-content "$log_file_off" "$comp is offline. `n"


[...] © 2006-2017

Comments, submissions and errors to desk[at]

Material and content adheres to the Creative Commons (NC-SA 4.0) license.