Skip to content

Instantly share code, notes, and snippets.

@joshgiesbrecht
joshgiesbrecht / HOWTO-CHIP.md
Last active March 29, 2023 12:52
How to get (re)started with a (Pocket)C.H.I.P.
@luzhuomi
luzhuomi / pocketchip_debian10.md
Last active April 16, 2024 13:05
A tutorial to upgrade NXT pocket C.H.I.P to Debian Buster

Pocket Chip Debian 10 Upgrade Guide

The purpose of this tutorial is to walk through the required steps to upgrade NXT chip (or pocketchip) from debian jessie to debian buster.

If you would like to start your Chip from scratch, follow the steps in the Preparation section.

Preparation (Optional)

A linux host machine, recommended Ubuntu 18.04. However I managed to do it with 20.10 with some tweak.

@cb109
cb109 / wow_chroma.py
Created January 21, 2018 15:18
Razer Chroma WoW Health and Mana
"""
Displays WoW health and mana status on a Razer Chroma keyboard.
Installation (Windows):
$ virtualenv venv
$ pip install requests
$ easy_install pillow
Usage:
- Run WoW client fullscreen on main monitor
@bibby
bibby / rpc.gd
Created February 22, 2014 07:50
Godot HTTPClient usage
## rpc.gd
# An experiment in using HTTPClient
# for blocking RPCs
# @author bibby<bibby@bbby.org>
#
# get( url )
# post( url, body )
# put( url, body )
# delete( url )
@josephwecker
josephwecker / new_bashrc.sh
Created August 11, 2012 04:36
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful. Now a repo: https://github.com/josephwecker/bashrc_dispatch
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# -- DEPRICATED --
# This gist is slow and is missing .bashrc_once
# Use the one in the repo instead! https://github.com/josephwecker/bashrc_dispatch
# (Thanks gioele)
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
@cnelsonsic
cnelsonsic / jimmy_johns.py
Created April 20, 2012 01:04
Get a random Jimmy Johns sandwich for lunch. I can never pick.
#!/bin/env python2.7
'''This module loads the Jimmy John's menu from their website and provides
you with a random selection from their main (numbered) sandwich menu.
Recommended usage is to just run it as a script.
'''
from BeautifulSoup import BeautifulSoup
import requests
import random
import re
@rsvp
rsvp / noise.sh
Last active April 18, 2024 14:18
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@kennethreitz
kennethreitz / phantom-jasmine-xunit.js
Created June 17, 2011 23:33 — forked from tmpvar/phantom-jasmine-xunit.js
xunit output from jasmine tests
if (phantom.state.length === 0) {
if (phantom.args.length !== 1) {
console.log('Usage: run-jasmine.js URL');
phantom.exit();
} else {
phantom.state = 'run-jasmine';
phantom.open(phantom.args[0]);
}
} else {
window.setInterval(function () {