Skip to content

Instantly share code, notes, and snippets.

View AndrewBelt's full-sized avatar

Andrew Belt AndrewBelt

  • VCV
  • Tennessee, USA
View GitHub Profile
@AndrewBelt
AndrewBelt / panel2source.py
Created November 1, 2017 08:30
for exporting SVG panels to VCV plugin source files
# panel2source.py
# for exporting SVG panels to VCV plugin source files
# Version: 1
# Support contact email: /dev/null
# License: CC0
import sys
import os
import re
# Converts an 8-bit RGB PNG to a 16-bit WAV wavetable bank.
# The brightness of the pixel at (x, y) converts to the value of sample x in bank y.
import sys
import os
import numpy as np
import scipy.io.wavfile
import imageio
path = sys.argv[1]
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cstdint>
#include <algorithm>
#include <time.h>
double getTime() {
struct timespec ts;
@AndrewBelt
AndrewBelt / discord.cpp
Created August 20, 2021 22:22
Discord activity updater
#if defined ARCH_LIN || defined ARCH_MAC
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#endif
#if defined ARCH_WIN
#include <fcntl.h>
#endif

Configuring Windows 10 with better privacy, performance, control, and fewer annoyances

As a reasonable computer user, I expect my operating system to not:

  1. send telemetry without my consent. Windows sends Microsoft a massive amount of personal data. [1] [2] [3] [4]
  2. update without my consent. Auto-updating is equivalent to a third-party being able to execute code remotely on my machine where I store private data. Even if an update is not malicious, updates change functionality, and I only want software to change if I know what will change and decide that I want it.
  3. tell me what I can or can't run on my computer. Apple does this w