Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile

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."

#!/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
@shmup
shmup / README.md
Created December 18, 2015 14:51 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@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 / 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:

@shmup
shmup / gist:6ed5af7c3f09f2e547974a5486b3fd24
Created January 16, 2018 23:56
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~