Skip to content

Instantly share code, notes, and snippets.

View genbtc's full-sized avatar

genBTC genbtc

  • NJ, USA
View GitHub Profile
@genbtc
genbtc / cled.py
Created August 6, 2023 01:24
cled.py
#!/usr/bin/env python3
import aioconsole
import colorama
import configparser
import json
import discord
from discord.ext import commands
import atexit, os, sys, readline
histfile = os.path.join(os.path.expanduser("~"), ".discord_history")
@genbtc
genbtc / lsmod-mullvad.txt
Last active June 26, 2023 19:20
lsmod for mullvad.txt
#List of modules triggered to load specifically by mullvad daemon.
Module Size Used by
nft_reject_inet 16384 6
nf_reject_ipv4 16384 1 nft_reject_inet
nf_reject_ipv6 16384 1 nft_reject_inet
nft_reject 16384 1 nft_reject_inet
nft_masq 16384 1
nft_ct 20480 8
nft_chain_nat 16384 1
nf_tables 241664 725 nft_ct,nft_reject_inet,nft_masq,nft_chain_nat,nft_reject
@genbtc
genbtc / Atheros-ATH9k-Comparison.txt
Created February 14, 2023 00:36
Atheros-ATH9k-Comparison.txt
922 PCI -> 928 PCIe
9220
3rd gen XSpan
9223
Oct2009 http://153.150.70.18/AR9223.pdf
2x2 MIMO "Mac/BB/Radio" 802.11n 2.4ghz
9271 USB
Nov2011 http://www.datasheet.es/PDF/788267/AR9271-pdf.html
@genbtc
genbtc / spattering-of-assorted-wifinames.txt
Created February 13, 2023 06:20
spattering-of-assorted-wifinames.txt
New Solutions:
NEW AP5881
WiFi 6/6E + BT 5.2 802.11ax/ac/a/b/g/n@ SiP Module, 1T1R
NEW WNFQ-269AX(BT)
WiFi 6/6E + BT 5.2 802.11ax/ac/a/b/g/n @ M.2 2230 (E KEY), 2T2R
NEW WPEQ-268AXI(BT)
WiFi 6/6E + BT 5.2 802.11ax/ac/a/b/g/n @ Half Size MPCIe, 2T2R
NEW WNFQ-268AXI(BT)
WiFi 6/6E + BT 5.2 802.11ax/ac/a/b/g/n @ M.2 2230 (E KEY), 2T2R
@genbtc
genbtc / github-beautiful.py
Created January 13, 2023 03:52
github-beautiful.py
#!/usr/bin/env python3
#Copyright 2023 - genr8eofl @IRC/gentoo
# github-beautiful.py - fetch GitHub repo "Description" (for many links at once)
# Makes 1 HTTPS connection per line, retreives the HTML page and parses it for <Title>
import requests
from requests import ReadTimeout, ConnectTimeout, HTTPError, Timeout, ConnectionError
from bs4 import BeautifulSoup
import sys
urlprefix="https://github.com/"
@genbtc
genbtc / github-beautiful.sh
Created January 13, 2023 03:48
github-beautiful.sh
#!/bin/bash
# Copyright 2023 genr8eofl @IRC/gentoo
# Fetch Github Repo Descriptions. Pre-reqs: bash / jq / (curl || gh)
while read REPO; do
#REPO="torvalds/linux" #test
API="https://api.github.com/"
#DESC=$(curl -s "${API}/repos/${REPO}" | jq '.description') # rate limited
DESC=$(gh api "/repos/${REPO}" | jq '.description') # need GITHUB_TOKEN
GH="https://github.com/"
echo "${GH}${REPO} - ${DESC}"
@genbtc
genbtc / github-links-all.txt
Created January 13, 2023 00:10
github-links-all.txt
@genbtc
genbtc / chroot.bash
Created January 7, 2023 02:46
chroot.bash
#!/usr/bin/env bash
#
# Shamelessly "borrowed" from Arch to make Gentoo development in chroots easier;
# Thanks for doing all of the hard work! -@Kangie, 2022
# subsequently modified by @genr8eofl, 2023
#
#
# Options:
# -d | --debug
# -f | --no-bind-distfiles | NO_MOUNT_DISTFILES
@genbtc
genbtc / tmpkernel-delete-these-dirs.txt
Created November 6, 2022 17:58
/tmp/kernel-delete-these-dirs.txt
# Directories I don't want and have no use for (under /usr/src/linux tree)
#These dirs should be dealt with in the following way:
# foreach loop
# rename the Kconfig file in the dir to .bak
# mv $1Kconfig{,.bak}
# rewrite it as a blank file so it will dead-end safely.
# touch $1Kconfig
# Do NOT use this list before reading/checking for things you use first.
drivers/accessibility/
@genbtc
genbtc / tmpkernel-keep-these-dirs.txt
Created November 6, 2022 17:53
/tmp/kernel-keep-these-dirs.txt
#These are the only directories I need under /usr/src/linux tree.
#These files should be kept, everything else can get lost.
arch/Kconfig
arch/x86/events/Kconfig
arch/x86/Kconfig
arch/x86/Kconfig.assembler
arch/x86/Kconfig.cpu
arch/x86/Kconfig.debug
arch/x86/kvm/Kconfig
arch/x86/xen/Kconfig