Skip to content

Instantly share code, notes, and snippets.

View klardotsh's full-sized avatar
🌧️

Josh Klar klardotsh

🌧️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am klardotsh on github.
  • I am klardotsh (https://keybase.io/klardotsh) on keybase.
  • I have a public key ASAIPJsMTkx4wgUDAPakt2Si3HacOqX7Lgef3jZxzf4pAwo

To claim this, I am signing this object:

(gravity) ~ » modinfo snd-virmidi
filename: /lib/modules/5.0.21-rt12-1-rt/kernel/sound/drivers/snd-virmidi.ko.xz
license: GPL
description: Dummy soundcard for virtual rawmidi devices
author: Takashi Iwai <tiwai@suse.de>
srcversion: FE7E0BA457D29F9D13BB23D
depends: snd,snd-seq-virmidi
retpoline: Y
intree: Y
name: snd_virmidi
@klardotsh
klardotsh / Bitwig Crash Traceback
Created June 21, 2019 11:04
Bitwig Studio JACK crash debug information
[2019-06-21 03:56:16 float-engine-communication error] Error launching or running the engine process: Process exited with an error: 134 (Exit value: 134)
[2019-06-21 03:56:16 float-document-master error] Error launching or running engine for project New 1: Communications with engine lost
[2019-06-21 03:56:16 float-gui-widgets info] Closing audio IO device ...
[2019-06-21 03:56:16 float-main-app error] Could not locate engine crash report file at path /home/j/.BitwigStudio/core.
[2019-06-21 03:56:16 ramona-server error] Connection broken with client:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
# Maintainer: Marcel Radzio <info@nordgedanken.de>
pkgbase=riot-desktop-git
pkgver=v0.17.9.r129.g8630d031
pkgrel=1
pkgname=riot-desktop-git
pkgdesc="A glossy Matrix collaboration client for the desktop."
arch=('any')
url="https://riot.im"
license=('Apache')
depends=('electron')
'''
Copy this to the CIRCUITPY MSC drive on a CircuitPython board,
then compress it:
gzip -k example_module.py
Then you can do something like the following:
>>> from import_gzip import import_gzip
>>> module = import_gzip('example_module.py.gz')
from secretproject.common.consts import DiodeOrientation, UnicodeModes
from secretproject.common.keycodes import KC
from secretproject.common.macros.simple import send_string, simple_key_sequence
from secretproject.common.macros.unicode import unicode_sequence
from secretproject.common.pins import Pin as P
from secretproject.entrypoints.handwire.feather_m4_express import main
from secretproject.firmware import Firmware
cols = (P.D11, P.D10, P.D9)
rows = (P.A2, P.A3, P.A4, P.A5)
import board
import digitalio
import time
import sys
def signal_error_with_led_flash(rate=0.5):
'''
Flash the red LED for 10 seconds, alternating every $rate
Could be useful as an uncaught exception handler later on,
but is for now unused
import board
import digitalio
import time
import sys
rled = digitalio.DigitalInOut(board.LED1)
rled.direction = digitalio.Direction.OUTPUT
bled = digitalio.DigitalInOut(board.LED2)
bled.direction = digitalio.Direction.OUTPUT
@klardotsh
klardotsh / kmk_firmware_cla_2018-10-25.md
Last active October 26, 2018 04:55
KMK Firmware CLA

Fiduciary License Agreement 2.0

based on the

Individual Contributor exclusive License Agreement

(including the Traditional Patent License OPTION)

<section class="text-center">
<h2 id="tmp-title">Fiduciary License Agreement 2.0</h2>
<span id="tmp-subtitle-based">based on the</span>
<h2 id="tmp-subtitle"><span id="tmp-contributor-type">Individual</span> Contributor <span id="tmp-contributor-exclusivity-1">exclusive</span> License Agreement</h2>
<h2 id="tmp-subtitle-patent">(including the <span id="tmp-patent-option">Traditional Patent License</span> OPTION)</h2>
</section>
<p>Thank you for your interest in contributing to <span id="tmp-beneficiary-name">Josh Klar</span>'s <span id="tmp-project-name">kmk_firmware</span> ("We" or "Us").</p>
<p>The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at <span id="tmp-submission-instructions">https://cla-assistant.io/</span>.</p>