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 bash | |
# | |
# Written by: Andreas Nilsen - <[email protected]> | |
# | |
# This script is custom made to mount my drives, USB drives, and SWAP to their correct directory, due to issues with fstab and systemctl on my system. | |
# it will attempt to detect any drives that are already mounted correctly and uncorrectly, and then behave accordingly | |
# it will attempt to fix any NTFS partitions by using 'ntfsfix' on them before mounting them. | |
# it is meant to be run as a cronjob every minutes, and will ONLY do anything IF it detects that a drive is NOT mounted correctly. | |
# | |
# Latest update: 28.June.2024 |
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
# Script to run Stable Diffusion at launch using systemd | |
# Modify script, like directories and username as needed | |
# File should then be located here: /usr/lib/systemd/system/stable-diffusion.service | |
# Then run "sudo systemctl enable stable-diffusion" | |
# "sudo systemctl start stable-diffusion" | |
# | |
# Written by Andreas Nilsen - <[email protected]> | |
# | |
# |
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 | |
# Written by: Andreas Nilsen, 09.01.2023 - <[email protected]> | |
# Made for Kali Linux 2024.1 / Debian 12, with Gnome Desktop Environment | |
# | |
# Installing zenity package if not already installed | |
if ! command -v zenity &> /dev/null; then | |
echo "Installing missing: 'zenity' package..." | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root to install any missing packages." |
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 | |
# | |
# 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 |
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: 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] |
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
{ | |
"PresetList": [ | |
{ | |
"AlignAVStart": true, | |
"AudioCopyMask": [ | |
"copy:aac" | |
], | |
"AudioEncoderFallback": "av_aac", | |
"AudioLanguageList": [], | |
"AudioList": [ |
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 |
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
#!/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
[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] |