Skip to content

Instantly share code, notes, and snippets.

View monkseal's full-sized avatar

Kevin English monkseal

  • Kenglish.co - Ruby, React.js, Javascript Developer
  • South Lake Tahoe/San Diego/Honolulu
View GitHub Profile
alias l='ls -lrt'
alias ruch="rubocop -a"
alias upi="cd ~/workspace/upims "
alias gok="cd ~/workspace/go-koans "
alias exk="cd ~/workspace/sandbox/elixir-koans"
alias exg="cd /Users/kenglish/exercism/go"
alias asc="cd ~/workspace/coderly/assured-certificates"
alias engs="cd ~/workspace/hugos/slqselina.github.io"
alias lra="cd ~/workspace/LeaseRadar"
alias rap="cd ~/workspace/raceplace"
[color]
branch = auto
status = auto
diff = auto
[color "diff"]
meta = yellow
frag = cyan
old = red
new = green
[color "branch"]
## Had to instal by hand from https://github.com/joshuaclayton/unused
git ls-files | xargs ctags
cat tags | /Users/kenglish/.local/bin/unused -C --stdin
for i in $(find app/assets -name \*.scss); do # Not recommended, will break on whitespace
cp /dev/null "$i"
done
bundle exec rspec $(git status | grep spec | grep "modified:" | cut -b 14-)
ruby -run -e httpd coverage -p 9090
#
lsof -i tcp:3000
@monkseal
monkseal / rubocop.rake
Created September 25, 2018 16:03
Rubocop change
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']
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
{"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}]}
@monkseal
monkseal / uninstall_gems.sh
Last active October 26, 2021 20:52 — forked from IanVaughan/uninstall_gems.sh
Uninstall all rbenv gems
#!/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
}