Skip to content

Instantly share code, notes, and snippets.

View jorgeavaldez's full-sized avatar
🦀
vibin

Jorge Valdez jorgeavaldez

🦀
vibin
View GitHub Profile
@jorgeavaldez
jorgeavaldez / tmux_cheatsheet.md
Created September 2, 2015 05:56 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jorgeavaldez
jorgeavaldez / preprocessor_fun.h
Last active August 29, 2015 14:27 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@jorgeavaldez
jorgeavaldez / putty-monokai.reg
Last active August 29, 2015 14:27 — forked from gdvalle/putty-monokai.reg
Monokai style theme for PuTTY; colors copied from ST2's theme
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai]
"Colour21"="255,255,255"
"Colour20"="245,222,179"
"Colour19"="200,240,240"
"Colour18"="0,217,217"
"Colour17"="179,146,239"
"Colour16"="174,129,255"
"Colour15"="122,204,218"
@jorgeavaldez
jorgeavaldez / signup-new.py
Last active August 29, 2015 14:27 — forked from edjli2005/signup-new.py
simple 3-track card swiper data recorder
import pygame
from pygame.locals import *
import re
import time
from collections import namedtuple
def main():
haveUserInput = False
name = ""
buffer = []
@jorgeavaldez
jorgeavaldez / tmux-cheatsheet.markdown
Last active August 29, 2015 14:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jorgeavaldez
jorgeavaldez / imgur-gif-downloader.sh
Last active August 29, 2015 14:27 — forked from JasonMillward/download.sh
Download imgur.com galleries using bash. This here will download the first 100 gallery pages worth of gifs >:D
#!/bin/bash
for ((i = 0; i <= 100; i++)); do
echo "Grabbing page $i"
wget -q "http://imgur.com/r/gifs/page/$i" -O - | grep 'class="post"' | cut -d\" -f2 | while read id
do
echo "Downloading $id.gif"
wget -q -c "http://i.imgur.com/$id.gif"
done
<a href="http://cachemonet.com/src/bg/blinds.gif">cachemonet.com/src/bg/blinds.gif</a>
<a href="http://cachemonet.com/src/bg/boxes.gif">cachemonet.com/src/bg/boxes.gif</a>
<a href="http://cachemonet.com/src/bg/bunnies.gif">cachemonet.com/src/bg/bunnies.gif</a>
<a href="http://cachemonet.com/src/bg/colorbox.gif">cachemonet.com/src/bg/colorbox.gif</a>
<a href="http://cachemonet.com/src/bg/cube.gif">cachemonet.com/src/bg/cube.gif</a>
<a href="http://cachemonet.com/src/bg/drumstick.gif">cachemonet.com/src/bg/drumstick.gif</a>
<a href="http://cachemonet.com/src/bg/pc.gif">cachemonet.com/src/bg/pc.gif</a>
<a href="http://cachemonet.com/src/bg/squirm.gif">cachemonet.com/src/bg/squirm.gif</a>
<a href="http://cachemonet.com/src/bg/twist.gif">cachemonet.com/src/bg/twist.gif</a>
<a href="http://cachemonet.com/src/bg/us_left.gif">cachemonet.com/src/bg/us_left.gif</a>