Skip to content

Instantly share code, notes, and snippets.

View besendorf's full-sized avatar
🏠
Working from home

besendorf

🏠
Working from home
View GitHub Profile
@Te-k
Te-k / threat_intel.md
Last active November 26, 2025 19:17
Threat Intelligence platforms
All requests need an accounts.bahn.de Login Bearer!
Root URL: apis.deutschebahn.com
Get User Name and data:
GET /db/apis/bahnbonus/self-service/v1/customerdata/customerStatus
Get BahnBonus Account Number, Points and Stautus Level
GET /db/apis/bahnbonus/loyalty-service/v2/customer/loyalty
@franklinmoy3
franklinmoy3 / opkg_restore.sh
Last active December 7, 2025 21:10
OpenWRT restore installed packages
#!/bin/sh
# Assumes backup was made using sysupgrade -k -b <name>
# Paste package list into /etc/backup/installed_packages.txt
# Reinstalls packages (ignoring source descriptors "overlay" and "rom" using awk)
opkg update
cat /etc/backup/installed_packages.txt | awk 'gsub(/overlay|rom/, ""){print}' | xargs opkg install
# Clean up duplicate conffiles generated by OPKG
rm /etc/*/*-opkg
echo "Done. Any duplicate conffiles created by OPKG have been deleted"
@L0j1k
L0j1k / headless-optional-luks-encrypted-debian-with-uefi-boot.md
Last active November 19, 2025 08:29 — forked from nupplaphil/headless-luks-encrypted-debian-server-with-uefi.md
(Headless-optional) UEFI-bootable LUKS-encrypted Debian
### NOTE: if performing these steps from e.g. USB, you will
###       need to boot from an EFI-enabled live image and
###       then load the efivarfs kernel module in order to 
###       make changes to EFI variables with efibootmgr

# root shell
sudo -s

# load EFI kernel module
@lrecknagel
lrecknagel / github2Gitea.js
Created September 17, 2019 13:28
a small nodejs module to migrate a list of github repos (FROM A ORGANIZATION) to gitea
const fetch = require('node-fetch'),
FormData = require('form-data');
// your gitea domain without trailing slash
const GITEA_DOMAIN = 'https://subdomain.domain.xyz';
// you can find this variables when you visit your gitea installation
// open dev-tools and look in the Cookies section
const i_like_gitea = 'YOUR_I_LIKE_GITEA_STRING';
const gitea_awesome = 'YOUR_GITEA_AWESOME_STRING';
# stop active raid
mdadm --stop /dev/md[01]

# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512
dd if=/dev/zero of=/dev/sdc bs=1M count=512
dd if=/dev/zero of=/dev/sdd bs=1M count=512