This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, lxml.html, httplib, urllib, csv | |
# 0 - Business Name | |
# 1 - Owner Name | |
# 2 - File Number | |
query_type = urllib.quote(sys.argv[1]) | |
# e.g. "Promiscuous Fork" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find / -xdev -printf '%p\t%c\n' | sort > /tmp/before | |
# Do some command here!!! | |
find / -xdev -printf '%p\t%c\n' | sort > /tmp/after | |
diff -u /tmp/before /tmp/after | less | |
rm /tmp/before | |
rm /tmp/after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# sudo apt-get install qrencode | |
# sudo apt-get install imagemagick | |
port=8080 | |
# Lock screen in 10 seconds | |
(sleep 10; gnome-screensaver-command -l) & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&{ | |
(New-Object System.Net.WebClient).DownloadFile("http://dl.google.com/chrome/install/chrome_installer.exe", "$env:TEMP\chrome_installer.exe") | |
& "$env:TEMP\chrome_installer.exe" /silent /install | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module Webadministration | |
Get-ChildItem -Path IIS:\Sites | Where-Object { $_.State -eq 'Started' } | ForEach-Object { $_.Bindings.Collection } | ForEach-Object { $_.Protocol + '://' + $_.BindingInformation.Split(":")[2] } | Sort-Object | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/tools | |
# install all sdk packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo -n "Enter the host name and press [ENTER]: " | |
read host | |
echo | openssl s_client -connect $host:443 2>/dev/null | openssl x509 -noout -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem C:\ -Recurse -ErrorAction 'silentlycontinue' | Where-Object {$_.Length -gt 100MB} | Sort-Object -Property Length -Descending | Select-Object -First 10 | Format-Table -AutoSize -Wrap -Property FullName,Length | Out-String -Width 4096 | Out-File "foo.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true ; do echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 1500 ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&{ | |
# Select PFX file dialog | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | |
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFileDialog.Title = "Select SSL Certificate in PFX format" | |
$OpenFileDialog.Filter = "Personal Information Exchange (*.pfx)|*.pfx" | |
$OpenFileDialog.ShowDialog() | Out-Null | |
$PFXFile = $OpenFileDialog.FileName | |
# Get password dialog |
OlderNewer