Skip to content

Instantly share code, notes, and snippets.

View ironiridis's full-sized avatar
🏳️‍⚧️
Trans Rights are Human Rights. 🌈

Christopher Harrington ironiridis

🏳️‍⚧️
Trans Rights are Human Rights. 🌈
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ironiridis on github.
  • I am ironiridis (https://keybase.io/ironiridis) on keybase.
  • I have a public key whose fingerprint is DCBB C30E EBED 8B1C CA9C 69AA 0E28 931C 8AD7 C8E0

To claim this, I am signing this object:

@ironiridis
ironiridis / btunpair.ps1
Last active January 30, 2020 05:23
Bluetooth Unpair Utility
# Originally from this forum post:
# https://www.tenforums.com/drivers-hardware/22049-how-completely-remove-bluetooth-device-win-10-a-post1630800.html#post1630800
# Update to get hardware ID via a string split
# Add hardware IDs to user-visible output
# Don't display IDs that are zero, since they can't be removed via this API anyway
$Source = @"
[DllImport("BluetoothAPIs.dll", SetLastError = true, CallingConvention = CallingConvention.StdCall)]
[return: MarshalAs(UnmanagedType.U4)]
@ironiridis
ironiridis / dmesg-output-wsl2-usbip-uas.md
Created July 30, 2022 22:55
dmesg output from the WSL2 kernel when trying to use uas via USB-IP
usb 2-1: USB controller vhci_hcd.0 does not support streams, which are required by the UAS driver.
usb 2-1: Please try an other USB controller if you wish to use UAS.
@ironiridis
ironiridis / securebutt.md
Created October 3, 2022 23:47
Gentoo EFI Secure Boot Steps from scratch

Cribbed mostly from this article which didn't work for me initially.

sudo emerge mokutil pesign keyutils
sudo mkdir -p /etc/pki/pegsign
sudo certutil -N -d /etc/pki/pesign
# ( enter a blank password  )
sudo efikeygen -d '/etc/pki/pesign' -S -k -c 'CN=Gentoo Key' -n 'Custom Secureboot'
mkdir -p ~/efi/certs
sudo certutil -d /etc/pki/pesign -n 'Custom Secureboot' -Lr > ~/efi/certs/sb_cert.cer
@ironiridis
ironiridis / readme.md
Created May 7, 2023 16:36
Thesaurus words without 'e'
@ironiridis
ironiridis / README.md
Last active December 24, 2023 05:42
notes about blocking a whole AS with IP ranges

Blocking a whole AS using iptables

Why

Sometimes you don't want any traffic from a certain organization... none at all, not even from their employees. An effective way to do just that is to determine every IP adress that belongs to a certain Autonomous System which is how IPs are generally allocated to organizations that have a significant1 presence on the internet.

What you need

Footnotes

  1. Signifigant in this situation means organizations large enough to want/need a huge block of IPs. They're usually assigned either to organizations that have been on the internet for a long time, or to organizations that deal with big internet infrastrucutre.