Skip to content

Instantly share code, notes, and snippets.

View alanfzf's full-sized avatar
❄️
learning nix

Alan González alanfzf

❄️
learning nix
View GitHub Profile
@alanfzf
alanfzf / sway-monitor.sh
Created August 19, 2025 06:29
Get current monitor config for sway
#!/bin/bash
swaymsg -t get_outputs | jq -r '.[] | select(.active) | "output \(.name) resolution \(.current_mode.width)x\(.current_mode.height)@\(.current_mode.refresh/1000)Hz position \(.rect.x),\(.rect.y) scale \(.scale) transform \(.transform)"'
@alanfzf
alanfzf / clone.sh
Created July 25, 2025 00:27
Clone all githubs repos from specific organization
#!/bin/bash
gh repo list myorgname --limit 4000 | while read -r repo _; do gh repo clone "$repo" "$repo"; done
#!/bin/bash
# System variables
PROFILE=finanssoreal
BUCKET=s3://finanssoreal/database/
OBJECT="$(aws s3 ls --profile $PROFILE $BUCKET | sort | tail -n 1 | awk '{print $4}')"
FULL_PATH="$HOME/$OBJECT"
aws s3 cp "$BUCKET$OBJECT" "$FULL_PATH" --profile $PROFILE
@alanfzf
alanfzf / mystery.sh
Last active January 31, 2025 05:40
....
#!/bin/bash
start_date="2023-09-05"
end_date="2023-10-15"
commits=()
for commit in $(git log --format=%H | cut -d ' ' -f 1)
do
commits+=("$commit")
done
@alanfzf
alanfzf / autoexec.cfg
Last active November 27, 2023 22:43
Alan's CS:GO Config
# ALIAS
alias "+jumpaction" "+jump;"
alias "+throwaction" "-attack; -attack2"
alias "-jumpaction" "-jump"
bind t "+jumpaction;+throwaction;"
# BINDS
unbind mwheelup
unbind mwheeldown
bind "r" "+reload"