Skip to content

Instantly share code, notes, and snippets.

View genbtc's full-sized avatar

genBTC genbtc

  • NJ, USA
View GitHub Profile
@genbtc
genbtc / mullvad-relays-work-ping3.py
Created March 19, 2021 02:01
Mullvad-VPN Wireguard servers,Providers, cities, countries AND ping Test for 1 random = SORTED
import json
import os
import sys
import operator
from icmplib import ping, multiping
import random
relayFile = open('mullvad-relays-3-17-21.json','r')
allrelays=json.load(relayFile)
@genbtc
genbtc / google-subs.py
Last active March 19, 2021 02:03
extract google youtube subscriptions.json
#!/usr/bin/env python3
SUBSFILE = 'GoogleTakeout/Takeout/YouTube and YouTube Music/subscriptions/subscriptions.json'
import json
with open(SUBSFILE, 'r') as subs:
f = json.load(subs)
for line in f:
print(line["snippet"]["title"])
print("https://www.youtube.com/channel/" + line["snippet"]["resourceId"]["channelId"])
@genbtc
genbtc / mullvad-relays-3-17-21-parsed-wireguard2+PING3+SORTED.txt
Created March 19, 2021 02:04
Mullvad-VPN-Providers-relays PING TEST 3/17/21
location, server, ip address, min_rtt, **avg**, max_rtt, provider, owned?
--------------------------------------------------------------------------------------------------------------------
New York, NY @ USA us110-wireguard 89.45.224.15 11.163, 11.237, 11.312 M247 .notOwned.
Montreal @ Canada ca11-wireguard 89.36.78.162 19.385, 19.756, 20.127 M247 .notOwned.
Raleigh, NC @ USA us183-wireguard 198.54.130.82 20.350, 21.309, 22.269 Tzulo .notOwned.
Atlanta, GA @ USA us176-wireguard 66.115.180.240 27.810, 27.943, 28.075 100TB .notOwned.
Chicago, IL @ USA us18-wireguard 68.235.43.90 28.349, 28.986, 29.624 Tzulo .notOwned.
Toronto @ Canada ca27-wireguard 198.54.132.162 34.739, 34.755, 34.771 Tzulo .notOwned.
Miami, FL @ USA us165-wireguard 89.38.227.210 39.449, 40.133, 40.817 M247 .notO
@genbtc
genbtc / redirectconsole.cpp
Last active August 15, 2021 09:39
Console buffer handle
void RedirectIOToConsole() {
//Create a console for this application
AllocConsole();
// Get STDOUT handle
HANDLE ConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);
int SystemOutput = _open_osfhandle(intptr_t(ConsoleOutput), _O_TEXT);
FILE *COutputHandle = _fdopen(SystemOutput, "w");
@genbtc
genbtc / examplewgetpaste.conf
Created January 14, 2022 05:58
examplewgetpaste.conf
#Edit your nick
DEFAULT_NICK="genr8"
#set the service to github gists
DEFAULT_SERVICE="gists"
#edit your token into here
GITHUB_TOKEN="***********************************"
#Leave this alone
HEADER_gists="Authorization: Basic `echo -n ${GITHUB_TOKEN}:x-oauth-basic | base64`"
@genbtc
genbtc / usrsrcfiles-5.10-customgit-patch2-allmycustomizations.patch
Created August 26, 2022 07:19
/usr/src/files-5.10-custom/git-patch2-allmycustomizations.patch
diff --git a/Makefile.rej b/Makefile.rej
deleted file mode 100644
index c436d8b87..000000000
--- a/Makefile.rej
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile
-+++ Makefile
-@@ -2,7 +2,7 @@
- VERSION = 5
@genbtc
genbtc / shstk.c
Created August 29, 2022 13:50
shstk.c
//shstk test program (genr8)
//clang -fsanitize=shadow-call-stack -o shstk shstk.c
/*
genr8eofl@genr8too ~ $ clang-14 -o shstk shstk.c && ./shstk
The compiler does NOT support shadow_call_stack!
genr8eofl@genr8too ~ $ clang-14 -fsanitize=shadow-call-stack -o shstk shstk.c && ./shstk
The compiler DOES support shadow_call_stack!
*/
@genbtc
genbtc / DocumentsGentoo-installation-instructions.txt
Created August 29, 2022 13:51
Documents/Gentoo-installation-instructions.txt
Download a Minimal Install cd (generic)
https://www.gentoo.org/downloads/
or
https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20220217T125149Z/install-amd64-minimal-20220217T125149Z.iso
Boot your computer/VM with the minimal ISO
Create the disk partitions
# gdisk /dev/sda
@genbtc
genbtc / my-nvmequirk.patch
Created August 29, 2022 13:51
my-nvmequirk.patch
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index ce129655e..44892732d 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2941,7 +2941,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (result)
goto release_mempool;
- dev_info(dev->ctrl.device, "pci function %s\n", dev_name(&pdev->dev));
+ dev_info(dev->ctrl.device, "pci function address: %s\n", dev_name(&pdev->dev));
@genbtc
genbtc / doas-persist.txt
Last active August 29, 2022 15:48
doas-persist.txt
// SPDX-License-Identifier: CC-BY-SA 4.0
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
/* an investigation into doas persist, by genBTC @C 2022 Aug */
Doas "persist":
================
"Note: Due to OpenBSD-specific kernel API required by doas to set and clear timeouts, the persist feature is disabled by default in the OpenDoas port."
^-- Hmm, shouldnt we be able to add this support into the linux kernel if we take their code and wrap it in a linux module that logs the timestamp or whatever?
we investigate.