Skip to content

Instantly share code, notes, and snippets.

@joninvski
Last active December 26, 2015 05:39
Show Gist options
  • Save joninvski/7101749 to your computer and use it in GitHub Desktop.
Save joninvski/7101749 to your computer and use it in GitHub Desktop.
Gist to save general tips. Temporary while they aren't cleaned up
# Kill all sessions in tmux except the attached one:
tmux ls | grep -v attached | cut -d : -f 1 | xargs -I {} tmux kill-session -t {}
# Create a shared (group cnm_dev) git repo with acl
mkdir project
cd project
git init --bare --shared
setfacl -R -m g:cnm_dev:rwX $PWD
find `pwd` -type d | xargs setfacl -R -m d:g:cnm_dev:rwX
# Compile each tipe source code is saved
while true; do inotifywait -e close_write **/*.java **/*.gradle; ./gradlew build; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment