Skip to content

Instantly share code, notes, and snippets.

@chulkilee
chulkilee / .gitconfig
Last active March 25, 2017 07:27
Git Configuration
[alias]
# basic shortcut
br = branch
ci = commit
co = checkout
df = diff
rb = rebase
stat = status
# full info
#!/bin/bash
# https://httpd.apache.org/docs/2.2/misc/password_encryptions.html
HTPASSWD=$1
USERNAME=$2
PASSWORD=$3
ENTRY=`cat $HTPASSWD | grep "^$USERNAME:"`
HASH=`echo $ENTRY | cut -f 2 -d :`
SALT=`echo $HASH | cut -f 3 -d $`