Skip to content

Instantly share code, notes, and snippets.

@phil303
phil303 / sk6812-matrix.py
Last active February 12, 2021 12:20
Create a matrix of LEDs
#!usr/bin/env python2.7
import pcbnew
"""
LED matrix layout creator.
NOTE: this currently assumes an even matrix, e.g. 16x16 as opposed to 15x15.
Will likely break in the latter case.
@pdp7
pdp7 / BeagleBone: sharing Internet connection from Linux laptop with USB.md
Last active March 13, 2024 20:40
BeagleBone: sharing Internet connection from Linux laptop with USB

WARNING: interfaces can enumarate differently:

ufw status
#iptables -F
#iptables --table nat --append POSTROUTING --out-interface wlxe0b94db737c9 -j MASQUERADE
#iptables --table nat --append POSTROUTING --out-interface enp0s20u1u1 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface enp0s20u1u2 -j MASQUERADE
#iptables --append FORWARD --in-interface enx1cba8c9bbeb5 -j ACCEPT
#iptables --append FORWARD --in-interface enx9884e391a556 -j ACCEPT
iptables --append FORWARD --in-interface enx9884e391a559 -j ACCEPT
@jeremy-prater
jeremy-prater / studio7_linux_conversion.sh
Created June 23, 2016 22:26 — forked from rafaelcorsi/AtmelStudio7-make-to-linux.sh
Convert Atmel Studio 7 generated makefile (windows paths) to linux, so you can compile your project from linux
#!/bin/sh
# Rafael Corsi
# corsiferrao@gmail.com
#
# Script to convert makefile generate from atmel studio 7 (windows)
# to linux path, assuming that you have gcc on PATH
#
# based on https://gist.github.com/theterg/6082389
# GPL