Skip to content

Instantly share code, notes, and snippets.

View Someguy123's full-sized avatar

Someguy123 Someguy123

View GitHub Profile
@Someguy123
Someguy123 / debian-initramfs-ipv6-hook-script
Last active December 10, 2024 12:02 — forked from zajdee/debian-initramfs-ipv6-hook-script
Scripts to support IPv6 networking in Debian pre-boot (initramfs) environment
#!/bin/sh
##########################################################################################
# Script to be placed in /etc/initramfs-tools/hooks/ipv6
#
# These initramfs IPv6 scripts were originally made by zajdee, and were modified by Someguy123
# at Privex Inc. ( https://www.privex.io ) to fix some issues and add debug logging.
#
# It can be found online here: https://gist.github.com/Someguy123/8092bdc9834aa210fb4bd1523e9a1c38
#
# (Original Gist this was based off of (broken script!): https://gist.github.com/zajdee/65aad61f35d3a63c56c7d1cc76c22e14)
@Someguy123
Someguy123 / deswappify.pl
Last active February 15, 2025 04:55 — forked from WGH-/deswappify.pl
#!/usr/bin/perl
use strict;
use Fcntl qw(SEEK_SET);
sub deswappify {
my $pid = shift;
my $fh = undef;
my $start_addr;