View ipaddress_wan.sh
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" |
View ipaddress_lan.sh
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}' |
View ipaddress_ipv6.sh
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' |
View cipher.sh
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 | |
#===================================================================================================================================# |
View git_remove_file_from_being_tracked.sh
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 |
View wget_urls_from_file.sh
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 |
View wget_mirror_website.sh
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/ |
View wget_download_website.sh
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 |
View wget_directory_prefix.sh
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 |
View wget_check_for_404s.sh
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