Skip to content

Instantly share code, notes, and snippets.

View asabaylus's full-sized avatar

Asa Baylus asabaylus

View GitHub Profile
@asabaylus
asabaylus / gitcheats.txt
Last active March 31, 2022 17:27 — forked from chrismccoy/gitcheats.txt
git cheats
# From the last release to the HEAD of master
# find all commits with a Jira key
$ git log <branch_A>..<branch_B> 2> /dev/null | grep -Eo "[A-Za-z]+-[0-9]+" | sort | uniq
# checkout the same branch across multiple repos
$ ls | xargs -P10 -I{} git -C {} checkout <branch_name>
# make an alias to run a git command across multiple repo, add to ~/.bashrc or ~/.zshrc
alias agit="ls | xargs -P10 -I{} git -C {}"
@jdorrance
jdorrance / Default (Windows).sublime-commands
Last active December 27, 2015 17:19
sublimetext cq5 integration --> Will 'PUT' to the corresponding path in CQ5. Uses coffeescript if the file is *.coffee, and compiles to JS
[
{
"caption": "Save to CQ5",
"command": "cq5_save"
}
]
@asabaylus
asabaylus / gist:3071099
Created July 8, 2012 14:12
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

@asabaylus
asabaylus / git-vlog
Last active June 21, 2022 20:45
Git visual log for the console
# Git visual log displays commit tree view with who did what when and in which branch
git config --global alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n" --color'
@cowboy
cowboy / jquery-cdn-fallback.html
Created February 1, 2011 00:22
Google CDN -> jQuery CDN fallback
<!--
See JSFiddle:
http://jsfiddle.net/cowboy/6asBw/
-->
<!-- unminified -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>