Skip to content

Instantly share code, notes, and snippets.

@DewArmy
DewArmy / usbarmory-network.sh
Created August 31, 2017 13:35 — forked from MichalPekala/usbarmory-network.sh
USB armory network sharing on macOS
# enable IP forwarding
sudo sysctl -w net.inet.ip.forwarding=1
# enable PF firewall
sudo pfctl -e
# Option 1: add NAT rule after en4 is up (USB armory already plugged and started)
echo "nat on en0 from en4:network to any -> (en0)" | sudo pfctl -f -
# Option 2: add NAT rule before USB armory is plugged, requires specifying its network
@DewArmy
DewArmy / gist:2d771f32cf63726b224885e0d353a3f2
Created September 7, 2017 11:19 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons

CVS Receipt

CVS is notorious for their receipts, so I decided to share my experience with a simple CodePen.

With some quick and dirty HTML, CSS, and JavaScript - I present you with the never-ending CVS receipt. I even made a crappy web scrapper to get real product names from their site (https://github.com/garrettbear/CVScraper)

A Pen by Garrett W. on CodePen.

License.

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 64; killall Dock

64 is icon size