Skip to content

Instantly share code, notes, and snippets.

@l4rm4nd
l4rm4nd / README.md
Created September 2, 2025 08:49
TrueNAS Core // Create new CA and SSL Certificate

TrueNAS CORE: Create a CA, Issue a Certificate, Apply to WebUI

This README shows how to:

  1. Create a new internal Certificate Authority (CA)
  2. Issue a 10-year certificate signed by that CA
  3. List CAs and certs
  4. Set the WebUI to use the new certificate
  5. Restart the WebUI so the cert takes effect

Notes

@l4rm4nd
l4rm4nd / README.md
Last active July 24, 2025 18:34
Install Debian 12 ARM64 onto Nanopi R5C
# download an official eflasher image from friendlyelec.com
# 01_Official_images > 02_SD-to-eMMC images > rk3568-eflasher-debian-bullseye-minimal-6.1-arm64-20250613.img.gz
firefox https://download.friendlyelec.com/NanoPiR5C

# extract the downloaded image archive
gunzip rk3568-eflasher-debian-bullseye-minimal-6.1-arm64-20250613.img.gz

# flash the image onto an sd card with minimum 8GB
sudo dd if=rk3568-eflasher-debian-bullseye-minimal-6.1-arm64-20250613.img of=/dev/sdb bs=4M status=progress
@l4rm4nd
l4rm4nd / install_silentbridge.sh
Last active July 12, 2025 16:53
SilentBridge on Raspberry Pi 4 (kali-linux-2025.2-raspberry-pi-arm64.img)
# install dependencies for netifaces
sudo apt install python2-dev -y
# get python2 pip
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2.7 get-pip.py
rm get-pip.py
# downgrade virtualenv to support python2.7 venvs
# see https://github.com/pypa/virtualenv/releases/tag/20.22.0 - drops python2.7 support
@l4rm4nd
l4rm4nd / fix-entitlements.sh
Created January 5, 2025 16:16 — forked from shoaloak/fix-entitlements.sh
This script automates the process of granting specific entitlements to a set of iOS binaries, resolving issues related to 'Operation not permitted' errors, e.g., when accessing /private/var/mobile/Containers.
#!/bin/bash
# Author: Shoaloak (Axel Koolhaas) 2024
# Description: Fix iOS binary entitlements/access for "Operation not permitted"
ENTITLEMENT="com.apple.private.security.container-manager"
binaries=("sh" "bash" "zsh" "dash" # Shell
"ls" "cat" "find" "cp" "mv" # File management
"rm" "mkdir" "rmdir" "touch"
"file" "ln" "du" "scp"
"chmod" "chown" "chgrp" # Permissions
@l4rm4nd
l4rm4nd / README.md
Last active October 31, 2024 18:13
Kali Linux Docker Container with WireGuard VPN + OpenSSH

Docker Run

# run the container
docker run -v ./kali:/root --privileged --cap-add=NET_ADMIN --cap-add=NET_RAW --sysctl net.ipv4.ip_forward=1 --tty --interactive kalilinux/kali-rolling

Post-Installation within container

@l4rm4nd
l4rm4nd / Convert-BinaryToBase64String.ps1
Created November 3, 2022 12:13
Convert EXE into Base64 String
function Convert-BinaryToBase64String {
[CmdletBinding()] param (
[string] $FilePath
)
try {
$ByteArray = [System.IO.File]::ReadAllBytes($FilePath);
}
catch {
throw "Failed to read file. Ensure that you have permission to the file, and that the file path is correct.";
@l4rm4nd
l4rm4nd / xerox-6515.ppd
Created May 17, 2018 16:05
PostScript Printer Description for Xerox 6515 (tested under Ubuntu 16.04 LTS)
*PPD-Adobe: "4.3"
*% Adobe Systems PostScript(R) Printer Description File
*% Copyright 2009-2010 Xerox Corporation.
*FileVersion: "5.519.0.0"
*FormatVersion: "4.3"
*LanguageEncoding: ISOLatin1
*LanguageVersion: German