Skip to content

Instantly share code, notes, and snippets.

# Installing NixOS alongside Arch Linux (LUKS + LVM + btrfs + systemd-boot)
This guide covers installing NixOS into a new btrfs subvolume on an existing
Arch Linux system with the following layout:
- LUKS2 encrypted partition → LVM → btrfs volume (`vg41p/root`)
- Separate EFI partition (`/efi`, FAT32) and `/boot` (ext4)
- systemd-boot as the bootloader
---
import sys
import subprocess
if len(sys.argv) == 1:
print('please specify a group-id')
sys.exit(-1)
KAFKA_HOSTS="localhost:9092"
if len(sys.argv) > 2:
KAFKA_HOSTS=sys.argv[2]
#!/usr/bin/pkexec /bin/sh
echo "You probably want to use rescanpci not this."
for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
echo "${i##*/}" > "${i%/*}/unbind"
sleep 3
echo "${i##*/}" > "${i%/*}/bind"
done
#!/bin/sh
#TODO: Pass interface name in as a parameter. Right now wlp3s0 is assumed.
# Figure out what pci slot Linux has assigned the Network controller: Intel Corporation Wireless 7260
wirelessPCI=$(lspci |grep "Wireless 7260")
pci=$(echo ${wirelessPCI} | awk '{ print $1 }')
devicePath="/sys/bus/pci/devices/0000:$pci/remove"
# Not the best solution as this script can hang.
@sashomasho
sashomasho / gist:4628777
Created January 24, 2013 22:29
Hacker's Manifesto_by_The Mentor.txt
File: archives/7/p7_0x03_Hacker's Manifesto_by_The Mentor.txt
==Phrack Inc.==
Volume One, Issue 7, Phile 3 of 10
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following was written shortly after my arrest...
\/\The Conscience of a Hacker/\/