🤦♀️
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
#!/bin/sh | |
# XXX: possible improvements could be adding parameter for PORT and arduino core type | |
# right now working with UNO and YUN that shares same core | |
~/bin/arduino-cli compile --fqbn arduino:avr:$1 --log-level debug -v $2 && \ | |
~/bin/arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:$1 --log-level debug -v $2 |
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
#!/bin/bash | |
_vers=v$(node -e "const pckg = require('./package.json'); console.log(pckg.version);") | |
git tag $_vers | |
git push origin $_vers |
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
find . -type d -depth 2 -name "node_modules" -exec rm -rf "{}" \; 2> /dev/null |
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
# TMUX session auto complete on tab ############### | |
tat() | |
{ | |
local session_name="$1" | |
tmux attach-session -t "$session_name" | |
if [ $? -ne 0 ]; then | |
local code_dir="/home/ryandotsmith/src" | |
local list_of_dirs=( $(find "$code_dir" -name "$session_name" -type d ) ) |
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
if has("mouse") | |
set mouse-=a | |
endif | |
"Mappings from Gijs | |
let mapleader = "," | |
nnoremap ; : | |
nnoremap - / |
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
bind r source-file ~/.tmux.conf | |
#Rename the terminals | |
set -g set-titles on | |
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)' | |
#The status bar customization | |
set -g status-bg colour92 |
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
lsof -n -i :9487 | grep LISTEN | awk '/^\w*\s*/ {print $2}' |
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
or="4a706bf3296c814f7d0481681f37289c"; md=$(md5 -q FileToCheck); if [ "$md" == "$or" ]; then echo "OK"; else echo "NoK"; fi |
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
mc ls minio/ | cut -d'B' -f2 | while read x ; do mc rm -r --force minio/$x ; done |
NewerOlder