View Encrypted Slider
eval(function(p, a, c, k, e, r) { | |
e = function(c) { | |
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) | |
}; | |
if (!''.replace(/^/, String)) { | |
while (c--) r[e(c)] = k[c] || e(c); | |
k = [function(e) { | |
return r[e] | |
}]; | |
e = function() { |
View Find folders greater than 2 gigs
du -s * |awk '{if ($1/1024 > 2000 ) print $1/1024 " " $2 " " $3 " " $4}' |
View Comparing_branched_File
Param($Param1,$Param2) | |
switch ($Param2) | |
{ | |
"dev" {$searchPath = "C:\Development\"} | |
"prod" {$searchPath = "C:\Development\Prod"} | |
"test" {$searchPath = "C:\Development\Testing"} | |
default {$searchPath = "C:\Development\"} | |
} |
View wakeonlan
#!/usr/bin/env python | |
import socket | |
import struct | |
def wake_on_lan(macaddress): | |
""" Switches on remote computers using WOL. """ | |
# Check macaddress format and try to compensate. | |
if len(macaddress) == 12: |
View SendXmppMessage
[Reflection.Assembly]::LoadFile("c:\temp\agsXMPP.dll") | |
$clientConnection = new-object agsXMPP.XmppClientConnection | |
$clientConnection.Server = "gmail.com" | |
$clientConnection.ConnectServer = "talk.google.com" | |
$clientConnection.Open("EnterYourUserNameHere","EnterYourPasswordHere") | |
$message = new-object agsXMPP.protocol.client.Message("Who do you want to send the message to ","Errr is this thing on") | |
$clientConnection.Send($message) |
View Uninstall App
$app = Get-WmiObject -Class Win32_Product | Where-Object { | |
$_.Name -match "Software Name" | |
} | |
$app.Uninstall() |
View PingNetwork
gwmi -query "select * from win32_pingstatus where Address='192.168.0.1'" | |
#{1..254 | %{ gwmi -query ("select * from win32_pingstatus where Address='192.168.0."+ $_+ "'") }} |
View gist:408624
[string](new-object System.Net.WebClient).DownloadString("http://api.stackoverflow.com/0.8/Users/42069?type=jsontext") |
View pcScanner.ps1
([adsisearcher]"objectcategory=computer").findall() | %{([adsi]$_.path).cn + $_.properties.operatingsystemversion} |
View hash-password.ps1
<# | |
. SYNOPSIS | |
Generates the password hash for a RDP password using Win32 Calls | |
. EXAMPLE | |
Dot Source the file first | |
PS > . .\encrypter.ps1 | |
PS > $passWordHash = encryptPassword -password "test" | |
01000000D08C9DDF0115D1118C7A00C04FC297EB0100000080630FB7A06C204FAF5B37C7ECAA094 | |
90000000008000000700073007700000003660000C0000000100000007551E07D8A0434083A36FF | |
F65ADED0BD0000000004800000A0000000100000004B20BB957F6B6D3CFA6D262B007B9EC110000 |
OlderNewer