Recently Played

Skinny Puppy - 'Film' 6 Dec 11:35pm
- ''
- ''
Crowbar - 'Dream weaver' 6 Dec 11:35pm
Vader - 'Warlords' 6 Dec 11:31pm
Sepultura - 'Dead Embryonic Cells %5BOriginal Mix%5D' 6 Dec 11:26pm

Recently Added

Notes & Bookmarks

  1. for i in `cat match | grep '.xml:' | sed -e 's/\:.*$//' | uniq`; do grep -Hin '\\\\' | grep '.xml:' | sed -e 's/\.xml.*$//' | uniq; done
  2. The hand was forced, but it seems despite their (welcomed) new approach, Microsoft don't quite want to let go! #microsoftteams #norpmortarpic.twitter.com/EiNogjLtrv
  3. Why does the Order History Report (https://www.amazon.co.uk/gp/b2b/reports) only work on http://amazon.com? #manualadditions... @AmazonUK @AmazonHelp
  4. cat mn | awk -F"=" '{split($2,a,",");print a[1]}' && sed 's/.*\///g' nm && sed -r 's/\/([^/]*)$//' ou (Who needs macros when you're a man?)
  5. Ghost in the Machine or huge backlog? Whatever happened to our phantom order (Wed 5th ~3PM)? Nothing in the History either... @Argos_Onlinepic.twitter.com/jcIczqDpnv

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

Updated : 11:58:27am, 22nd Apr 2016

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;

[...]

'Googly'

Updated : 15:25:40pm, 20th Mar 2016

'Googly'

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 : http://imgur.com/yWfCliF

[...]

Bob the Process

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

Bob the Process

Bob. Bob the Process.

[...]

Behemoth - 'Chant for Eschaton 2000 (Live)'

Updated : 05:31:19am, 20th Mar 2016

POLISH POWER.

[...]

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 :)

[...]

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 = "10.3.1.6"
$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"
            }
            else{
                  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"
                  }
                  else{
                        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."
                  }

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

}

[...]

INIT: no more processes left in this runlevel

Updated : 14:10:57pm, 31st Jan 2016

I had this issue recently with my WRAP board running the Debian-based Voyage Linux, though the issue is not limited to either of those.

In short, the issue is that there is no TTY binding defined within /etc/inittab; usually this is as a result of the start-up / shutdown init scripts not completing cleanly (i.e. shutting down the device before a power-cycle has finished etc.).

[...]

Remote Installation of Binary with Powershell & WMI v1

Updated : 15:27:39pm, 22nd Mar 2016

This needs a fair bit of tweaking, but I'm recording it here for legacy's sake (and as a reminder to iron out the creases).

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.

[...]

© 2006-2016 SGNLS.net.

Comments, submissions and errors to desk[at]sgnls.net.