Skip to content

Instantly share code, notes, and snippets.

View star-bob's full-sized avatar

Bob of DevOps star-bob

  • LITFA
  • In your house!!
View GitHub Profile
@magn2o
magn2o / wpa_supplicant.sh
Created February 10, 2020 02:25
init.d style service script for wpa_supplicant on the UDMPro.
#!/bin/sh
set -eu -o pipefail
CONTAINER_NAME="wpa_supplicant"
IMAGE_NAME="pbrah/wpa_supplicant-udmpro"
IMAGE_TAG="v1.0"
MAC_ADDRESS=""
ETH_IFACE="eth8"
@Neo23x0
Neo23x0 / Base64_CheatSheet.md
Last active November 16, 2025 22:56
Learning Aid - Top Base64 Encodings Table

Base64 Patterns - Learning Aid

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env:
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" <. Often used by Emotet (UTF-16)
@knavesec
knavesec / autoProc.py
Created August 23, 2019 16:29
Automatic lsass dumper
#!/usr/bin/env python
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved.
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# A similar approach to smbexec but executing commands through WMI.
# Main advantage here is it runs under the user (has to be Admin)
# account, not SYSTEM, plus, it doesn't generate noisy messages
@sergeyklay
sergeyklay / journalctl-cheatsheet.md
Last active November 18, 2025 16:58
Journalctl Cheat Sheet

Journalctl Cheat Sheet

Configuration

Permissions

To see messages from other users and the system as well as performing various log operations from a regular user add it to the group:

sudo usermod -aG systemd-journal $USER
import sys, pexpect.popen_spawn, signal
if len(sys.argv) != 3:
print('Usage: license-burp [yes/no] [license-file]')
sys.exit(1)
if sys.argv[1] != 'yes':
print('You must accept the license to use Burp')
sys.exit(1)
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active November 18, 2025 09:43
crack activate Office on mac with license file
@47ronin
47ronin / yt-dlp.sh
Last active August 12, 2025 22:23
Use yt-dlp to merge best video and best audio formats together into an MPEG-4 container, check for AV1/VP9, and transcode to H.264 if necessary. Usage: ./yt-dlp.sh <video_url>
#!/bin/bash
youtube_url="$1"
echo "Downloading video..."
video_info=$(yt-dlp -e -o "%(title)s" -- "$youtube_url")
sanitized_title=$(echo "$video_info" | sed 's/[^a-zA-Z0-9_.-]/_/g')
output_file="${sanitized_title}.mp4"
yt-dlp -o "temp.mp4" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -- "$youtube_url"

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@fbartho
fbartho / 0. Synology RAID Expansion-Resync Performance.md
Last active November 12, 2025 03:03
Walkthrough of what I did to increase performance on my Synology NAS box during an expansion, and afterwards.

Performance on Synology RAIDs

(especially while expanding)

Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.

If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"

Contents