Skip to content

Instantly share code, notes, and snippets.

View emceeaich's full-sized avatar
🛑
No Tech For ICE

Emma Humphries emceeaich

🛑
No Tech For ICE
View GitHub Profile
// gopher.js - a minimal gopher implementation using node.js
// Released under the 3 clause BSD license by Matt Croydon <mcroydon@gmail.com> (http://postneo.com)
var net = require('net');
net.createServer(function (socket) {
socket.setEncoding("ascii");
socket.on("data", function (data) {
if (data === '\r\n') {
console.log('Serving index.');
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 17, 2024 02:53
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@willurd
willurd / web-servers.md
Last active May 25, 2024 13:16
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@quephird
quephird / Things_that_make_everything_better.txt
Last active March 29, 2024 00:08
Things that make everything better
Things that make everything better:
• 🟪 Purple
• 🍫 Chocolate
• 🧱 LEGO
• ✨ Glitter
• () LISP
• 👗 Velvet
• ❌ Cancelled meetings
• 🌶 Spicy food
@kennwhite
kennwhite / vpn_psk_bingo.md
Last active February 24, 2024 12:19
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

@zipcode
zipcode / pulse.js
Created August 10, 2015 05:45
Pulse inserted nodes in the DOM
function pulse(node, time) {
if (!node) throw new Error("node was falsy");
if (node.constructor && node.constructor == NodeList) {
var nodes = Array.prototype.slice.call(node);
nodes.forEach(function (node) { pulse(node, time); });
return;
}
if (!node.style) return;
@haasn
haasn / about:config.md
Last active April 2, 2024 18:46
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

We pulled off the road, a highway dating to 14 years before my birth, to switch drivers. A swap of the two front occupants put me
behind the wheel, and I rested my foot on the clutch for a moment as I fastened myself in and finally pulled away. It would now be
my responsibility to convey us, 2 women, a man and a dog, toward the city.
I noticed that he quickly nodded off beside me; Meanwhile, she and I chatted. We'd just met a few days prior. I knew little of her
background, just as the converse was true. But we'd been sharing experiences since the beginning of the conference that had ended
the previous day, and now finally had the opportunity to speak of things with less urgency.
I couldn't tell you how we got where we did. Something she asked led me where I went. Having gone there, and with the benefit of
the preoccupation of three freeway lanes staring me in the face, I told her a 42 year story I knew well. It was a story I'd had
@adactio
adactio / basicServiceWorker.js
Last active March 27, 2023 09:30
A basic Service Worker, for use on, say, a blog.
'use strict';
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// http://creativecommons.org/publicdomain/zero/1.0/
(function() {
// Update 'version' if you need to refresh the cache
var staticCacheName = 'static';
var version = 'v1::';
@daneden
daneden / Instructions.md
Created December 1, 2015 00:25
Remap Caps Lock to Emoji on Mac

How to remap the caps lock key to the emoji selector on Mac

  1. Go to System Preferences -> Keyboard -> Modifier Keys...
  2. Change “Caps Lock” to “No action”
  3. Install Seil
  4. Change the Caps Lock key in Seil to keyCode 80 (F19)
  5. Install Karabiner
  6. Open Karabiner and go to Misc & Uninstall -> Open private.xml
  7. Copy the contents of this gist's example to the XML file and save
  8. In Karabiner, go to Change Keys -> Reload XML