Skip to content

Instantly share code, notes, and snippets.

@ithilelda
ithilelda / PXE boot with GRUB2.md
Last active July 18, 2024 00:20
actually working pxe boot with grub2 on bios (client setup)

PXE Boot Setup with GRUB2 Tutorial

There are many tutorials on the internet that tell you how to setup a PXE Boot server with PXELINUX. There are however other options to replace PXELINUX like GRUB2 and iPXE. In this tutorial, I'm going to teach you how to setup a PXE Boot Environment with GRUB2, and later add menu entries to boot many popular OSes.

Notice: I'm not going to repeat the part where you setup the DHCP and TFTP server. Such section in other tutorials still applies to this scenario.

Making the GRUB2 image to be loaded by NIC

think the GRUB2 image as the same as PXELINUX's pxelinux.0 file. Your DHCP server must point to it, and it must be available on your TFTP server. Instead of shoving a blob down your throat and telling you that it just works, I'm going to walk you through the process of making one yourself by using an readily available linux installation.

@turtlemonvh
turtlemonvh / README.md
Created April 7, 2022 22:49
bookmark_file_parser

Scripts and functions for handling parsing of bookmark files into more friendly formats.

From some work I was doing in parsing bookmarks back in ~2016, for deduplication and finding similar bookmarks in a collection of 30K+ bookmarks I have accumulated over 15+ years.

The goal was to make this approx constant memory so parsing can happen quickly in very resource constrained environments. Hence the custom streaming XML and JSON parsing.

Now that tools like browser-history exist I'll likely revisit this project in the next couple years since I'll be able to make a lot of progress in just a few hours. At that time I'll likely convert all this into a more public repository.

Import

@tmonjalo
tmonjalo / bt-profile.sh
Last active November 19, 2023 23:23
bluetooth audio profile with PulseAudio
#! /bin/sh -e
# argument can be:
# - list
# - next (default)
# - any text matching a profile name or description
arg=${1:-next}
infos=$(pactl list cards | sed -n '/bluez/,/^Card/p')
if [ -z "$infos" ] ; then
@sxiii
sxiii / p2p-vpns.md
Created September 10, 2021 07:13
P2P VPN List
@brianmed
brianmed / rsync_remote.sh
Last active June 21, 2023 17:29
ZFS Initial Setup on Devuan + Multiple Snapshot Types + Compression + Deduplication
/usr/bin/rsync -az --quiet --partial --delete-after \
--exclude-from=rsync_remote_excludes \
. \
user@server:/mnt/backups/hostname
# Use date --date='@##########' on Linux.. below works with macOS connecting to Linux Devuan
# So all timestamps are the same epoch per script invocation
NOW=$(date '+%s')
@simos
simos / simplesocks5proxyserver.go
Last active June 13, 2024 13:26
Minimal SOCKS5 proxy server in Go
// For use in the tutorial at https://blog.simos.info/a-network-isolated-container-in-lxd/
// Source: https://github.com/armon/go-socks5
//
// To compile, run once: go get github.com/armon/go-socks5
// then run: go run simplesocks5proxyserver.go
//
package main
import (
@vulcan25
vulcan25 / tcpdump.md
Created January 22, 2020 20:21
tcpdump cheatsheet

TCPDUMP

OPTIONS

-i any : Listen on all interfaces just to see if you’re seeing any traffic. -i eth0 : Listen on the eth0 interface. -D : Show the list of available interfaces -n : Don’t resolve hostnames. -nn : Don’t resolve hostnames or port names. -q : Be less verbose (more quiet) with your output.

@tmonjalo
tmonjalo / list-fftabs.py
Created September 13, 2018 10:42
List all Firefox tabs with title and URL
#! /usr/bin/env python3
"""
List all Firefox tabs with title and URL
Supported input: json or jsonlz4 recovery files
Default output: title (URL)
Output format can be specified as argument
"""
@BlaM
BlaM / cookiebanner-go-away.user.js
Last active May 18, 2024 16:55
Get rid of EU Cookie Banners (Tampermonkey)
// ==UserScript==
// @name Get rid of EU Cookie Banners
// @namespace http://blog.deobald.org/
// @description Get rid of EU Cookie Banners
// @license http://creativecommons.org/licenses/by-nc-sa/3.0/
// @downloadURL https://gist.githubusercontent.com/BlaM/6d826d6e9d77d2d77bf9a92fdad55788/raw/cookiebanner-go-away.user.js
// @homepage https://gist.github.com/BlaM/6d826d6e9d77d2d77bf9a92fdad55788
// @version 0.3.4
// @author Dominik Deobald
// @match http*://*/*
@SkyzohKey
SkyzohKey / screen-spoofer.user.js
Last active June 4, 2024 10:23
~ Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// ==UserScript==
// @name Spoof screen resolution & color depth
// @namespace https://skyzohlabs.be
// @version 1.0.5
// @description Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// @author SkyzohKey
// @include http://*
// @include https://*
// @run-at document-end
// @grant none