This file contains hidden or 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
| [user] | |
| email = [email protected] | |
| name = Michael Clark | |
| [credential] | |
| helper = osxkeychain | |
| [alias] | |
| lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
| rmb = !sh -c 'git branch -D $1 && git push origin :$1' - | |
| cob = checkout -b | |
| up = !git fetch origin && git rebase origin/master |
This file contains hidden or 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/env ruby | |
| class GetPid | |
| #Main | |
| ARGV.each do |arg| | |
| puts `Echo.rb bold red "Query: #{arg}"` | |
| pids=`ps aux | grep -v grep | grep #{arg} | awk '{print $2}'`.split("\n") | |
| pids.each do |pid| | |
| puts `Echo.rb bold blue "\tPID: #{pid}"` | |
| end |
This file contains hidden or 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/env ruby | |
| #Usage: | |
| # Echo.bold OutputString | |
| # | |
| # \e[z;XX;YYm | |
| class TermFormat | |
| @DEFAULTS ={ |
This file contains hidden or 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 -e | |
| echo `ruby -v | sed 's/(.*//g' | sed 's/ruby//g' |sed 's/ //g' |sed 's/[ \t]*$//'` | |
| # I realized after spending about 30 minutes on building up this command for my zsh Prompt that | |
| # rvm_ruby_string contains the same thing. | |
| # However, the reason I added this to my prompt is RVM kept giving me problems with not switching from OSX inbuilt ruby to the | |
| # current environment...so adding an indicator always helps. |
NewerOlder