Skip to content

Instantly share code, notes, and snippets.

*Perl 6 has missed the boat.*
What boat? There is no boat.
*I used to like Perl, but now I use Ruby and Python.*
Glad to hear it.
*The only thing Perl has going for it is the "CPAN":http://search.cpan.org.*
# Useful Git alias, found somewhere on the Internet
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
:⌉
=⌉
¦-) as opposed to |
⍥ om nom nom
<!--[if lte IE 6]>
<style type="text/css">
#ie6msg{border:3px solid #090; margin:8px 0; background:#cfc; color:#000;}
#ie6msg h4{margin:8px; padding:0;}
#ie6msg p{margin:8px; padding:0;}
#ie6msg p a.getie8{font-weight:bold; color:#006;}
#ie6msg p a.ie6expl{font-weight:normal; color:#006;}
</style>
<div id="ie6msg">
<h4>Did you know that your browser is out of date?</h4>
#!/bin/sh
# git-eb
# File ID: 45c7afa2-434a-11df-8880-90e6ba3022ac
#
# Create new and unconnected branch
# usage: git eb <newbranch>
[ -z "$1" ] && { echo "usage: git eb <newbranch>" >&2; exit 1; }
[ -d ".git/." ] || { echo "git-eb: has to be executed from the top level of the tree" >&2; exit 1; }
@oyvholm
oyvholm / gist:836901
Created February 21, 2011 10:23 — forked from beekhof/gist:836887
# Put this in ~/.gitconfig
# https://git.wiki.kernel.org/index.php/Aliases
[alias]
ci = commit
co = checkout
fp = format-patch
bl = blame --date=short -M
br = !git branch --no-color | grep '*' | sed -e 's/^* //'
who = shortlog -s --
@oyvholm
oyvholm / svngit.textile
Created August 27, 2012 00:46 — forked from gorenje/svngit.textile
Subversion v. Git - Thinking in patches

Introduction

This post attempts to provide Subversion developers a new perspective on Git and how git is differs from
subversion but not using the usual “git is distributed development” or “git is peer-to-peer versioning
management”, which tend not provide an argument for an existing subversion project to switch to git.

Instead, I will attempt to provide a historical background to the development of the first versioning
tools and how these lead to the development of git. It is more that probably that certain historical events
mentioned here are completely and utterly wrong, this not intended. Corrections and improvements are very
welcome!

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

@oyvholm
oyvholm / README.md
Created February 25, 2014 03:51 — forked from BrianHicks/README.md

Graph taskwarrior tasks with graphviz

Dependencies

Running

graphdeps produces "deps.png" in the working directory. Just graphdeps will graph all tasks. You can change the default behavior by specifying a more specific query.