Skip to content

Instantly share code, notes, and snippets.

@ me if no response in issues/PRs 👍

Dan Flettre Flet

@ me if no response in issues/PRs 👍
View GitHub Profile
Flet /
Created Jan 8, 2015
Thoughts on todotasks repo

Creating a new Task Runner Example


Every task runner should have a README.MD file with the following sections:

  • Overview
    • Explain the focus/goals of the task runner and include links to resources and tutorials.

Keybase proof

I hereby claim:

  • I am flet on github.
  • I am flet ( on keybase.
  • I have a public key whose fingerprint is 4D9C 5844 8B90 FFCE 4B30 06DD 5616 3600 9907 B1B4

To claim this, I am signing this object:


testing 1 2 3


test some too

test also <

and also > too

Flet / gist:5bf4f31517ef37da4653
Created Jul 10, 2014
Avoiding `sudo npm` on Ubuntu
View gist:5bf4f31517ef37da4653

I've found the best way around needing sudo for global npm installs in Ubuntu is to use an .npmrc file and set a prefix for where npm installs things, then add that location to your PATH. This allows you to npm -g without sudo. With this setup I'm running ampersand's CLI without issue (and avoiding the need to sudo npm in general).

If you have any global modules installed, they should be uninstalled first so they are removed from the PATH. List all globally installed npm modules by running:

sudo npm -g ls -depth 0
Flet /
Created Apr 27, 2017
John Carmack and his Ferrari

John Carmack stood in the Ferrari dealership admiring a cherry-red 328 sports car and had one thought: How fast can it go? As an engineer, he considered speed an efficient way to measure his progress: How much faster could he get the computer to render graphics on screen? A car was much the same. When Carmack looked at the sexy design of the body, he saw straight through to the engine. To the dealer’s surprise, the wiry twenty-two-year-old in T-shirt and jeans wrote a check for seventy thousand dollars and took the keys.

It didn’t take long for Carmack to feel that the car wasn’t quite fast enough. His instinct was to get under the hood and start futzing around, just like he had with his MGB. But this was no ordinary car, this was a Ferrari. No one futzed with a Ferrari. The elite manufacturer had very low regard for anyone who dared mess with its pristine design. For Carmack, though, it was another machine to hack.

With Romero’s help, Carmack soon found someone who was more than up to the task: Bob Norwood

View gist:9b558b3607353ef49f90
sync stars from github -> npm
* must be logged in to npm
* must have git config github.user set? or pass via flag?
- fetch current npm starred
npm stars
- fetch current github starred
Flet / gist:5447732
Created Apr 23, 2013
Sublime Text: Eclipse Shortcuts keymap
View gist:5447732
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
You can’t perform that action at this time.