Skip to content

Instantly share code, notes, and snippets.

View twobombs's full-sized avatar
🌊
time draws the fractal of causality

Aryan Blaauw twobombs

🌊
time draws the fractal of causality
View GitHub Profile
@WrathfulSpatula
WrathfulSpatula / quantum_supremacy_2019-10-30.txt
Created October 30, 2019 22:33
Provisional Qrack benchmarks, for review and discussion
TEST_CASE("test_quantum_supremacy", "[supreme]")
{
// This is an attempt to simulate the circuit argued to establish quantum supremacy.
const int depth = 20;
benchmarkLoop([](QInterfacePtr qReg, int n) {
// The test runs 2 bit gates according to a tiling sequence.
// The 1 bit indicates +/- column offset.
@ibuildthecloud
ibuildthecloud / README.md
Last active May 14, 2024 21:29
k3s on WSL2

Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio

Install WSL2

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2

Compile Kernel

Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)

@kbarber
kbarber / gist:6456420
Created September 5, 2013 21:26
Renewing a Puppet CA cert
Renew Puppet CA cert.
Not the perfect idea, but should alleviate the need to resign every cert.
What you need from existing puppet ssl directory:
ca/ca_crt.pem
ca/ca_key.pem
Create an openssl.cnf:
[ca]