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
for f in *_test.py; do mv "$f" "$(echo "$f" | sed 's/_test.py/.py/' | sed 's/^/test_/')"; done |
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 zsh | |
# ------------------------------------------------------------------------------ | |
# | |
# Pure - A minimal and beautiful theme for oh-my-zsh | |
# | |
# Based on the custom Zsh-prompt of the same name by Sindre Sorhus. A huge | |
# thanks goes out to him for designing the fantastic Pure prompt in the first | |
# place! I'd also like to thank Julien Nicoulaud for his "nicoulaj" theme from | |
# which I've borrowed both some ideas and some actual code. You can find out |
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
alias berc='bundle exec rails c' | |
alias l="ls -lrt" | |
alias ruch="git diff --name-only --cached | xargs bundle exec rubocop -A" |
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
[color] | |
branch = auto | |
status = auto | |
diff = auto | |
[color "diff"] | |
meta = yellow | |
frag = cyan | |
old = red | |
new = green | |
[color "branch"] |
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
# Create new image (new-onboarding.png) veritical append | |
convert -append onboarding.png service-area.png new-onboarding.png | |
# Create new image (new-onboarding.png) horizontal append | |
convert +append onboarding.png service-area.png new-onboarding.png |
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 bash | |
uninstall() { | |
list=`gem list | grep -v default | awk '{print $1;}'` | |
for gem in $list; do | |
gem uninstall -aIx $gem | |
done | |
gem list | |
gem install bundler | |
} |
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
{"version":1,"resource":"file:///Users/kevinenglish/Projects/housecall-web/db/migrate/20220805204019_fix_my_db.rb","entries":[{"id":"kNAK.rb","timestamp":1659732116041},{"id":"47uP.rb","timestamp":1659732132191},{"id":"Eict.rb","timestamp":1659732290956},{"id":"DKrR.rb","timestamp":1659732653766},{"id":"9HQa.rb","timestamp":1659732681217},{"id":"DQln.rb","timestamp":1659734424997}]} |
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
find iphone-backup-06-2019/ -mindepth 2 -type f -exec mv -i '{}' iphone-backup-06-2019/ ';' | |
# Mount ntfs drive | |
sudo /usr/local/bin/ntfs-3g /dev/disk3s1 /Volumes/NTFS -olocal -oallow_other |
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
desc 'Run RuboCop on the app and lib directories based on git diff' | |
Rubocop::RakeTask.new('rubocop') do |task| | |
cmd = 'git diff --name-only --diff-filter=ACMRTUXB ' \ | |
'$(git merge-base HEAD flux) ' \ | |
'| egrep \'\.rake$|\.rb$\'' | |
diff = `#{cmd}` | |
# always include this file, if the patterns is empty it run everything | |
patterns = ['lib/tasks/ci.rake'] |
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
ruby -run -e httpd coverage -p 9090 | |
# | |
lsof -i tcp:3000 |
NewerOlder