Skip to content

Instantly share code, notes, and snippets.

View MitchRatquest's full-sized avatar

Mitchell Dokken MitchRatquest

View GitHub Profile
@MitchRatquest
MitchRatquest / get_luakit.sh
Created February 3, 2017 19:19
install luakit armhf
#!/bin/bash
wget http://launchpadlibrarian.net/218139665/luakit_2012.09.13-r1-8_armhf.deb
sudo dpkg -i luakit_2012.09.13-r1-8_armhf.deb
sudo apt-get -f install -y #you'll need roughly 32mb free space
@MitchRatquest
MitchRatquest / sun8i-h3-nanopi-neo.dts
Last active May 25, 2017 15:15
eth0+usb enabled nanopi neo buildroot dtb
/dts-v1/;
/ {
#address-cells = <0x1>;
#size-cells = <0x1>;
interrupt-parent = <0x1>;
model = "Xunlong Orange Pi One";
compatible = "xunlong,orangepi-one", "allwinner,sun8i-h3";
chosen {
@MitchRatquest
MitchRatquest / nanopi-neo 4.10.1
Last active May 25, 2017 23:53
*WIP* buildroot nanopi neo working Linux nanopi-neo 4.10.1 #1 SMP Tue May 23 12:44:00 CDT 2017 armv7l GNU/Linux
#!/bin/bash
VERSION=2017.05-rc2
wget https://git.busybox.net/buildroot/snapshot/buildroot-"$VERSION".tar.gz
tar zvxf buildroot-"$VERSION".tar.gz
mkdir patches
cd patches
@MitchRatquest
MitchRatquest / burnimg.sh
Last active September 6, 2017 10:43
Alpine Linux Install Script for Allwinner H3 single board computers
#!/bin/bash
#this script grabs dependencies for the armhf alpine image for H3 allwinner chips
#you will need to modify your script.bin with the fex files and sunxi-tools
#use fex2bin to modify and create and place it in the H3-Distro directory
#TODO: check dependencies for dosfstools sunxi-tools
echo "run this script with your sd card as the argument"
echo "if unsure, check with: ls /dev/sd*"
echo "use only the last part, like: ./burnimg.sh sdh"

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:

@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 / 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 / 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 / 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 / elinks-scrape.sh
Last active June 8, 2018 15:11
using elinks to scrape google for ecommerce