Skip to content

Instantly share code, notes, and snippets.

@genbtc
genbtc / mullvad-relays-3-17-21-parsed-wireguard2+PING3+SORTED.txt
Created Mar 19, 2021
Mullvad-VPN-Providers-relays PING TEST 3/17/21
View mullvad-relays-3-17-21-parsed-wireguard2+PING3+SORTED.txt
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 / mullvad-relays-work-ping3.py
Created Mar 19, 2021
Mullvad-VPN Wireguard servers,Providers, cities, countries AND ping Test for 1 random = SORTED
View mullvad-relays-work-ping3.py
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 Mar 19, 2021
extract google youtube subscriptions.json
View google-subs.py
#!/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 / gist:dc830dd2b7ee476114f25c514a026199
Last active Jan 1, 2020
36C3 - Degrowth is coming - be ready to repair - english translation
View gist:dc830dd2b7ee476114f25c514a026199
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 / Degrowth is coming - be ready to repair
Last active Dec 30, 2019
"Degrowth is coming - be ready to repair" #36C3 (Digitization / Automation)
View Degrowth is coming - be ready to repair
https://www.youtube.com/watch?v=-hPXK7BCBnY - 36C3 - Degrowth is coming - be ready to repair - english translation
((((((ENGLISH TRANSCRIPTION / NATIVE TRANSLATION version 0.14))))))
.
[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? Or do we not even notice in our lives, which are always full, that we are really running out of raw materials? If we very soon run out of material to build technology that f
@genbtc
genbtc / redirectconsole.cpp
Last active Dec 28, 2019
Console buffer handle
View redirectconsole.cpp
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 / fizzBuzz.py
Created Sep 21, 2018
FizzBuzz test implementation done in Python (Fizz Buzz)
View fizzBuzz.py
def fizzBuzz():
for i in xrange(1,101):
if (i % 15 == 0):
print("FizzBuzz");
elif (i % 5 == 0):
print("Buzz");
elif (i % 3 == 0):
print("Fizz");
else:
print(i);
@genbtc
genbtc / fizzbuzz.cpp
Created Sep 21, 2018
FizzBuzz test implementation done in C++
View fizzbuzz.cpp
//September 21, 2018 - genBTC (GPL License)
#include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 101; i++) {
if (i % 15 == 0)
cout << "FizzBuzz" << endl;
else if (i % 5 == 0)
cout << "Buzz" << endl;
View CCACHE disable CmakeLists.txt mod
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
add_definitions(-DCCACHE_FOUND=OFF)
end()
View gist:1012b8a92cb6583cdc824eb315697d52
C:\vcpkg>bootstrap-vcpkg.bat
vcpkgDownloadFile : Exception calling "DownloadFile" with "2" argument(s): "Unable to
connect to the remote server"
At C:\vcpkg\scripts\fetchDependency.ps1:78 char:5
+ vcpkgDownloadFile $url $downloadPath
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [vcpkgDownloadFile], MethodInvocationEx
ception
+ FullyQualifiedErrorId : WebException,vcpkgDownloadFile