Skip to content

Instantly share code, notes, and snippets.

View carlos8f's full-sized avatar

Starbuck Starfish carlos8f

View GitHub Profile
@carlos8f
carlos8f / index.html
Last active August 29, 2015 13:56
Bookmarklet to auto-browse a site (uses jQuery)
Drag to bookmarks bar: <a href="javascript:(function()%7B(function()%7Bfunction%20doNavigate()%7Bvar%20links%3D%24(%27a%27),numLinks%3Dlinks.length,tried%3D0,href,randomIdx,randomLink%3Bdo%7BrandomIdx%3DMath.round((numLinks-1)*Math.random())%3BrandomLink%3Dlinks.eq(randomIdx)%3Bhref%3DrandomLink.attr(%27href%27)%3B%7Dwhile(tried%2B%2B%3CnumLinks%26%26(!href%7C%7Chref.match(/%5E(%5C/(login%7Clogout%7Csso))/)%7C%7Chref.match(/http/)))%3Bif(!randomLink)%7Bconsole.log(%27going%20back%27)%3Bwindow.history.back()%3B%7Delse%7Bconsole.log(%27following%20link%20to%20%27%2BrandomLink.attr(%27href%27))%3BrandomLink.mouseenter()%3BrandomLink.click()%3B%7D%7D(function%20doAndWait()%7BdoNavigate()%3Bvar%20wait%3DMath.round(Math.min(5000,Math.random()*20000))%3BsetTimeout(doAndWait,wait)%3B%7D)()%3B%7D)()%3B%7D)()%3B">Auto-browse</a>
@carlos8f
carlos8f / gist:9520174
Created March 13, 2014 01:19
Solage - Le Basile
le basile de sa pro
pre nature tous ceulz quil voit
1. soub daynement
2. soub alegnement
Ainsi rue envie lez
bonz par trez sanglante jalousie
tant que chascun voit son per a grant
payne Carbarat tient le monde en son demaine
@carlos8f
carlos8f / text.md
Last active August 29, 2015 13:57
Machaut: J'am miex languir en ma dure dolour

Machaut: J'am miex languir en ma dure dolour (B7)

Modern scholarly spelling (Schrade): J'am mieus languir en ma dure dolour

Two-voice ballade.

Sources: Machaut Manuscripts A B C E & G

Lyrics

@carlos8f
carlos8f / gist:9671010
Last active August 29, 2015 13:57
flame throwers
Originally Posted by George Carlin
The very existence of flame-throwers proves that some time,
somewhere, someone said to themselves, You know, I want to
set those people over there on fire, but I'm just not close
enough to get the job done.
@carlos8f
carlos8f / keybase.md
Created April 1, 2014 18:53
keybase proof (autogenerated)

Keybase proof

I hereby claim:

  • I am carlos8f on github.
  • I am carlos8f (https://keybase.io/carlos8f) on keybase.
  • I have a public key whose fingerprint is 1BCF FD9F E2FB 9F73 115A C1B8 1E37 EA17 2582 B1B7

To claim this, I am signing this object:

@carlos8f
carlos8f / mime-version.md
Created May 8, 2014 19:53
MIME: how simply specifying a version in the protocol didn't work

MIME-Version

The presence of this header indicates the message is MIME-formatted. The value is typically "1.0" so this header appears as

MIME-Version: 1.0

According to MIME co-creator Nathaniel Borenstein, the intention was to allow MIME to change, to advance to version 2.0 and so forth, but this decision led to the opposite outcome, making it nearly impossible to create a new version of the standard.

@carlos8f
carlos8f / jabberwocky.txt
Created May 16, 2014 00:08
Jabberwocky
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!"
He took his vorpal sword in hand:
@carlos8f
carlos8f / .gitignore
Created June 13, 2014 06:31
my-project
node_modules
npm-debug.log
db
@carlos8f
carlos8f / mj_love_never_felt_so_good.txt
Last active August 29, 2015 14:05
Michael Jackson - Love Never Felt So Good
Baby,
Gm7
Love never felt so good.
Gm7/C Fmaj7
And I'd die if it ever could!
Am7b9 D7b9
...not like you hold me, hold me...

Install Dnsmasq on OSX

This will allow any url having the non-existant TLD .dev to resolve to your locale machine.

Install dnsmasq and run as a service

$ brew update