Skip to content

Instantly share code, notes, and snippets.

View draptik's full-sized avatar

Patrick Drechsler draptik

View GitHub Profile
@draptik
draptik / gist:614fe988c929525b25d5
Created May 22, 2015 09:35
Git alias settings in gitconfig
alias.ec=config --global -e
alias.up=pull --rebase
alias.co=checkout
alias.cob=checkout -b
alias.ls=log --pretty=format:'%C(yellow)%h%Creset%C(bold red)%d %Creset%s%Cgreen [%cn] %C(bold green)(%cr)%Creset' --decorate
alias.ll=log --graph --pretty=format:'%Cred%h%Creset -%C(bold yellow)%d%Creset %s %Cgreen(%cr) %C(dim green)<%an>%Creset' --abbrev-commit --
date=relative
alias.f=!git ls-files | grep -i
alias.grep=grep -Ii
alias.m=merge

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@draptik
draptik / chocolatey-sample-dev-tools.txt
Created September 25, 2014 21:45
Chocolatey packages for developers001 (browsers, git, keepass, truecrypt)
C:\>choco install GoogleChrome Firefox fiddler git TortoiseGit Emacs 7zip keepass truecrypt

Keybase proof

I hereby claim:

  • I am draptik on github.
  • I am draptik (https://keybase.io/draptik) on keybase.
  • I have a public key whose fingerprint is 10A4 B0E4 277F CD15 9F08 845D B063 1437 5124 4030

To claim this, I am signing this object: