Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
@shmup
shmup / .inputrc
Created November 10, 2012 04:46 — forked from gregorynicholas/.inputrc
OSX .inputrc to make terminal way better. and by better i mean i'm naked
# Two escapes clear command line.
"\e\e": "\C-a\C-k"
# Tab to menu complete
"\t": menu-complete
# Incremental searching with Up and Down and Left and Right
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e\e[C": forward-word
@shmup
shmup / spacewar.lst
Created December 11, 2012 13:17 — forked from JonnieCache/spacewar.lst
Spacewar PDP1 Source Code
-/macro fio-dec system, june 1963
007652 640500 szm=sza sma-szf
007652 650500 spq=szm i
007652 761200 clc=cma+cla-opr
- define senseswitch A
- repeat 3, A=A+A
- szs A
- term
- define init A,B
- law B
#!/bin/bash
#
# Removes the Bing logo from Satellite Eyes wallpapers
#
# Delete the Bing logo image
rm -f /Applications/Satellite\ Eyes.app/Contents/Resources/bing-logo.png
# Clear the map cache
rm -f ~/Library/Application\ Support/Satellite\ Eyes/map-*.png

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@shmup
shmup / -
Created May 12, 2014 17:04 — forked from rupa/-
#!/usr/bin/env python
import random
CHARS = {
'top': [
u'\u0300',
u'\u0301',
u'\u0302',
u'\u0303',
class window.IdleTimer
constructor: () ->
@timer
@timeIncrement = 1000
@timeIdle = 0
@timeMax = 10000
@expired = false
@interactionMethods = ['click','mousemove']
# these should not be in here. move somewhere else.
@shmup
shmup / elements.md
Last active August 29, 2015 14:19 — forked from soveran/elements.md
Excerpts from The Elements of Programming Style. The source of this compilation is unknown.

The Elements of Programming Style

The following rules of programming style are excerpted from the book "The Elements of Programming Style" by Kernighan and Plauger, published by McGraw Hill. Here is quote from the book: "To paraphrase an observation in The Elements of Style by Strunk and White, the rules of programming style, like those of English, are sometimes broken, even by the best writers. When a rule is broken, however, you will usually find in the program some compensating merit, attained at the cost of the violation. Unless you are certain of doing as well, you will probably do best to follow the rules."

@shmup
shmup / README.md
Created December 18, 2015 14:51 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@shmup
shmup / man.sh
Last active March 18, 2016 12:47 — forked from lkptrzk/man.sh
`man` replacement for git bash on windows
#!/bin/sh
# man - `man` replacement for git bash on windows
# Requires:
# Git Bash - https://git-scm.com/downloads/
# wget - https://eternallybored.org/misc/wget/
# Notes:
# `sed -r` = allows gnu regex extensions (like +)
@shmup
shmup / markdown-cheatsheet.md
Created October 22, 2016 04:02 — forked from james2doyle/markdown-cheatsheet.md
Another markdown cheatsheet. More straightforward examples.

Any block of text surrounded by line breaks is considered a paragraph.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Alternatively, for H1 and H2, an underline-ish style: