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
bundle exec rspec $(git status | grep spec | grep "modified:" | cut -b 14-) |
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 i in $(find app/assets -name \*.scss); do # Not recommended, will break on whitespace | |
cp /dev/null "$i" | |
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
## 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 |
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
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" |
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
# 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/' |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:DELETE", | |
"apigateway:GET", | |
"apigateway:GetResources", | |
"apigateway:POST", |
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
# 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\///' |
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
# use dot_clean to get rid of things | |
dot_clean /Volumes/MUSIC16/ | |
# Remove .DS_Store files | |
find /Volumes/MUSIC16 -name .DS_Store -delete |
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
package main | |
import "fmt" | |
type car struct { | |
make string | |
model string | |
year int | |
} |