Skip to content

Instantly share code, notes, and snippets.

View copperlight's full-sized avatar

Matthew Johnson copperlight

View GitHub Profile
@copperlight
copperlight / alsa-config-raspbian.md
Last active August 19, 2019 03:07
Raspbian Stretch ALSA Config for PyAudio
import bz2
import fnmatch
import gzip
import os
import re
from typing import Callable, Generator, List, Optional, Pattern, Tuple
"""
Generators for building log processing pipelines.
@copperlight
copperlight / SSLPoke.java
Last active March 2, 2021 21:08
SSLPoke
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*
* KB Entry: https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-error-779355358.html
*
@copperlight
copperlight / zig-build-ubuntu.sh
Last active November 15, 2021 19:02
Building Zig on Ubuntu 20.04 LTS
#!/usr/bin/env bash
# https://github.com/ziglang/zig/wiki/Building-Zig-From-Source
set -efx
VERSION="0.7.1"
# if you have a mixed set of clang and llvm versions, then you
# will need to uninstall the previous version for this to work