This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script git-chg-to-ssh.sh | |
# Uploaded to gist github | |
# | |
# By [email protected] | |
# | |
# Change all https github clone addresses to ssh | |
# Use DEBUG=[1|2] before command to see some debug output | |
# Use PROCEED=1 to actually make the 'set-url' change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# https://gist.github.com/ikwyl6 | |
# discogs script to get the url of the discogs for a album | |
import discogs_client | |
import argparse | |
""" | |
discogs_client objects: | |
https://github.com/discogs/discogs_client/blob/master/discogs_client/models.py#L691 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# created by [email protected] | |
# alias function for 'git status' - colors the 'branch is ahead' or 'branch is behind' | |
# Add to your .bashrc and then do '$ source ~/.bashrc' | |
function gs() { | |
# Do I have any stashes I didn't know about? | |
git stash list | sed -E -e $'s/stash@\{[0-9]+\}/\e[0;31m&\e[0m/' | |
if [[ -z "$1" ]]; then | |
branch="$(git rev-parse --abbrev-ref --symbolic-full-name @{u})" | |
else branch="$1" | |
fi |