Skip to content

Instantly share code, notes, and snippets.

View MitchRatquest's full-sized avatar

Mitchell Dokken MitchRatquest

View GitHub Profile
@MitchRatquest
MitchRatquest / stm32_ghx_test.ino
Last active January 22, 2019 16:16
osc ili9341 control stm32
/***************************************************
This is our GFX example for the Adafruit ILI9341 Breakout and Shield
----> http://www.adafruit.com/products/1651
Check out the links above for our tutorials and wiring diagrams
These displays use SPI to communicate, 4 or 5 pins are required to
interface (RST is optional)
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
@MitchRatquest
MitchRatquest / win10.ipxe
Created December 27, 2018 20:19
ipxe windows 10 boot config
#!ipxe
set serverip 172.18.0.1
set tftpboot tftp://${serverip}
:menu
menu iPXE boot menu
item --key w win10 Le Windows 10 Boot
choose os
goto ${os}
@MitchRatquest
MitchRatquest / organelle-clone-july5.ino
Created July 6, 2018 00:43
organelle clone controller stm32 blue pill
#include <OSCBundle.h>
#include <SLIPEncodedSerial.h>
#include <OSCMessage.h>
SLIPEncodedSerial SLIPSerial(Serial);
// encoder stuff below vvvvv
#define MAXENCODERS 1
volatile uint32_t encstate[MAXENCODERS];
volatile uint32_t encflag[MAXENCODERS];
@MitchRatquest
MitchRatquest / elinks-scrape.sh
Last active June 8, 2018 15:11
using elinks to scrape google for ecommerce
@MitchRatquest
MitchRatquest / okpg-inst.sh
Last active April 10, 2018 15:44
install script for opkg
sudo apt-get install -y gcc \
pkg-config \
libarchive13 \
libarchive-dev \
libcurl3 \
libcurl3-dev \
libgpgme11 \
libgpgme11-dev \
autogen \
autoconf \
@MitchRatquest
MitchRatquest / display-board.py
Last active January 23, 2018 03:06
ncurses-hardware-helper
#!/usr/bin/python
import subprocess, curses, curses.panel, os
from time import sleep
from menus import * #get all those stats
#################################################
#AVAILABLE BOARDS: opipc, opiz, opione, neo
board = neo
############################################
COLUMNS=79 #default tty size - 1
LINES=24
@MitchRatquest
MitchRatquest / scroll.py
Last active December 22, 2017 21:21
string scrolling in python with curses
#!/usr/bin/python
import curses
from time import sleep
curses.initscr()
string = "this is a really fun scrolling string "
def scroll(stdscr):
try:
curses.curs_set(0)
@MitchRatquest
MitchRatquest / osc-curses.pd
Last active December 13, 2017 02:36
curses python puredata osc communication for console drawing
#N canvas 1696 58 1313 927 10;
#X obj 113 114 mrpeach/packOSC;
#X obj 106 138 mrpeach/udpsend;
#X obj 113 93 r sending;
#X obj 106 160 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 66 768 s sending;
#X msg 66 706 /addpanel reverb;
#X obj 292 121 pack f f;
#X floatatom 701 90 5 0 0 0 - - -, f 5;
@MitchRatquest
MitchRatquest / panel
Created November 16, 2017 15:31
python-curses-example
#!/usr/bin/python
from time import sleep
import curses, curses.panel
COLUMNS=40
ROWS=30
side = 60 # <
top = 126 # ~
bottom = 95 # _

Keybase proof

I hereby claim:

  • I am mitchratquest on github.
  • I am mitchdokken (https://keybase.io/mitchdokken) on keybase.
  • I have a public key ASDCyWDInbpHfyuunca89AG9uj6zhphVs2oNBeAvXhBxOgo

To claim this, I am signing this object: