Dotfiles for my computer and utilities.
These are configurations for the current computers I'm currently using and server stuff.
PAST
- OSX NOW
- Lenovo Carbon X1 Black
- MX Linux
- Windows 10
- Server
- Debian
- Ubuntu
VSCode Sync Settings
Interesting commands you can use.
find . -name '*.js' ! -type d -exec bash -c 'expand -t 2 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;
alias gpar='git remote | xargs -L1 git push --all' # git remote | xargs -l git push --all
git log --raw | grep "^Author: " | sort | uniq -c
wget -qO- https://api.github.com/orgs/ORG/repos | jq ".[].html_url" | xargs -L 1 git clone
date "+%Y%m%d_%H%M"
fswatch . | while read; do functions-framework --target do_work --debug; done)
# alias run_rsync='rsync --rsync-path /usr/bin/rsync -azP --exclude ".*/" --exclude ".*" --exclude "tmp/" --exclude "*venv/*" --exclude "/home/szheng/juggernaut-devops/terraform/configs/nyc3-prod-data-excalibur-unmanaged/*" -r ~/Code/juggernaut-devops szheng@local-etl:~/'
# run_rsync; fswatch -o . | while read f; do run_rsync; done
Local IAP tunnel
gcloud compute start-iap-tunnel <box name> 22 --local-host-port=localhost:2222 --zone=us-central1-a --project <GCP_projecT>
https://mokacoding.com/blog/env-xargs/
env $(cat .env | grep -v "#" | xargs) your_command_expecting_env_vars