Skip to content

Instantly share code, notes, and snippets.

View geezyx's full-sized avatar

Mike Gee geezyx

View GitHub Profile
@geezyx
geezyx / gist:148e1f4dc2db1a4a6ab84afe421bd84a
Last active February 7, 2023 22:18
Install medusalix/xone on OSMC
# Steps to install https://github.com/medusalix/xone on a Raspberry PI 4 running OSMC
# 1. Get toolchain
sudo apt-get update
sudo apt-get install -y aarch64-toolchain-osmc rbp464-headers-$(uname -r) dkms
# 2. Set up chroot
chROOT="/opt/osmc-tc/aarch64-toolchain-osmc"
sudo mkdir -p $chROOT/home
sudo mount --bind /home $chROOT/home
@geezyx
geezyx / netrw.txt
Created January 2, 2020 19:23 — forked from danidiaz/netrw.txt
Vim's netrw commands.
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
@geezyx
geezyx / tagcolumns.rb
Created January 11, 2019 15:58
Script to take AWS right sizing output and parse out tags into CSV columns, for easier interpretation
require "csv"
inputarray = ARGV
if inputarray.length != 2
puts "usage: ruby tagcolumns.rb <input filename> <output filename>"
exit
end
a = CSV.read(ARGV[0])
all_tags = Hash.new
@geezyx
geezyx / scarf.pde
Created October 14, 2017 17:59
Processing scarf code
int[] rules = { 0, 1, 0, 1, 1, 0, 1, 0 };
int gen = 1;
color on = color(255);
color off = color(0);
void setup() {
size(98, 1090);
background(0);
set(11, 0, on);
set(43, 0, on);
@geezyx
geezyx / keybase.md
Created August 23, 2017 18:00
keybase.md

Keybase proof

I hereby claim:

  • I am geezyx on github.
  • I am geezyx (https://keybase.io/geezyx) on keybase.
  • I have a public key ASAMv_e19gVd3eLB67l-a-oq_7Ms37m_WWt1O6wTpH0y8Qo

To claim this, I am signing this object:

require 'snmp'
require 'snmp4em'
OID_SYSTEM = "1.3.6.1.2.1.1"
OID_SYSNAME = "1.3.6.1.2.1.1.5.0"
OID_SYSLOCATION = "1.3.6.1.2.1.1.6.0"
EM.run {
snmp = SNMP4EM::Manager.new(:host => '10.6.57.29')