Skip to content

Instantly share code, notes, and snippets.

View Flet's full-sized avatar
💭
Feel free to @ me if I missed a notification

Dan Flettre Flet

💭
Feel free to @ me if I missed a notification
View GitHub Profile
@Flet
Flet / thoughts.md
Created January 8, 2015 07:41
Thoughts on todotasks repo

Creating a new Task Runner Example

README.MD

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 (https://keybase.io/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:

@Flet
Flet / test.md
Last active September 15, 2015 17:06

testing 1 2 3

test.bat

test some too

test also <

and also > too

console.log('hello')
(function () {
window.alert('ok')
}())
@Flet
Flet / gist:5bf4f31517ef37da4653
Created July 10, 2014 23:23
Avoiding `sudo npm` on Ubuntu

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
starlord
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
Flet / tape-nock-setup.js
Created December 13, 2021 00:52
tape nock setup - filters sensitive request body data and de-gzips responses
const tape = require('tape')
const path = require('path')
const zlib = require('zlib')
const bodyFilters = [
[
/client_secret=[^\\<&"]+/g, 'client_secret=XXX'
]
]
@Flet
Flet / carmack.md
Created April 27, 2017 16:16
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

@Flet
Flet / gist:5447732
Created April 23, 2013 21:54
Sublime Text: Eclipse Shortcuts keymap
[
{ "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" },
@Flet
Flet / vortex_pok3r_arrow_key_shortcuts_README.md
Last active January 28, 2024 22:50
Vortex Pok3r keyboard arrow key shortcuts as CapsLock + WASD using xmodmap

Overview

Because my brain can't be untrained, I wanted to emulate the way I have my Vortex Pok3r keyboard arrow key shortcuts in software on my Linux (pop_os) lappy.

  • Emulates the my hardware macro setup on my Vortex keyboard but in software.
  • Hold CapsLock and use WASD as arrow keys
  • Uses xmodmap (I don't think it works on wayland?)
  • These steps work on pop_os with gnome.

Instructions