I hereby claim:
- I am rycuda on github.
- I am rycuda (https://keybase.io/rycuda) on keybase.
- I have a public key ASBjDvrQwY6WwZvoXlEjcwUExCBIryjfvYdskUXqNMgwrAo
To claim this, I am signing this object:
| #! /bin/bash | |
| # | |
| # collectd - start and stop the statistics collection daemon | |
| # http://collectd.org/ | |
| # | |
| # Copyright (C) 2005-2006 Florian Forster <octo@verplant.org> | |
| # Copyright (C) 2006-2009 Sebastian Harl <tokkee@debian.org> | |
| # | |
| ### BEGIN INIT INFO |
| // ==UserScript== | |
| // @name Register bullshit removal | |
| // @version 0.3 | |
| // @homepage https://gist.github.com/rycudasakkran/8ce3c317c3f5472945bd/edit | |
| // @description Remove bullshit from register articles | |
| // @match http://www.theregister.co.uk/* | |
| // ==/UserScript== | |
| (function() { | |
| $WSUSServer = "server name" | |
| $WSUSPort = 8530 | |
| Connect-PoshWSUSServer $WSUSServer -port $WSUSPort | |
| $WSUSClients = (Get-PoshWSUSClient).fulldomainname | |
| (Get-ADComputer -Filter *).dnshostname | ForEach-Object {if (-not ($WSUSClients -contains $_)) {$_}} | sort |
| Search-ADAccount -ComputersOnly -AccountInactive -timespan 30.00:00:00 | sort name | ft name,distinguishedname | |
| Search-ADAccount -UsersOnly -AccountInactive -timespan 30.00:00:00 | Get-ADUser | Where-Object {$_.enabled} | sort name | ft name,distinguishedname |
| $applications =@(); | |
| if ($true) { | |
| $_status, $_appstatus = cmd /c .\niniteone.exe /audit /silent . ; | |
| if (-not ($status -like 'Failed*')) { | |
| while ($_appstatus) { | |
| $_item, $_appstatus = $_appstatus ; | |
| $_name, $_status = $_item.split(':'); | |
| $_application = new-object -typename psobject -prop (@{'name' = $_name; 'status' = $_status.trim()}) ; | |
| $applications += ,$_application; |
| function recurse-ADmembership { | |
| param( | |
| [parameter(ValueFromPipeline=$true)][Microsoft.ActiveDirectory.Management.ADGroup]$group, | |
| [Alias('groups')][hashtable]$_expandedgroups=@{} | |
| ) | |
| process{ | |
| $group | get-adgroupmember | foreach-object { | |
| if (($_.objectclass -eq 'group') -and (-not $_expandedgroups.ContainsKey($_.DistinguishedName))) { | |
| $_ | recurse-ADmembership -groups $_expandedgroups | |
| $_expandedgroups.add($_.DistinguishedName,$true) |
| 550g ish of beef shin, | |
| whole chorizo link 225g there abouts, | |
| three large carrots, | |
| two large parsnips, | |
| two fist sized turnips, | |
| one of those half swedes that s'bries and tesco do, | |
| bag of smallish new spuds 750g (ish), | |
| two medium-large leeks, | |
| couple of big onions, | |
| 200g bag of kale, |
| function Insert-Value { | |
| param( | |
| [parameter(ValueFromPipeline=$true)][System.Object[]]$array, | |
| [int]$position, | |
| $value | |
| ) | |
| end{ | |
| $upper = ($input.GetUpperBound(0)) | |
| if ( $position -eq 0 ) | |
| { return @($value) + $input } |
I hereby claim:
To claim this, I am signing this object:
| Get-ChildItem HKCU:\Software\SimonTatham\PuTTY\Sessions\ | %{ | |
| Set-ItemProperty -path $_.pspath -name "Colour0" -value "131,148,150" | |
| Set-ItemProperty -path $_.pspath -name "Colour1" -value "147,161,161" | |
| Set-ItemProperty -path $_.pspath -name "Colour2" -value "0,43,54" | |
| Set-ItemProperty -path $_.pspath -name "Colour3" -value "7,54,66" | |
| Set-ItemProperty -path $_.pspath -name "Colour4" -value "0,43,54" | |
| Set-ItemProperty -path $_.pspath -name "Colour5" -value "238,232,213" | |
| Set-ItemProperty -path $_.pspath -name "Colour6" -value "7,54,66" | |
| Set-ItemProperty -path $_.pspath -name "Colour7" -value "0,43,54" | |
| Set-ItemProperty -path $_.pspath -name "Colour8" -value "220,50,47" |