Skip to content

Instantly share code, notes, and snippets.

@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@bpierre
bpierre / README.md
Last active February 15, 2024 18:40
Switch To Vim For Good

Switch To Vim For Good

NOTE: This guide has moved to https://github.com/bpierre/switch-to-vim-for-good

This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I switched myself.

My decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.

Original gist with comments: https://gist.github.com/bpierre/0a0025d348b6001394e0

@anthonyshort
anthonyshort / _colours.scss
Created July 10, 2012 01:50
Colours with Sass
// Base Colours
$text-color :#d7d7d9 #a4acb2 #495a66 #979da2 #a4acb2;
$background-color :#f2f2f2 #f6f7f7 #495965 #36424a;
$border-color :#34a5e0 #eef0f1 #e3e3e5 #dcdcde;
$accent-color :#FF7070 #39b54a #ee2ea0 #63c0f2 #50b4f0;
// Specific Colours
$highlight-color :nth($accent-color,1);
$selected-color :nth($accent-color,2);
$primary-action-color :nth($accent-color,3);