Skip to content

Instantly share code, notes, and snippets.

To create a local branch that follows a remote branch (two ways):
First way (creates the branch that follows the remote branch "origin/master" and switches to it):
git checkout -b pull-watch origin/master
Second way (just creates the branch):
git branch pull-watch origin/master
Here's the steps to get git bash completion:
Put the attached file to some where in your home directory. I usually put it in "~/.bash.d/completions". It can also be downloaded at
http://git.kernel.org/?p=git/git.git;a=blob_plain;f=contrib/completion/git-completion.bash;h=89858c237eaca5a5fb7e89d716577c0ef84dd086 . It's actualy located in git's git repository under contrib/completions.
But anyways, then just add line
source "/Users/luke/.bash.d/completions/git-completion.bash"
to your ~/.bash_login . The file part should be different.
But that's it. It should autocomplete just about everything (options, branches, you name it).
;; Gist
(add-path "site-lisp/gist/")
(require 'gist)
@lamdor
lamdor / x
Created October 26, 2008 21:34
CmdUtils.CreateCommand({
name: "delicious-search",
icon: "http://delicious.com/favicon.ico",
homepage: "http://delicous.com/",
author: { name: "Luke Amdor", email: "luke.amdor@gmail.com"},
license: "MIT",
description: "Searches through your delicous bookmarks",
help: "just delicous-search and it will show a list of bookmarks that match",
takes: {"tag": noun_arb_text},
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="emacs.fixed" parent="Emacs">
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta W" />
</action>
<action id="$Redo">
<keyboard-shortcut first-keystroke="shift control Z" />
<keyboard-shortcut first-keystroke="control meta SLASH" />
</action>
<action id="$Undo">
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="emacs.fixed" parent="Emacs">
<action id="$Copy">
<keyboard-shortcut first-keystroke="alt W" />
</action>
<action id="$Redo">
<keyboard-shortcut first-keystroke="shift control Z" />
<keyboard-shortcut first-keystroke="control alt SLASH" />
</action>
<action id="$SelectAll">
//dictate that we want to open new urls in a new buffer
//rather than in a new frame
url_remoting_fn = load_url_in_new_buffer;
//set default directory for downloads
set_default_directory("/Users/luke/Desktop/Inbox/");
//don't allow a kill-buffer command to kill the last buffer in the window.
can_kill_last_buffer = false;
//dictate that we want to open new urls in a new buffer
//rather than in a new frame
url_remoting_fn = load_url_in_new_buffer;
//set default directory for downloads
set_default_directory("/Users/luke/Desktop/Inbox/");
//don't allow a kill-buffer command to kill the last buffer in the window.
can_kill_last_buffer = false;
From 7336d23862c1007f7ffbe9201ac0ef5ef30773ba Mon Sep 17 00:00:00 2001
From: pair9 <pair9@pit-pair09.ISLLCNETS.Studentloan.org>
Date: Fri, 2 Jan 2009 11:54:09 -0600
Subject: [PATCH] It's provide stupid
---
mine/mine-windows.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mine/mine-windows.el b/mine/mine-windows.el
(ns tak)
(defn tak [x y z]
(let [x (int x)
y (int y)
z (int z)]
(if (<= x y)
z
(recur (tak (dec x)
y z)