Skip to content

Instantly share code, notes, and snippets.

@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
@genbtc
genbtc / ffmpeg-vcpkg-instructions
Created Dec 25, 2017
How to install ffmpeg through VCPKG
View ffmpeg-vcpkg-instructions
//////////README: further @ https://github.com/Microsoft/vcpkg//////////////
C:
cd \
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install ffmpeg:x64-windows
@genbtc
genbtc / oneliner.bash
Created Dec 10, 2017
bash script for prefix append
View oneliner.bash
//Would like to have these first two lines come in as args $1 $2
pre=mingw-w64-x86_64
set -- toolchain freeglut freetype libpng libjpeg-turbo
for p in "$@"; do
a+=("$pre-$p");
done
set -- "${a[@]}"
echo "$@"
@genbtc
genbtc / discord.js
Created May 10, 2017
Franz modified discord.js to load BetterDiscord mod script properly (not intended to be run inside a sandboxed WebGuest window in electron
View discord.js
function getMessages() {
for (var e = document['getElementsByClassName']('guilds-wrapper')[0]['getElementsByClassName']('badge'), t = 0, r = 0; r < e['length']; r++) {
var n = parseInt(e[r]['innerText']['replace'](/[^0-9.]/g, ''));
n > 0 && t++
};
ipcRenderer['sendToHost']('message-discord', {
count: t
})
}
//
You can’t perform that action at this time.