Skip to content

Instantly share code, notes, and snippets.

View genbtc's full-sized avatar

genBTC genbtc

  • NJ, USA
View GitHub Profile
@genbtc
genbtc / gist:dc830dd2b7ee476114f25c514a026199
Last active January 1, 2020 01:15
36C3 - Degrowth is coming - be ready to repair - english translation
36C3 - Degrowth is coming - be ready to repair - english translation
https://www.youtube.com/watch?v=-hPXK7BCBnY
(((((GOOGLE TRANSLATE (video transcript / subs / subtitles / CC's / closed captions))))))
((version 0.11 / December 31, 2019))
(punctuation and indentation added for enhanced readability, and some auto-translate detection failures corrected)
.
[Video Description / Abstract (Google translate)]
-------------------------------
The discourse about "digitization" can do one thing above all: promise. Robots free us from tedious work, increases in efficiency take care of the protection of the environment and resources all by ourselves, and algorithms make everyday life easier. The lecture will show that these promises mainly play into the pocket of tech corporations and that we are heading towards ecological and social disasters thanks to the data-gathering (Indian) business models of digital capitalism.
Can the economy continue to grow thanks to more efficient technologies without consuming resources? O
@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-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 / 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 / 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.