Skip to content

Instantly share code, notes, and snippets.

View brianloveswords's full-sized avatar
💭
computering

Brian J Brennan brianloveswords

💭
computering
View GitHub Profile
while inotifywait -e MODIFY -r $HOME 2> /dev/null
do
bundle exec nanoc compile
done;
#!/bin/sh
git rebase --interactive --autosquash \
$(git merge-base $(git symbolic-ref --short HEAD) master)
function celebrate(emoji, length) {
if (length <= 0) return;
const idx = Math.random() * emoji.length | 0;
process.stdout.write(emoji[idx]);
return celebrate(emoji, length - 1);
}
const celebrationEmoji = ["🎉","👏","🎂","🎊","💃","👍","🎈","🍰",];
celebrate(celebrationEmoji, 140);
Ladies and Gentlemen We Are Floating in Cyberspace: Learning to be a better developer through the teachings of Black Flag, My Bloody Valentine, and John Cage.
/*global Reveal*/
window.AUDIO_TIMER = 0;
Reveal.addEventListener('slidechanged', (event) => {
if (window.location.search.match(/(controls=false|postMessageEvents=true)/i))
return null;
const slide = event.currentSlide;
const options = slide.dataset;
$ sudo su -
# mkdir /etc/resolver
# cat > /etc/resolver/test
nameserver 127.0.0.1
port 2155
^D
^D
$ brew install dnsmasq
$ dnsmasq --port=2155 --no-resolv --address=/.test/127.0.0.1
$ ping foo.test
curl -vX HEAD http://www.flatworldknowledge.com
* About to connect() to www.flatworldknowledge.com port 80 (#0)
* Trying 74.205.58.83... connected
* Connected to www.flatworldknowledge.com (74.205.58.83) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: www.flatworldknowledge.com
> Accept: */*
>
< HTTP/1.1 200 OK
testing gist.el
kasdfklajsdglkjasldkgjaslk
kfasdfasdf
jdasfasklasdjfklasdjfjasdkjfaklsdjfajds
{
"_rev": "1-2a72e7738102ec7b7cd20bc9672d22ba",
"issuer": "http://www.p2pu.org",
"issuerName": "P2PU School of Webcraft",
"timestamp": "1295203497",
"issuee": "brianloveswords@gmail.com",
"title": "HTML5 Expert",
"description": "Has demonstrated excellence in HTML5",
"image": "url-for-image",
"proof": "url-for-work",