Skip to content

Instantly share code, notes, and snippets.

View englishm's full-sized avatar
🎯
Focusing

Mike English englishm

🎯
Focusing
View GitHub Profile
@blatayue
blatayue / README.md
Last active March 3, 2025 20:15
Superbird MIDI Gadget

Superbird MIDI Gadget

Modifications I made to the scripts in /scripts/in the superbird-kiosk-app (v1.8.0) to create a MIDI USB gadget, the RNDIS gadget is also still enabled

Replace corresponding scripts to have your Car Thing send MIDI NoteOn/NoteOff events on hardware button presses

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuetenk0pp
tuetenk0pp / media-workflow-jellyfin.md
Last active March 30, 2025 17:51
Media Workflow for Jellyfin
@Jomy10
Jomy10 / rust_in_swift.md
Last active April 4, 2025 23:17
Calling Rust library from Swift code (creating executable)

Calling a Rust library from Swift

This gist shows a quick overview of calling Rust in a Swift project, with Swift Package Manager configured.

Let's go ahead and create a folder containing all our sources:

mkdir swift-rs && cd $_
@emmakat
emmakat / SSH2FA.markdown
Last active March 29, 2025 18:12 — forked from lizthegrey/attributes.rb
Hardening SSH access to Github with TouchID

This is a fork of @lizthegrey excellent gist on securing SSH with 2FA but modified to focus on the first steps one can take toward securing ssh access to Github (or other version control systems) with Apple touch ID button. Designed to prevent key theft from the systems we connect to with 2FA, while maintaining ease of use. From the project "If your Mac has a Secure Enclave, it also has support for strong access controls like Touch ID, or authentication with Apple Watch. You can configure your key so that they require Touch ID (or Watch) authentication before they're accessed. If you store your keys in the Secure Enclave, it's impossible to export them, by design."

Mac client setup

Use TouchID to authenticate logins to GitHub! Since sekey is no longer maintained, let's use secretive instead.

Install the binary:

# typed: true
# frozen_string_literal: true
require('dev')
require('fileutils')
module Dev
module Helpers
class APFSVolume
extend(T::Sig)
@CHTJonas
CHTJonas / UniFi Tunnelbroker.md
Last active April 26, 2022 00:49
Tunnelbroker config for UniFi Security Gateway

UniFi Tunnelbroker Configuration

This GitHub Gist details the manual configuration needed on a UniFi controller to enable IPv6 tunneling with Hurricane Electric's Tunnelbroker service.

Setup

This is what works for me personally. Stuff you'll need to do to adapt this to your ends:

  • Replace "local-ip" with your USG's public IPv4 address.
  • Replace "remote-ip" with the address of your Tunnelbroker tunnel server.
  • Replace "address" with the IPv6 address that your are allocated.
@anthonydiiorio
anthonydiiorio / sats.sh
Last active November 25, 2019 20:02
Satellite Grid Extractor
#!/bin/bash
ADIF=VE2HEW.adi
SATS=sats.adi
ADIFCONF=sats-confirmed.adi
ADIFUNCONF=sats-unconfirmed.adi
WORKED=ve2hew-unconfirmed.log
CONFIRMED=ve2hew-confirmed.log
head -n 7 $ADIF | tee $SATS $ADIFCONF $ADIFUNCONF >/dev/null
grep '<PROP_MODE:3>SAT' $ADIF > $SATS
@psychemedia
psychemedia / Dockerfile
Last active October 1, 2022 22:16
Example of setting up a Docker image containing a suite of applications on a related theme for use over the command line: audiogrep, videogreop and youtube_dl.
#Based on https://github.com/kevinhughes27/audiogrep-docker
# DOCKER-VERSION 1.4.0
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y software-properties-common
# FFMPEG
#The repository needs updating from the original
#Note that ffmpeg not standardly available for Ubuntu 14.04: http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/
@darach
darach / fony.sh
Last active February 15, 2021 20:36
Example showing how to compile pony executables via LLVM and clang from LLVM IR produced by 'ponyc -rir ...'
#!/bin/sh
LLVM_HOME=/usr/local/Cellar/llvm/3.6.2/bin
PONY_HOME=/path/to/pony/repo
PONY_LIBS=${PONY_HOME}/build/debug
TARGET_ARCH=x86-64
OUT_LL="$1.ll"
OUT_BC="$1.bc"
OUT_S="$1.s"