Skip to content

Instantly share code, notes, and snippets.

Till Lorentzen soneyworld

Block or report user

Report or block soneyworld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am soneyworld on github.
  • I am soney (https://keybase.io/soney) on keybase.
  • I have a public key whose fingerprint is 3A24 5708 F952 1B13 FE9F 5BDB 9FB7 A203 FB1A 76BA

To claim this, I am signing this object:

@soneyworld
soneyworld / git-push-all-tags-of-branch.sh
Created Jun 17, 2014
Script to push all tags of a specified local branch to the specified remote
View git-push-all-tags-of-branch.sh
#!/bin/bash
ORIGIN=$1
BRANCH=$2
TAGS=$(git log --pretty='%H' $BRANCH | xargs -n1 git describe --tags --exact-match 2>/dev/null)
for t in $TAGS
do
git push $ORIGIN $t
done
View sortSelectedText
%SCRIPT
var text = cursor.selectedText();
var array = text.split("\n");
array.sort();
text = "";
for (var line in array){
text += array[line];
if(line < array.length -1){
text+="\n";
}
You can’t perform that action at this time.