Skip to content

Instantly share code, notes, and snippets.

View adde88's full-sized avatar
🎯
Focusing

Andreas Nilsen adde88

🎯
Focusing
View GitHub Profile
@adde88
adde88 / 88x2bu.ap.conf
Created April 23, 2025 13:04
TP-Link Archer T4U. RTL8822BU driver. Monitor mode, injection, AP mode + optimizaiton for Raspberry Pi 3B+
# /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} \
bc1qrvepmcapn8lywndcnyr8wxs969vgjhrue24gv0
@adde88
adde88 / corsair-quiet.service
Created December 20, 2024 17:51
Corsair AIO Manager - Bash Script | Requires: liquidctl
# 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
@adde88
adde88 / corsair-quiet.service
Created November 30, 2024 13:44
Corsair AIO to quiet mode at boot (SystemD) - Using liquidctl
[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]
@adde88
adde88 / dosunixconv.sh
Created October 16, 2024 18:24
BASH: dos2unix & unix2dos (Will work on OpenWRT devices as well)
#!/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() {
@adde88
adde88 / ai-start
Created October 14, 2024 14:02
Private "wrapper-script" to maintain and launch different installed AI tools
#!/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
@adde88
adde88 / download_embeddings.py
Last active September 10, 2024 14:06 — forked from vedroboev/download_embeddings.py
"SD Concepts Library" - Embeddings Scraper / Downloader
#!/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
@adde88
adde88 / hb-imports-264.json
Last active September 11, 2024 12:30
Script to analyze movie files, to output important information for me. Like filename, filesize, codec, bit-rate, dimensions. More to cum
{
"PresetList": [
{
"AlignAVStart": true,
"AudioCopyMask": [
"copy:aac"
],
"AudioEncoderFallback": "av_aac",
"AudioLanguageList": [],
"AudioList": [
@adde88
adde88 / wifi-monitor-mode.service
Created August 22, 2024 19:34
Systemd service file: Automatically set both wlan0 and wlan1 to monitor mode at boot
# Systemd service file: Automatically will set both wlan0 and wlan1 to monitor mode at boot
# Made by: @adde88 - 2024 - <[email protected]>
#
# Do this after installing this file to: /lib/systemd/system/:
# sudo systemctl daemon-reload
# sudo systemctl enable wifi-monitor-mode.service
# sudo systemctl start wifi-monitor-mode.service
#
[Unit]
@adde88
adde88 / encrypt-decrypt.sh
Created June 3, 2024 17:20
Custom Bash Encryption Functions: Generate Keys, Encrypt/Decrypt Strings and Files, with another encoding layer on top of it
#!/bin/bash
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE# Version 2, December 2004
# Copyright (C) 2024 Andreas Nilsen <[email protected]>
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE