Skip to content

Instantly share code, notes, and snippets.

View cavebatsofware's full-sized avatar
🧙

Grant DeFayette cavebatsofware

🧙
  • NY
View GitHub Profile
@mpasternacki
mpasternacki / freebsd_on_mbp.md
Created January 23, 2015 17:12
FreeBSD on a MacBook Pro

FreeBSD on a MacBook Pro

Since 2008 or 2009 I work on Apple hardware and OS: back then I grew tired of Linux desktop (which is going to be MASSIVE NEXT YEAR, at least since 2001), and switched to something that Just Works. Six years later, it less and less Just Works, started turning into spyware and nagware, and doesn't need much less maintenance than Linux desktop — at least for my work, which is system administration and software development, probably it is better for the mythical End User person. Work needed to get software I need running is not less obscure than work I'd need to do on Linux or othe Unix-like system. I am finding myself turning away from GUI programs that I used to appreciate, and most of the time I use OSX to just run a terminal, Firefox, and Emacs. GUI that used to be nice and unintrusive, got annoying. Either I came full circle in the last 15 years of my computer usage, or the OSX experience degraded in last 5 years. Again, this is from a sysadmin/developer ki

@kstevens715
kstevens715 / throttle.sh
Created January 22, 2013 20:51
Throttle your loopback interface in Linux to test low bandwith. I was testing an AJAX file upload progress bar and found this helpful.
# Throttle LO interface
sudo tc qdisc add dev lo root handle 1: htb default 12
sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 20kbps ceil 20kbps
sudo tc qdisc add dev lo parent 1:12 netem delay 1000ms
# Go back to the way things were.
sudo tc qdisc del dev lo root
@founddrama
founddrama / gist:1491205
Last active September 28, 2015 20:18
taking phantomjs for a test drive
// http://www.phantomjs.org/
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
console.log('[phantomjs] Loading page...');
page.open('http://blog.founddrama.net/', function(status){