Skip to content

Instantly share code, notes, and snippets.

http://freetypography.com/
http://www.premiumpixels.com/
http://subtlepatterns.com/
http://designmodo.github.io/Flat-UI/
http://www.getuikit.com/docs/
http://codepen.io/hugo/pen/eoaDw
http://spyrestudios.com/20-free-open-source-css3-user-interface-kits/
http://speckyboy.com/2013/09/25/10-free-ui-kits/
http://purecss.io/
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your apt-get is working properly and up to date
sudo apt-get upgrade
sudo apt-get update
## Install ###################################################################
@getadeo
getadeo / tmux.md
Created February 11, 2014 11:13 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@getadeo
getadeo / zsh.md
Created July 22, 2014 14:56 — forked from tsabat/zsh.md

Installation notes for ArchLinux

The following document is install references for ArchLinux rolling distribution

With some steps for ThinkPad's.

$ python3 -c 'from unicodedata import name; print("\n".join("{} {}".format(name(chr(c)),chr(c)) for c in (0x2695,0x2698,0x269A)))'
import paramiko
k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem")
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
print "connecting"
c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k )
print "connected"
commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ]
for command in commands:
print "Executing {}".format( command )
@getadeo
getadeo / gist:b6a89bb90b5e8a01e21e
Created December 7, 2015 10:23 — forked from hest/gist:8798884
Fast SQLAlchemy counting (avoid query.count() subquery)
def get_count(q):
count_q = q.statement.with_only_columns([func.count()]).order_by(None)
count = q.session.execute(count_q).scalar()
return count
q = session.query(TestModel).filter(...).order_by(...)
# Slow: SELECT COUNT(*) FROM (SELECT ... FROM TestModel WHERE ...) ...
print q.count()
@getadeo
getadeo / Exclude_tables.md
Created March 9, 2016 14:06 — forked from utek/Exclude_tables.md
Define ignored tables in alembic.ini

Add this in your ini file:

[alembic:exclude]
tables = spatial_ref_sys

In env.py:

def exclude_tables_from_config(config_):
    tables_ = config_.get("tables", None)

if tables_ is not None: