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
/* | |
console-slots.js by ytcracker | |
for being a degenerate in the javascript console | |
copy and paste this into your javascript console, type spin(), hit enter | |
keep pressing up and enter for hardcore degen mode | |
setInterval(spin, 500); for ultimate degen mode | |
*/ |
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
# nfs/smb issues, thoroughput sucks, network being a chungus | |
# 10.11+ | |
# on | |
sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)" | |
# off | |
sudo nvram boot-args="$(nvram boot-args 2>/dev/null | sed -e $'s/boot-args\t//;s/serverperfmode=1//')" |
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/bash | |
# quickly turn handoff and airplay on or off | |
# usage: ./handplay.sh [on | off] | |
if [ "$1" == "off" ]; then | |
defaults write com.apple.NetworkBrowser DisableAirDrop -bool yes | |
defaults write "$HOME/Library/Preferences/ByHost/com.apple.coreservices.useractivityd.plist" ActivityAdvertisingAllowed -bool no | |
defaults write "$HOME/Library/Preferences/ByHost/com.apple.coreservices.useractivityd.plist" ActivityReceivingAllowed -bool no | |
echo "handoff and airplay are off." |
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
# osx | |
sudo lsof -iTCP -sTCP:LISTEN -n -P | |
# loonix | |
sudo netstat -ltnp | |
sudo lsof -i :[port number] | |
sudo fuser [port number]/tcp | |
ps -p [port number] -o comm= |
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/bash | |
# quickly turn burp passthrough on or off on osx wi-fi from ye olde shell | |
# usage: sudo ./burp_wifi.sh [on | off] | |
# feel free to edit to taste / make $2 carry the adapter, etc. | |
# ytcracker loves you | |
if [ $EUID -ne 0 ]; then | |
echo "this script must be run as root." | |
exit 1 |
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
### Keybase proof | |
I hereby claim: | |
* I am realytcracker on github. | |
* I am realytcracker (https://keybase.io/realytcracker) on keybase. | |
* I have a public key whose fingerprint is 6977 4C15 8544 E740 1196 D004 C9AC 2648 BDFE F693 | |
To claim this, I am signing this object: |