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
@monkseal
monkseal / rename_py_test.sh
Created May 24, 2023 16:20
Rename _test.py to test_...py
for f in *_test.py; do mv "$f" "$(echo "$f" | sed 's/_test.py/.py/' | sed 's/^/test_/')"; done
@monkseal
monkseal / keng-refined.zsh-theme
Created February 24, 2023 14:50
My zsh theme .oh-my-zsh/themes/keng-refined.zsh-theme
#!/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
@monkseal
monkseal / .aliases
Last active February 24, 2023 16:58
LongLake Road alias berc='bundle exec rails c'.aliases
alias berc='bundle exec rails c'
alias l="ls -lrt"
alias ruch="git diff --name-only --cached | xargs bundle exec rubocop -A"
@monkseal
monkseal / .gitconfig
Created February 24, 2023 14:34
LongLakeRoad .gitconfig
[color]
branch = auto
status = auto
diff = auto
[color "diff"]
meta = yellow
frag = cyan
old = red
new = green
[color "branch"]
@monkseal
monkseal / convert.sh
Created October 28, 2021 15:38
Combine images with convert
# 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
@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
}
{"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}]}
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
@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']
ruby -run -e httpd coverage -p 9090
#
lsof -i tcp:3000