Skip to content

Instantly share code, notes, and snippets.

View leeopop's full-sized avatar

Keunhong Lee leeopop

  • KAIST
  • Daejoen, Korea
View GitHub Profile
@leeopop
leeopop / git-remove-untracked
Created March 23, 2021 01:42
Remove untracked branches on git
#!/bin/bash
set -o noglob
git remote update --prune
raw_input=$(git branch -vv)
while read -r line; do
branch_line=$(echo "$line" | sed s/*//g)
branch_line=$(echo $branch_line)
branch_name=${branch_line%% *}
if [[ $branch_line =~ "[origin/" ]]
then
@leeopop
leeopop / pid.csv
Created March 1, 2021 13:37
Custom PIDs
000_Battery Current Batt Current 2101 ((Signed(K)*256)+L)/10 -230 230 A 7E4
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEmw11dvaEsDWGgak3IXs2jqvO1AtqPa03kW8fDy42OG leeopop-2021