Skip to content

Instantly share code, notes, and snippets.

View ftroncosom's full-sized avatar

Francisco Troncoso ftroncosom

View GitHub Profile
@ftroncosom
ftroncosom / p4merge4git.md
Last active September 3, 2015 13:30 — forked from tony4d/p4merge4git.md
Setup p4merge as a visual diff and merge tool for git
## REF: http://blog.sbf5.com/?p=6
# For requests starting with a tilde, break them into three components:
# 1. The username, everything after the tilde up to the first slash
# 2. The file location, everything after the username up to the last slash
# 3. The trailing slash(es)
# Then, rewrite to go to the f~/ branch.
location /~ {
if ($request_uri ~ ^/~([^/]*)(/.*[^/]|)(/*)$) {
set $homedir $1;
set $filedir $2;
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.