Skip to content

Instantly share code, notes, and snippets.

Avatar

Keaton Burleson 128keaton

View GitHub Profile
View macOS Utilities Crash - 2.65b2
2019/04/12 14:08:06:389 macOS Utilities-v2.65-b2
2019/04/12 14:08:06:389
2019/04/12 14:08:06:389
---------------------------LOGGER INITIALIZED---------------------------
2019/04/12 14:08:06:389
2019/04/12 14:08:06:389 Library folder does not exist at '/Users/admin/Library/Application Support/ER2/'
2019/04/12 14:08:06:389 Creating folder at path '/Users/admin/Library/Application Support/ER2/'
2019/04/12 14:08:06:390 Library folder exists at '/Users/admin/Library/Application Support/ER2/'
2019/04/12 14:08:06:390 Property list does not exist at '/Users/admin/Library/Application Support/ER2/com.er2.applications.plist'
2019/04/12 14:08:06:390 Copying property list from bundle
@128keaton
128keaton / navigation.js
Last active Sep 21, 2018
Client-side javascript that fetches menus from a Wordpress instance for another website.
View navigation.js
// -------------------------------------------------------------
// Add page items
// (uses Wordpress plugins JSONMenu)
// -------------------------------------------------------------
$.ajax({
url: 'http://wp.dev.reviveit.io/?rest_route=/menus/v1/list',
dataType: 'application/json',
cache: 'true',
complete: function (data) {
console.log('Ajax request success');
@128keaton
128keaton / archiver.rb
Last active Sep 6, 2018
Creates a Wayback machine entry for URL
View archiver.rb
require 'net/https'
require 'uri'
class WebArchiver
def self.archive(url)
url = URI.parse("https://web.archive.org/save/#{url}")
req = Net::HTTP::Get.new(url.to_s)
res = Net::HTTP.start(url.host, url.port, :use_ssl => true) {|http|
http.request(req)
View imaging.rb
require 'json'
require 'net/http'
require 'uri'
require 'logger'
logger = Logger.new(STDOUT)
base_url = 'http://10.0.2.7:3001'
serial = `sudo dmidecode -t 1 | grep Serial | sed 's/.*: //g'`.strip!
View heatmap.rb
require 'json'
require 'net/http'
require 'uri'
require 'logger'
logger = Logger.new(STDOUT)
#get machine serial number
serial = `sudo dmidecode -t 1 | grep Serial | sed 's/.*: //g'`.strip!
base_url = 'http://10.0.2.7:3001'
View genesis_public_key
044d526abc3b038b5c298e76994f9aca88bfdf575a8e1bb99b640b069f05abaeda7c2a92f0f8176cdedd7a94b9ff7fa9a8071898dafb62bb59c78888ffa005243f
@128keaton
128keaton / printerface.rb
Created Jan 9, 2018
Talk to a Packsize printer with Ruby <3
View printerface.rb
#!/usr/bin/env ruby
# encoding: utf-8
require "rubygems"
require "bunny"
require "json"
def buildHash(width, height, length, orderNumber = "Mambo Test Print #9")
@128keaton
128keaton / chaching.py
Created Dec 8, 2017
DYN Coin Google Home notification
View chaching.py
#!/usr/bin/python
import subprocess
import time
import json
import requests
EARL = 'http://10.0.0.145:5000/play/cha.m4a'
CMD = '~/dynamic-1.5.0/bin/dynamic-cli getwalletinfo'
BALANCE = -1.0
@128keaton
128keaton / install.sh
Last active Nov 3, 2017
Installs a branch of Tigerbrew
View install.sh
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mistydemeo/tigerbrew/tarball/master anywhere you like or
# change the value of HOMEBREW_PREFIX.
HOMEBREW_PREFIX = '/usr/local'
TIGERBREW_BRANCH = 'vendor_ruby'
module Tty extend self
def blue; bold 34; end
def white; bold 39; end