This file contains hidden or 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 | |
# Exit immediately if a command exits with a non-zero status. | |
set -e | |
# --- Configuration --- | |
SWAP_SIZE="2G" | |
MOUNT_POINT="/mnt/usb" | |
SWAP_PRIORITY="10" # Lower priority than ZRAM's 32767 |
This file contains hidden or 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
31jMWLFSqvNBPNhpyaYCc8Dv37bHdL6WM8 |
This file contains hidden or 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 | |
# Author: Andreas Nilsen | |
# Email: [email protected] | |
# Github: https://www.github.com/adde88 | |
# License: GPL-3 | |
# Check arguments | |
if [[ $# -ne 2 ]]; then | |
echo "Usage: $0 /path/to/file.{wav,mp3,m4a,ogg} frequency_in_MHz" | |
echo "Example: $0 /home/pi/audio.mp3 100.1" |
This file contains hidden or 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
# /etc/modprobe.d/88x2bu-profiles/88x2bu.ap.conf | |
# | |
# This config was written by Andreas Nilsen - @adde88 - https://www.github.com/adde88 | |
# Date: 23. April 2025 | |
# | |
blacklist rtw88_8822bu | |
options 88x2bu \ | |
rtw_drv_log_level=3 # WARNINGS only :contentReference[oaicite:10]{index=10} \ | |
rtw_led_ctrl=1 # LED normal blink :contentReference[oaicite:11]{index=11} \ |
This file contains hidden or 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
bc1qrvepmcapn8lywndcnyr8wxs969vgjhrue24gv0 |
This file contains hidden or 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
# Systemd service file. | |
# Save to: /etc/systemd/system/ | |
# Then: 'sudo systemctl enable corsair-quiet.service' | |
# Delete these four commented lines before saving this file | |
[Unit] | |
Description=Corsair AIO Manager | |
After=multi-user.target | |
[Service] | |
Type=oneshot |
This file contains hidden or 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
[Unit] | |
Description=Set Corsair AIO to quiet mode | |
After=multi-user.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/local/bin/corsair-quiet.sh | |
RemainAfterExit=yes | |
[Install] |
This file contains hidden or 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/sh | |
# | |
# This script will do the same as dos2unix and unix2dos, which are usable on Linux and Window. | |
# I made this so that i would be able to do the same on embedded devices like OpenWRT. | |
# | |
# Author: Andreas Nilsen <[email protected]> - @adde88 - http://www.github.com/adde88 | |
# Date: 16. October 2024 | |
# | |
# | |
function show_usage() { |
This file contains hidden or 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 | |
# | |
# Script to easier managing, launching, killing, restarting, and updating ALL of my precious AI tools | |
# Date: 13. October 2024 | |
# | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
# Copyright (C) 2024 Andreas Nilsen <[email protected]> - @adde88 - https://www.github.com/adde88 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# | |
# This script will mass download / scrape a collection of embeddings (textual inversions) for Stable Diffusion, into the sub-folder "embeddings". | |
# So run this script within the root-folder of SD, or wherever your embeddings directory exists. | |
# If it's not named embeddings, or your want to specify the location specifically, you can edit line: 12 | |
import wget | |
import os | |
import sys | |
import signal | |
from huggingface_hub.hf_api import HfApi |
NewerOlder