scripts

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

commit a74e128e18491c1c1b58556a070f29bc3e58b1d4
parent 94df05fafc1961876df8d5a0dd83ba047564fe04
Author: andrew.laack <andrew.laack@imbue.com>
Date:   Fri,  5 Sep 2025 17:47:49 -0500

Updated scripts

Diffstat:
Minstallers/arch-install.sh | 24++++++++++++++++++++++++
Mnetwork-test.sh | 16+++++++++++-----
Aspawn-network-test.sh | 11+++++++++++
3 files changed, 46 insertions(+), 5 deletions(-)

diff --git a/installers/arch-install.sh b/installers/arch-install.sh @@ -14,7 +14,16 @@ sudo systemctl enable cronie.service sudo systemctl start cronie.service sudo pacman -Sy ocaml # for installing unison sudo pacman -Sy arandr + +#### RSS ### + sudo pacman -Sy newsboat +sudo pacman -Sy lynx +# I am using: +# newsboat -> lynx -> nvim +# This allows me to open rss articles +# in neovim (see .config/newsboat/config). + sudo pacman -Sy torbrowser-launcher sudo systemctl enable tor sudo systemctl start tor @@ -30,6 +39,21 @@ sudo pacman -Sy ttf-fira-code sudo pacman -Sy pavucontrol sudo pacman -Sy pulseaudio sudo pacman -Sy rsync + +### DANGER BELOW ### + +# fuck google and all other cloud providers. +# don't fucking use rclone unless +# you encrypt your shit before sending +# it to the glowies. + +sudo pacman -Sy rclone + +# this is however needed for my +# "network-test.sh" script :) + +### DANGER ABOVE ### + sudo pacman -Sy sshfs sudo pacman -Sy flameshot sudo pacman -Sy yt-dlp diff --git a/network-test.sh b/network-test.sh @@ -1,8 +1,14 @@ while true; do FILENAME=$(hexdump -n 16 -v -e '/1 "%02X"' -e '/16 "\n"' /dev/urandom) - echo $FILENAME - dd if=/dev/random of=/dev/shm/$FILENAME.zip bs=100M count=1 - rclone copy /dev/shm google-drive:backup --progress - rclone deletefile google-drive:backup/$FILENAME.zip - rm /dev/shm/$FILENAME.zip + + echo "Filename: " $FILENAME + DIRNAME=/dev/shm/$FILENAME + echo "Dirname: " $DIRNAME + mkdir $DIRNAME + + dd if=/dev/random of=$DIRNAME/$FILENAME.zip bs=100M count=1 + touch $DIRNAME/$FILENAME.txt + rclone copy $DIRNAME google-drive:backup --progress + rclone deletefile --drive-use-trash=false google-drive:backup/$FILENAME.zip + rm -rf $DIRNAME done diff --git a/spawn-network-test.sh b/spawn-network-test.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +NUM=${1:-1} + +tmux new-session -d "network-test.sh" + +for ((i=2; i<=NUM; i++)); do + tmux new-window "network-test.sh" +done + +tmux -2 attach-session -d