Skip to content

Instantly share code, notes, and snippets.

View hackingbutlegal's full-sized avatar
💭
I may be slow to respond.

Jackie Singh hackingbutlegal

💭
I may be slow to respond.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am find-evil on github.
  • I am jacquelinestokes (https://keybase.io/jacquelinestokes) on keybase.
  • I have a public key whose fingerprint is 9F86 7287 B1B7 900C 795C 1D15 9719 9ABB 544E D97E

To claim this, I am signing this object:

@hackingbutlegal
hackingbutlegal / long-domain-names.txt
Created January 21, 2016 07:51 — forked from jedisct1/long-domain-names.txt
Long domain names are long. Hopeless SEO, domains registered by cats and WTF domains.
1-tr-18su-ka-8dow-56-oo9-13swx-r-k-ife-0nj-rnq-ihb-dd-p-1-0-z-a.info.
292fu2013-1-2-3-htt-4t3l60-zqn673-w9gp7kip0422wemrzsftm-htm-com.info.
aljumahiriyahalarabiyahallibiyahashshabiyahalishtirakiyahaluzma.info.
anderson-piedmont-spartanburg-greenville-easley-spine-pain-care.info.
associationfrancaisedesdirecteursdelaphotographiedelatelevision.info.
audio-player-zawqkerrhfoepdnmvbdkslahgjvklahjkfqqqojcgrtsksmcls.info.
ausencosandwellascentisaaxwaynegossruddswanheinercrimemellifont.info.
australianpublicsectoranti-corruptionconference2009fraudrortsin.info.
bewarecrimestoppersassistcorruptpolicepoliticcrimecriminalfraud.info.
camp-the-lycian-way-camps-the-lycian-way-camping-lycian-way-map.info.
@hackingbutlegal
hackingbutlegal / vj_rsync.sh
Created November 19, 2015 16:47
Some simple rsync thing
#!/bin/bash
# vj_rsync.sh
echo ""
echo "this script does some rsync thing"
echo ""
read -p "press [enter] to start"
echo ""
# hard code the pw between the quotes or fix the script to read input from the command line
@hackingbutlegal
hackingbutlegal / gist:b33e9064a0092392bd90
Created September 16, 2015 19:36
Excel: Trim leading char
=TRIM(CLEAN(SUBSTITUTE(A1,CHAR(1),"")))
@hackingbutlegal
hackingbutlegal / gist:cf4ed2601b7b0fef8157
Created August 24, 2015 21:12
Regex to match on only valid IPs including local and bcast
grep -E -o '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' file.txt
@hackingbutlegal
hackingbutlegal / gist:5743955ee411043ce5ba
Created August 20, 2015 23:28
Find files with certain extension and move to specific dir
find / -iname "*.ext" -exec mv {} /root/file_dir \;
### Keybase proof
I hereby claim:
* I am jackiesingh on github.
* I am jacquelinestokes (https://keybase.io/jacquelinestokes) on keybase.
* I have a public key whose fingerprint is 9F86 7287 B1B7 900C 795C 1D15 9719 9ABB 544E D97E
To claim this, I am signing this object:
@hackingbutlegal
hackingbutlegal / startup_processes.ps1
Last active August 29, 2015 14:07
PowerShell script to pull Windows startup items
echo "Host,StarupProcess" > StartupProcesses.csv
Get-ADComputer -filter {OperatingSystem -like "*Windows*"} | foreach { $_.Name} > computers.txt
foreach ($x in (get-content computers.txt) )
{
if (Test-Connection -Count 1 -computername $x) {
$Object = Get-WmiObject -Class Win32_StartupCommand -computername $x
foreach ($y in $Object.Command) {
echo "$x,$y" >> StartupProcesses.csv
}
} else {
@hackingbutlegal
hackingbutlegal / gist:080653e37b41eb209e8a
Created October 17, 2014 02:08
Run Chrome Canary for OS X with args to disable SSL 3.0
do shell script "open -a /Applications/Google\ Chrome\ Canary.app --args --ssl-version-min=tls1"
@hackingbutlegal
hackingbutlegal / gist:0b0cc8bbfba072da0be7
Created October 13, 2014 03:29
What service is listening on my ports?
lsof -Pnl +M -i4