Skip to content

Instantly share code, notes, and snippets.

View eminence's full-sized avatar
🏠
Distracted. Ping me again if I've forgotten about you

Andrew Chin eminence

🏠
Distracted. Ping me again if I've forgotten about you
  • Providence, RI
  • 02:59 (UTC -04:00)
View GitHub Profile
@brownan
brownan / ccmap.svg
Created October 19, 2011 03:39
Canopy Carnage Map
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brownan
brownan / gist:1428820
Created December 4, 2011 01:46
multiworld configuration mockup
# Worlds are specified as keys in the pre-defined "render" dictionary
#
# all options about rendering a world go in a configuration dictionary as
# values of this render dict
render["world"] = {
"rendermodes": ["smooth-lighting", "smooth-night"],
"north-direction": ["upper-left"],
}
@agrif
agrif / jobs.py
Created December 11, 2011 21:51
import multiprocessing
import itertools
import Queue
from signals import Signal
##
## first, some generic interfaces
##
import phosphorus
from phosphorus.irc import IRC
import sys
_, host, port, nick = sys.argv
def main():
irc = IRC(host, port, nick)
yield phosphorus.fork(irc.run())
yield phosphorus.until_elapsed(2)
@eminence
eminence / README.rst
Created December 19, 2012 22:58
SMoshS -- start mosh via an SMS!

SMoshS - Stop/stop mosh via SMS!

This script allows you to start/stop mosh via text messages (SMS)! It connects to the SMS network via the excellent Twilio. After you buy a phone number from Twilio, any calls or SMSs will be POSTd to the URL of your choice. This script provides a webserver that will respond to those Twilio POSTs, so simply start it up, enter the correct URL into the Twilio control panel, and you're off!

@XVilka
XVilka / TrueColour.md
Last active June 10, 2024 17:21
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@agrif
agrif / tictactoe.hs
Last active September 23, 2016 00:58
import Control.Applicative
import Control.Monad
import Data.Foldable (traverse_)
import Data.List
data Move = B | X | O deriving (Eq, Show)
-- things that can have moves applied to them
class (Eq a) => Movable a where
move :: Move -> a -> [a]
anonymous
anonymous / coffee.md
Created November 29, 2016 02:55
a fussy guide to non-terrible coffee via french press

An Achin's Guide to French Pressitude

  1. Boil some good water. Filtered, if you can.

  2. Put 2 heaping tablespoons per 6 oz water in the press. Do not add water yet!

    (Yes this is a lot. Go for it. Brewing more coffee for less time tastes better.)

  3. Add a tiny pinch of salt. Small!

#!/bin/sh
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a
set -e
PWD=`pwd`
DD=$PWD/downloads/ # Download Directory
function download {
@agrif
agrif / 00Readme.md
Last active July 21, 2019 02:06
goestools example systemd unit files
  • Add files to /etc/systemd/system/
  • Edit as needed (change paths!)
  • Run:
    sudo systemctl start goesrecv
    sudo systemctl start goesproc
    
  • Verify they're running:

sudo systemctl status goesrecv