scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 81a91a970893485c3c6b8a96fdb52b4202a3eda0
parent 0a027d844ba123162c0612baf47f5ecc9a453c4e
Author: Andrew Laack <andrew@laack.co>
Date:   Sun, 22 Feb 2026 03:38:36 -0600

Wrote automations for some stuff. created shell script for tracking usage

Diffstat:
Mchat.sh | 2+-
Agithub/opener.py | 16++++++++++++++++
Minstallers/arch-public-installation.sh | 11+++++++++--
Atracking/imbue-stats.sh | 45+++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 71 insertions(+), 3 deletions(-)

diff --git a/chat.sh b/chat.sh @@ -1,4 +1,4 @@ #!/bin/bash -thunderbird & +#thunderbird & signal-desktop & diff --git a/github/opener.py b/github/opener.py @@ -0,0 +1,16 @@ +import pyautogui as pag +import os +import time +import random + +itr = 0 + +while True: + + if itr % 10 == 0: + os.system('protonvpn connect > /dev/null 2>&1') + itr += 1 + print('Iteration: ' + str(itr)) + os.system('librewolf --private-window "https://duckduckgo.com/?q=\\imbue%20ai%20vet&ia=web" &') + time.sleep((random.random() * 6) + 4) + pag.click(4035, 740) diff --git a/installers/arch-public-installation.sh b/installers/arch-public-installation.sh @@ -1,14 +1,21 @@ #!/bin/bash # Full arch installer (publicly accessible resources only) -sudo pacman -S git gcc make xorg-server libxft libxinerama freetype2 pkgconf ttf-fira-code zoxide fzf openssh less arandr dmenu pass pass-otp xclip newsboat xorg-xsetroot base-devel i3lock pandoc zathura entr ripgrep wget jq man-db btop tmux rsync cronie mpv podman pavucontrol otf-latinmodern proton-vpn-gtk-app proton-vpn-cli tk brightnessctl zip unzip +sudo pacman -S git gcc make xorg-server libxft libxinerama freetype2 pkgconf ttf-fira-code zoxide fzf openssh less arandr dmenu pass pass-otp xclip newsboat xorg-xsetroot base-devel i3lock pandoc zathura entr ripgrep wget jq man-db btop tmux rsync cronie mpv podman pavucontrol otf-latinmodern proton-vpn-gtk-app proton-vpn-cli tk brightnessctl zip unzip signal-desktop xorg-xset lynx figlet + +# xorg-xset is for disabling screen turning off after inactivity +# it often kicks in and results in my laptop not detecting my monitor again. +# this is possibly a limitation of using usbc on an older laptop with such a +# large monitor... fc-cache +# TK is for pyautogui, gui automations. + # TODO: Is there a programatic way to set up librewolf? # I installed latinmodern for the LaTeX font LMRoman10 which is what I force sites in to use with librewolf. # I also force the monospace font to be Fira Code. -# I also use vimium (copying the backup that is in my config directory) +# I also use vimium (copying the backup that is in my config directory) and dark reader. # I then enable the dark theme and set the home page to be blank. # Anything beyond this feels like more work than it's worth. diff --git a/tracking/imbue-stats.sh b/tracking/imbue-stats.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +githubResults() { + + echo "=======================================================" + echo "$1" + + results=($(curl -s -H "Authorization: token $GITHUB_API_KEY" \ + https://api.github.com/repos/imbue-ai/$1/traffic/clones | jq '.clones | last' | jq '.count, .uniques')) + + echo "Clones today: ${results[0]}" + echo "Unique cloners today: ${results[1]}" + + results=($(curl -s https://api.github.com/repos/imbue-ai/$1 | jq '.stargazers_count, .subscribers_count, .forks_count')) + echo "Stars: ${results[0]}" + echo "Watchers: ${results[1]}" + echo "Forks: ${results[2]}" +} + +pypiResults() { + + echo "=======================================================" + echo "$1" + + results=$(curl -s https://pypistats.org/api/packages/$1/recent | jq -r '.data | {last_day, last_month, last_week}') + + last_day=$(echo "$results" | jq -r '.last_day') + echo "Last day: $last_day" + + last_week=$(echo "$results" | jq -r '.last_week') + echo "Last week: $last_week" + + last_month=$(echo "$results" | jq -r '.last_month') + echo "Last month: $last_month" + + +} + +figlet -f smslant 'pypi' + +pypiResults 'verify-everything' +pypiResults 'mng' +figlet -f smslant 'github' +githubResults 'vet' +githubResults 'mng'