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
hello world |
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
// ==UserScript== | |
// @name Check for PrimeNow Delivery | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author cumby | |
// @match https://primenow.amazon.com/checkout/* | |
// @grant none | |
// ==/UserScript== |
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 | |
function get_time | |
{ | |
local hour="`date +%H`" | |
local emoji="a" | |
if [ $hour -lt 10 -a $hour -gt 6 ]; then | |
emoji="🌅" | |
elif [ $hour -lt 15 ]; then | |
emoji="☀️" | |
elif [ $hour -lt 20 ]; then |
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/sh | |
branch=`git branch | grep \* | cut -d ' ' -f2` | |
if [ $branch = 'master' ]; then | |
echo "Can't remaster on master" >&2 | |
exit 1 | |
fi | |
ref=`git rev-parse $branch` | |
echo "To restore your branch ($branch), run the following:" |
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 | |
# BASH prompt builder | |
# | |
# This is a script I use to generate BASH prompts that look like this: | |
# (master)* | |
# [sbilstei@sbilstei-mn1:~/localcode/git-sandbox]:$ | |
# | |
# Basically user, the machine's hostname, current working directory tilde condensed and an optional branch name | |
# when navigating a git repo. The asterisk is visible if there are uncommitted changes. |
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
[credential] | |
helper = osxkeychain | |
[core] | |
excludesfile = ~/.gitexcludes | |
[branch] | |
autosetuprebase = always | |
[alias] | |
rem = rebase origin/master | |
co = checkout | |
br = branch |
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
grep 'some shit' | cut -f2 -d: |
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
sed -e 's/^\s*//' -e '/^$/d' |