This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# scdl runner that builds a whole container first | |
echo Running docker build first... | |
docker build --tag scdl - <<EOF | |
FROM alpine AS unzipper | |
WORKDIR /zip | |
RUN wget 'https://github.com/flyingrub/scdl/archive/refs/tags/v2.7.3.zip' && \ | |
unzip 'v2.7.3.zip' && mv scdl-2.7.3 scdl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
while read -r package ; do | |
echo "${package%-*}" | |
done < <(xbps-query -lm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
# This is a tool that emulates a usb switch by leveraging usbip | |
# The script is needed on two machines | |
# PC: 1 PC: 2 | |
# ############### ############## | |
# # # -- ./switch --> # # | |
# # SERVER # # CLIENT # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Bash gumroad downloader based on a python script from user gatekeepr: | |
# https://gist.github.com/gatekeepr/97d6244dc074280b32f505443fbd7fe6 | |
# Easily extendable with GNU Parallel! (if you have the download capacity :) | |
# TODO: Could use a fancy bar or download counter... | |
url="https://gumroad.com/d/a795646b9ddc4a496c6cab5e3fa179b5" | |
cookies_path="./cookies.txt" | |
download_path="./" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
directory="4ch_pictures" | |
directory_named=0 | |
url="" | |
for arg in "$@"; do | |
if [ "$arg" == "--help" ] || [ "$arg" == "-h" ]; then | |
echo "Scrapes all media from a 4ch thread; | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This makes a readily bootable Voidlinux SD-Card for the raspberrypi | |
# Sets up some configs, making the Pi connect to wifi and sshd | |
# | |
# First boot up takes a very long time (5+ mins even) on a Zero W. Really give it time. | |
# For remedy on subsequent booting see: | |
# https://wiki.voidlinux.org/Raspberry_Pi#Enabling_hardware_RNG_device | |
# SD-Card: | |
device="/dev/mmcblk0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
url="https://gumroad.com/d/7b65cbcb5004935ce63bdd4cdd22ccba" | |
button_links=$(curl -c ./cookies-gumroad-com.txt -b ./cookies-gumroad-com.txt $url -L -Ss | grep '"download_click" data-url="' | awk '{print $7}' | cut -d '"' -f2) | |
# Possible replacement: button_links=$(curl -c ./cookies-gumroad-com.txt -b ./cookies-gumroad-com.txt $url -L -Ss | grep -oP '(?<=download_click" data-url=").*?(?=")') | |
for link in $button_links; do | |
curl --limit-rate 4000k -C - "gumroad.com$link" -L -c ./cookies-gumroad-com.txt -b ./cookies-gumroad-com.txt \ |