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 / Launch-Ollama-Symlinker.bat
Created December 1, 2025 13:37
Ollama-HardLinker: Interactive PowerShell script to import GGUF models using NTFS Hard Links (Zero-Duplication of Models to Save Storage) on Windows 11.
@echo off
:: Copyright (C) 2025 - Author: Andreas Nilsen
:: Launcher for Ollama Symlink Optimizer
:: Ensures script runs with Admin privileges
TITLE Ollama Model Manager & Symlinker
CLS
:checkPrivileges
NET FILE 1>NUL 2>NUL
@adde88
adde88 / .zsh_aliases
Created September 7, 2025 11:15
A Zsh function to display live system information for a Raspberry Pi 3B+
# Start of this file that gets sourced from .zshrc
#
pinfo() {
# Color Codes for a beautiful output
C_DEFAULT="\e[0m"
C_BOLD="\e[1m"
C_RED="\e[31m"
C_GREEN="\e[32m"
C_YELLOW="\e[33m"
C_BLUE="\e[34m"
@adde88
adde88 / Obfuscate-PSScript.ps1
Last active September 6, 2025 19:18
Obfuscate-PSScript.ps1: A Custom Multi-Layer PowerShell Script Obfuscator, made in Powershell
# Obfuscate-PSScript.ps1
# A Multi-Layer PowerShell Script Obfuscator for Windows 11
# Author: Andreas Nilsen
# Email: adde88@gmail.com
# GitHub: https://github.com/adde88
# Twitter/X: @adde87
# Date: 06. September 2025
# License: Creative Commons Attribution-NonCommercial (CC BY-NC)
# You are free to share and adapt, but must:
@adde88
adde88 / PowerLoader.ps1
Last active August 21, 2025 14:57
One script to rule them all. Instantly deploy a complete PowerShell security research and administration arsenal from PSGallery and GitHub. Skips duplicates, validates sources, and gets you operational in minutes.
<#
.SYNOPSIS
Installs and maintains a curated arsenal of PowerShell modules from the PowerShell Gallery and GitHub.
.DESCRIPTION
This script automates the provisioning of a complete security research and administration environment.
It intelligently installs modules from two sources:
1. A curated list of modules from the official PowerShell Gallery.
2. A specialized list of security tools from trusted GitHub repositories.
@adde88
adde88 / gupdate.ps1
Last active July 24, 2025 10:02
Poweshell: GIT Update all GIT-repos within this folder. (Searches all sub-dirs for GIT repos, and updates them perfectly)
# Git Repository Updater - PowerShell Version
# Made by: Andreas Nilsen - adde88@gmail.com - https://www.github.com/adde88
# Date: 24.07.2025
# Requires PowerShell 5.0 or higher
# Set error action preference to stop on errors
$ErrorActionPreference = "Stop"
# Initialize variables
$gitRepositories = @()
@adde88
adde88 / aliases.sh
Created July 16, 2025 18:30
Evil Twin - Easy Setup Script - WiFi Pineapple MKVII (airebase-ng) (WPA, WPA2, + New WPA3 Downgrade attack!!
# /etc/profile.d/aliases.sh
alias netstat='netstat -tulnp'
alias ll='ls -alF --color=auto'
alias ps='ps aux'
alias ip='ip -color=auto'
alias du='du -sh'
alias dmesg='dmesg -T'
alias free='free -h'
alias procmtd='cat /proc/mtd'
alias procpart='cat /proc/partitions'
@adde88
adde88 / LICENSE
Last active July 9, 2025 15:56
Windows 11: Right-Clicking (Context Menu) on EXE files, and other similar files. Easy set files,binaries,scripts to now be automatically be ran as Admin each time!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Copyright (C) 2025 Andreas Nilsen <adde88@gmail.com>
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.
@adde88
adde88 / setup_usb.sh
Created June 22, 2025 09:48
Auto-setup USB drive on RPi3B+ with ext4 and 2GB swap
#!/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
31jMWLFSqvNBPNhpyaYCc8Dv37bHdL6WM8
@adde88
adde88 / fm_transmit.sh
Last active June 5, 2025 15:00
FM Radio Audio Transmitter Script for Raserry Pi3B+. Requires working "pi_fm_adv". Supports: wav, mp3, m4a, ogg.
#!/bin/bash
# Author: Andreas Nilsen
# Email: adde88@gmail.com
# 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"