Skip to content

Instantly share code, notes, and snippets.

@robotsarelame
robotsarelame / gist:86b1fcb33bec42a3cc16abfccbc59910
Created May 15, 2019 14:20
brew uninstall recursively with dependencies
brew deps [FORMULA] | xargs brew remove --ignore-dependencies && brew missing | xargs brew install
@robotsarelame
robotsarelame / gist:9371315
Created March 5, 2014 16:55
PgSQL table comparison
--Here is simple sql to show data in table1, but not in table2
SELECT <common_column_list> from table1
EXCEPT
SELECT <common_column_list> from table2;
--And this sql shows data in table2 but not in table1:
SELECT <common_column_list> from table2
EXCEPT
SELECT <common_column_list> from table1;
@robotsarelame
robotsarelame / gist:4225437
Created December 6, 2012 15:38
.md to .html converter
curl -O http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip
unzip Markdown_1.0.1.zip
cd Markdown_1.0.1
perl Markdown.pl _any_markdown_formatted_file_ > _desired_name.html
@robotsarelame
robotsarelame / .gitconfig
Created November 23, 2012 11:57
git configuration with aliases
[user]
name = place your name here
email = [email protected]
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
@robotsarelame
robotsarelame / buildout-boilerplate.md
Created November 16, 2012 15:08
zc.buildout boilerplate

##Setup environment to begin develop with zc.buildout##

Precondition:
The only precondition here is to have easy-install installed, then as simple as:

easy_install zc.buildout

Usage:

cd newproject

@robotsarelame
robotsarelame / app.yaml
Created October 30, 2012 21:38 — forked from darktable/app.yaml
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest