Skip to content

Instantly share code, notes, and snippets.

View hngl's full-sized avatar
💪
Challenge accepted

Jurriaan van Hengel hngl

💪
Challenge accepted
View GitHub Profile
source rendered

Literal block style

@hngl
hngl / rspec_descriptions.sh
Created May 28, 2020 18:15
List all RSpec example descriptions
be rspec -f d --color --dry-run spec/features/**
@hngl
hngl / analyze.sh
Last active June 18, 2020 14:55
Webpack
NODE_ENV=production bin/webpack --config config/webpack/production.js --profile --json > stats.json
# Serve the chart, do not forget to provide the public/packs argument to show real sizes
./node_modules/.bin/webpack-bundle-analyzer stats.json public/packs
@hngl
hngl / gem install mysql2 0.5.4
Last active January 23, 2024 18:37
gem install mysql2 0.5.3
gem install mysql2 -v 0.5.4 -- --with-cppflags=-I/usr/local/opt/openssl@1.1/include --with-ldflags=-L/usr/local/opt/openssl@1.1/lib
@hngl
hngl / gem_install_mysql.sh
Last active May 28, 2020 18:09
Bundle install with brew mysql
gem install mysql2 -- --with-mysql-dir=/usr/local/opt/mysql@5.7
@hngl
hngl / docker_run_npm.sh
Last active September 18, 2018 13:23
Run single npm script
docker run -it --rm -v $(pwd):/usr/src/app:z -w /usr/src/app --user=$UID:$(id -g $UID) -e HOME="." node:8 npm run encore-prod
@hngl
hngl / git_delete_remote.sh
Last active September 17, 2018 07:07
git: Delete merged remote branches
# First checkout master!
# First remove local remote tracking branches that no longer exist on remote
git remote prune origin
# Now remove remote branches that are merged in the currect branch (except `master`, `demo` and `rc)
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |