Skip to content

Instantly share code, notes, and snippets.

@gregorriegler
gregorriegler / windows: kill process blocking port
Last active July 18, 2022 20:30
Windows kill process that blocks port
# find pid that blocks the port
netstat -ano | findstr :<PORT>
# find name of that process
tasklist | findstr '<PID>
# kill the process
taskkill /PID <PID> /F
@gregorriegler
gregorriegler / json-to-csv.sh
Last active March 9, 2022 18:54
Sonar Json to Csv
jq -r '["Severity", "Type", "Rule", "File", "Line", "Description"], (.issues[] | [.severity, .type, .rule, .component, ((.textRange.startLine // ""|tostring) + "-" + (.textRange.endLine // ""|tostring)), .message]) | @csv' search.json
@gregorriegler
gregorriegler / justfile for tdd and tcr
Last active August 9, 2022 12:26
justfile for continuous testing and tcr
goal +MESSAGE:
git pull --rebase --autostash
git commit --allow-empty -m "Goal: {{MESSAGE}}"
git push
done +MESSAGE:
git pull --rebase --autostash
git commit --allow-empty -m "{{MESSAGE}}"
git push
@gregorriegler
gregorriegler / downgrade.md
Created September 6, 2022 17:27
Downgrade arch with paru

Uninstall package

paru -R package

Uninstall package without its dependencies

paru -Rns package