Skip to content

Instantly share code, notes, and snippets.

View ggrrll's full-sized avatar

Gianr Lazz ggrrll

View GitHub Profile
@ggrrll
ggrrll / folders_files_comparishon.sh
Created October 19, 2023 13:44
compare files in two folders
#!/bin/bash
# Argument passing and checking
while getopts 't:r:' flag; do
case "${flag}" in
t) TARGETDIR="${OPTARG}" ;;
r) REFDIR="${OPTARG}" ;;
*)
echo "usage: $0 [-t] [-r]" >&2
exit 1
@ggrrll
ggrrll / MacOS.md
Last active November 10, 2023 13:26
macOS suggestions
@ggrrll
ggrrll / tax_names.md
Last active May 29, 2022 11:10
Swiss tax terms
@ggrrll
ggrrll / IMU_resources.md
Last active January 31, 2022 22:04
resources for IMU (inertial measurement unit )
@ggrrll
ggrrll / useful_tips.md
Last active April 2, 2025 14:36
programming TIPS

Bash / Unix admin

https://www.cheatsheet.wtf/Nano/

  • useful prompt (when working in git repos):
# Show Git branch in the prompt
parse_git_branch() {
git branch 2>/dev/null | grep '*' | sed 's/* //'
on run {input, parameters}
tell application "System Events"
key code 8 using command down
delay 0.1
key code 53
key code 3 using command down
key code 9 using command down
end tell
return input
end run