Skip to content

Instantly share code, notes, and snippets.

@peterdee
peterdee / state-abbreviations.json
Created October 11, 2019 07:42 — forked from 75th/state-abbreviations.json
US state abbreviations in JSON
{
"al": { "full": "alabama", "other": ["ala"] },
"ak": { "full": "alaska", "other": ["alas"] },
"az": { "full": "arizona", "other": ["ariz"] },
"ar": { "full": "arkansas", "other": ["ark"] },
"ca": { "full": "california", "other": ["calif", "cal"] },
"co": { "full": "colorado", "other": ["colo", "col"] },
"ct": { "full": "connecticut", "other": ["conn"] },
"de": { "full": "delaware", "other": ["del"] },
"dc": { "full": "district of columbia", "other": ["washington dc", "wash dc"] },
@peterdee
peterdee / terminal-git-branch-name.md
Last active November 14, 2019 07:27 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@peterdee
peterdee / default.conf
Created December 11, 2019 07:09
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;