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 / vnc.sh
Last active July 15, 2021 23:04
no nonsense noVNC
#!/bin/bash
#added kill function
#run as:
#./SCRIPTNAME.sh k
#to kill these spawned processes
#
#if you want to to be able to position your windows interactively:
#sudo apt-get -y install blackbox
#add this to the end of runvnc()
#blackbox -display :1 >/dev/null &>/devnull &
@MitchRatquest
MitchRatquest / quickAP.sh
Last active May 13, 2019 11:09
install dhcp server and wifi ap on orangepi board
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
@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"
@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 / 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 {

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 / 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 # _
@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)