Skip to content

Instantly share code, notes, and snippets.

View AdrianTP's full-sized avatar

Adrian Thomas-Prestemon AdrianTP

View GitHub Profile
@AdrianTP
AdrianTP / web-servers.md
Created October 16, 2018 16:47 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@AdrianTP
AdrianTP / postgres-cheatsheet.md
Created December 12, 2016 22:42 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@AdrianTP
AdrianTP / multiple_ssh_setting.md
Created June 15, 2016 19:26 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"