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 | |
# | |
# ssh into a machine and automatically set the background | |
# color of Mac OS X Terminal depending on the hostname. | |
# | |
# Installation: | |
# 1. Save this script to /usr/local/bin/ssh-host-color | |
# 2. chmod 755 /usr/local/bin/ssh-host-color | |
# 3. alias ssh=/usr/local/bin/ssh-host-color | |
# 4. export PRODUCTION_HOST="<hostname_production_server>" |
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 | |
set -e | |
function cleanup { | |
if [ "$EUID" -ne 0 ] | |
then echo "Must run as root to be able to update /etc/hosts" | |
exit 1 | |
fi | |
rm -f ca1.crt ca1.key ca1.srl registry1.key registry1.crt registry1.csr |
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
# Setting date at commit time: | |
GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800" git commit -m "Ignore stuff" --date "Tue Feb 7 22:47:34 2012 -0800" | |
# Changing date for historical commit: | |
git filter-branch --env-filter 'if [ $GIT_COMMIT = <commit-id> ] | |
then | |
export GIT_AUTHOR_DATE="Tue Feb 7 22:47:34 2012 -0800" | |
export GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800" |
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 | |
set -e | |
function cleanup { | |
if [ "$EUID" -ne 0 ] | |
then echo "Must run as root to be able to update /etc/hosts" | |
exit 1 | |
fi | |
rm -f ca1.crt ca1.key ca1.srl registry1.key registry1.crt registry1.csr |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: rabbitmq-config | |
data: | |
enabled_plugins: | | |
[rabbitmq_management]. | |
rabbitmq.conf: | | |
loopback_users.guest = false |
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
package main | |
import ( | |
"flag" | |
"log" | |
"github.com/st3v/fargo" | |
"golang.org/x/oauth2" | |
"golang.org/x/oauth2/clientcredentials" |
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
# mac git bash completion | |
source /usr/local/git/contrib/completion/git-completion.bash | |
# lucid git bash completion | |
# source /etc/bash_completion.d/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE="." | |
GIT_PS1_SHOWUNTRACKEDFILES="." | |
GIT_PS1_SHOWSTASHSTATE="." | |
GIT_PS1_SHOWUPSTREAM="auto" |
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
Show hidden characters
{ | |
"cmd": ["~/.rvm/bin/rvm-auto-ruby", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.ruby" | |
} |
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
{ | |
"erb_verify_command": "erb -xT - {file_name} | ruby -c", | |
"ruby_verify_command": "ruby -c {file_name}", | |
"run_ruby_unit_command": "ruby -Itest {relative_path}", | |
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'", | |
"run_cucumber_command": "~/.rvm/bin/rvm-auto-ruby -S bundle exec cucumber {relative_path}", | |
"run_single_cucumber_command": "~/.rvm/bin/rvm-auto-ruby -S bundle exec cucumber {relative_path} -l{line_number}", |
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
git filter-branch --index-filter 'git rm --cached --ignore-unmatch foobar.txt' -f --prune-empty --tag-name-filter cat -- --all |
NewerOlder