Skip to content

Instantly share code, notes, and snippets.

View klardotsh's full-sized avatar
🌧️

Josh Klar klardotsh

🌧️
View GitHub Profile
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)
'''
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')
@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)

# 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')
@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)
(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

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:

py files: GC Ran. Mem alloc: 145600 free: 32960
mpy files: GC Ran. Mem alloc: 144896 free: 33664
mpy -O3: GC Ran. Mem alloc: 143472 free: 35088
mpy -O2: GC Ran. Mem alloc: 144560 free: 34000
mpy -O1: GC Ran. Mem alloc: 144560 free: 34000
frozen kmk: GC Ran. Mem alloc: 117504 free: 61056
(gravity) kmk_firmware » topic-led-integration * » fd '\.py' -x sh -c 'mkdir -p mpy-out/{//} && ~/src/circuitpython/mpy-cross/mpy-cross {} -o mpy-out/{.}.mpy';
(gravity) kmk_firmware » topic-led-integration * » du -sh mpy-out && du -sh mpy-out/* && du -sh mpy-out/kmk/*
428K mpy-out
4.0K mpy-out/boot.mpy
256K mpy-out/kmk
36K mpy-out/tests
116K mpy-out/user_keymaps
12K mpy-out/util
116K mpy-out/kmk/boards
PID: 6867 (BitwigPluginHos)
UID: 1000 (j)
GID: 985 (users)
Signal: 6 (ABRT)
Timestamp: Tue 2019-07-16 22:55:52 PDT (17s ago)
Command Line: /opt/bitwig-studio/bin/BitwigPluginHost64 host Matt Tytel-Vital-2 96000 512 6544-2 16 not-dpi-aware 8 jack jack
Executable: /opt/bitwig-studio/bin/BitwigPluginHost64
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice