Skip to content

Instantly share code, notes, and snippets.

View eiginn's full-sized avatar

Ryan Carter eiginn

View GitHub Profile
@clydebarrow
clydebarrow / .gitignore
Last active April 7, 2024 20:37
ESPHome LVGL samples
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
/.esphome/
/secrets.yaml
/wifi.yaml
@terinjokes
terinjokes / 00-README.org
Last active January 28, 2022 21:16
Retro Tea Breaks Vol. 1 PDF Patch

Retro Tea Break: Vol. 1 QPDF Diff

This is a diff to the Retro Tea Break: Vol. 1 PDF that fixes several problems:

  • Corrects the PDF page number offset, so they match the physical book’s page numbers.
  • Removes the forced page fitting from the link annotations, such as those on the contents listing page.
  • Adds a document outline to the PDF, so your PDF viewer can provide direct links to chapters.

Usage

@andrebrait
andrebrait / keychron_linux.md
Last active May 23, 2024 23:49
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

package org.ygl.openrndr.demos
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.color.mix
import org.openrndr.color.rgb
import org.openrndr.draw.LineCap
import org.openrndr.draw.LineJoin
import org.openrndr.extra.compositor.compose
import org.openrndr.extra.compositor.draw
@chrisanthropic
chrisanthropic / nixos-raspi4.md
Last active March 12, 2024 13:39
NixOS + Raspi4

Download the image builder

  • git clone git@github.com:Robertof/nixos-docker-sd-image-builder.git
  • cd nixos-docker-sd-image-builder

Configure for Raspi4

  • modify /config/rpi4/default.nix to increase size of boot partition
    • this step is optional but I ran out of space in /boot pretty quickly with the default setting since I'm still learning and rebuilding a lot. Let's leave some room for trial & error.
    • sdImage.firmwareSize = 1024;
  • modify /config/sd-image.nix
  • ./rpi3 becomes ./rpi4
@rlaneyjr
rlaneyjr / netbox_import.py
Last active July 23, 2020 17:50
Import the devicetype-library into NetBox
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: noai:et:tw=80:ts=4:ss=4:sts=4:sw=4:ft=python
'''
Title: netbox_import.py
Description: Insert records from devicetype-library into NetBox
Author: Ricky Laney
Version: 0.1.5
==============================================================================
@mzero
mzero / snd-digitakt.md
Created October 29, 2019 17:08
digitakt usb audio driver on RaspberryPi

building the linux digitakt usb driver

needed to install

sudo apt install flex bison libssl-dev libncurses5-dev bc

clone kernel sources

cd
mkdir kernel

cd kernel/

@perfecto25
perfecto25 / sudo.py
Last active August 31, 2023 05:45
saltstack sudo module
# Custom Execution Module - SUDO ACCESS
# tested for Centos 7
import salt
import time
import os
import logging
import re
from datetime import datetime, timedelta
import subprocess
@peteristhegreat
peteristhegreat / git diff sqlite3 .gitattributes
Last active March 25, 2024 12:38
Sqlite git diff - Get git to use an sql dump of sqlite3 for showing differences ( .gitconfig config attributes sqlite3 )
*.db diff=sqlite3