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
#!/bin/sh | |
#----------------------------------------------------------------------------------------# | |
# Get remote ipv4 address # | |
#----------------------------------------------------------------------------------------# | |
curl -s "http://v4.ipv6-test.com/api/myip.php" |
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
#!/bin/sh | |
#----------------------------------------------------------------------------------------# | |
# Get local ip address for wifi # | |
#----------------------------------------------------------------------------------------# | |
ifconfig en0 |grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}' |
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
#!/bin/sh | |
#----------------------------------------------------------------------------------------# | |
# ipv6 ip address # | |
#----------------------------------------------------------------------------------------# | |
curl -s 'http://v6.ipv6-test.com/api/myip.php' |
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
#!/bin/sh | |
#===================================================================================================================================# | |
# cipher.sh | |
# Encypting files on the Mac with Openssl | |
# Openssl aes-256 encryption with public private keys and a password | |
# Openssl keys stored in aes-256 encryption dmg | |
# dmg and openssl password stored in secondary keychain that isnt unlocked at login | |
#===================================================================================================================================# |
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
#!/bin/sh | |
# remove file from being tracked by git , but dont delete it | |
git rm --cached filename |
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
#!/bin/sh | |
# download a list of urls from a text file with wget | |
wget -i ~/Desktop/urls.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
#!/bin/sh | |
#----------------------------------------------------------------------------------------# | |
# wget mirror website # | |
#----------------------------------------------------------------------------------------# | |
wget -m http://textfiles.com/hacking/INTERNET/ |
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
#!/bin/sh | |
# ========================= | |
# = wget download website = | |
# ========================= | |
wget --wait=20 --limit-rate=20K -r -p -U Mozilla http://www.somesite.com/ | |
# quick and dirty | |
wget -r -p -U Mozilla http://somesite.com |
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
#!/bin/sh | |
# ========================= | |
# = wget directory prefix = | |
# ========================= | |
# example | |
# wget --directory-prefix=Downloads http://example.com/video.mov |
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
#!/bin/sh | |
# ======================= | |
# = wget check for 404s = | |
# ======================= | |
wget get --spider -nd -r <URL> |
NewerOlder