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
bundle exec rspec $(git status | grep spec | grep "modified:" | cut -b 14-)
for i in $(find app/assets -name \*.scss); do # Not recommended, will break on whitespace
cp /dev/null "$i"
done
## 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
[color]
branch = auto
status = auto
diff = auto
[color "diff"]
meta = yellow
frag = cyan
old = red
new = green
[color "branch"]
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"
# get any route path (third item) with 'user' in it.
bundle exec rails routes | grep user | awk '{print $3}'
# get any route path (third item) with 'user' in it.
# NOTE: this removes the trailing (.:format)
bundle exec rails routes | grep user | awk '{ gsub("\\\(.:format\\\)","",$3); print $3}'
# generate a Spec file name from react compoment
find app/javascript/ReactApps/components | sed -e 's/app/spec/' | sed -e 's/\.js/Spec.js/'
@monkseal
monkseal / Policy
Last active January 17, 2018 17:05 — forked from WarlaxZ/Policy
Serverless IAM Requirements
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"apigateway:DELETE",
"apigateway:GET",
"apigateway:GetResources",
"apigateway:POST",
@monkseal
monkseal / awk-sed-tricks.bash
Last active September 4, 2018 20:29
awk-sed-tricks.bash
# Get 3rd word:
bundle exec rails routes | grep pages | awk '{print $3}'
# Get 3rd word without (format)
bundle exec rails routes | grep pages | awk '{ gsub("\\\(.:format\\\)","",$3); print $3}'
# Run eslint, substitute out full path/ directory for project 'home-page'
yarn run eslint app/javascript | grep javascript | sed -e 's/Users\/v-kevin.english\/Projects\/home-page\///'
@monkseal
monkseal / fix_thumbdrive.sh
Created April 30, 2017 03:24
Remove ._ files from thumbdrive
# use dot_clean to get rid of things
dot_clean /Volumes/MUSIC16/
# Remove .DS_Store files
find /Volumes/MUSIC16 -name .DS_Store -delete
@monkseal
monkseal / collect3.go
Created April 2, 2016 09:58
Broken golang collect
package main
import "fmt"
type car struct {
make string
model string
year int
}