Skip to content

Instantly share code, notes, and snippets.

import time
import board
import neopixel
import math
import rotaryio
import board
import digitalio
import adafruit_rgbled
import busio
import adafruit_midi
import time
import board
import neopixel
import math
import rotaryio
import board
import digitalio
import adafruit_rgbled
import busio
import adafruit_midi
@albisserAdrian
albisserAdrian / boxstarter-script.ps1
Last active June 21, 2020 10:10
My Boxstarter Script
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
Update-ExecutionPolicy Unrestricted
#--- TEMPORARY ---
Disable-UAC
@rodlie
rodlie / airwave64.sh
Last active September 21, 2021 16:12
Build and install Airwave64 on Ubuntu Bionic (https://youtu.be/p93Fj3I3t9I)
#!/bin/sh
# Build and install Airwave64
# https://github.com/rodlie - <ole.andre.rodlie@gmail.com>
#
CWD=`pwd`
AIRWAVE_GIT="https://github.com/phantom-code/airwave"
AIRWAVE_COMMIT="8cd3507a46c2f7809a2ef8481cbded7dcbbae8ff"
VST_V="369_01_03_2018_build_132"
@harald-aigner
harald-aigner / spDYN_update.sh
Created September 2, 2017 17:52
Script for updating spDYN dynamic DNS entries (https://spdyn.de)
#!/bin/sh
#
# Script for updating spDYN dynamic DNS entries (https://spdyn.de)
#
# Usage:
# - Save this script as $HOME/bin/spDYN_update.sh
# - Make it executable: chmod u+x $HOME/bin/spDYN_update.sh
# - Create a cron entry (crontab -e) and supply <HOST_NAME> and <UPDATE_TOKEN>
# according to your spDYN settings. Example for running every 10 minutes:
# */10 * * * * $HOME/bin/spDYN_update.sh <HOST_NAME> <UPDATE_TOKEN> > /dev/null
@wolfiestyle
wolfiestyle / awoo_tool.lua
Created August 20, 2016 22:23
the Awoo Tool™
#!/usr/bin/env lua
-- Awoo Tool by @wolfiestyle
-- license: MIT/X11
-- demo: https://twitter.com/wolfiestyle/status/767124329461084161
local lgi = require "lgi"
local Gtk = lgi.Gtk
local GLib = lgi.GLib
local window = Gtk.Window{
title = "awoo tool v0.1-alpha",
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active June 26, 2024 08:25
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@kparms
kparms / gist.sh
Created October 22, 2015 15:17
Install Virtualbox Guest Additions on Crunchbang
#Get the repo up to date
sudo apt-get update
sudo apt-get upgrade
#Mount the disk in Virtual Box
#Right click on the drive and click, "Open with Root Terminal"
#Install Prereqs
apt-get install build-essential module-assistant