Skip to content

Instantly share code, notes, and snippets.

Avatar

Keaton Burleson 128keaton

View GitHub Profile
View WL API Issies
Hello Polly,
Let me explain the issues ive been having with the API.
Here is my HTML code for fetching the list id for the name 'Today':
$tomorrow_id;
$today_id;
$ch2 = curl_init();
View Code stuff
In OTIHapCore.m:
- (void)setupBridgeAccessory {
/* HAKAccessory *bridgeAccessory = [[HAKAccessory alloc] init];
HAKAccessoryInformationService *infoService = [[HAKAccessoryInformationService alloc] init];
infoService.nameCharacteristic.name = @"Hue Bridge";
infoService.serialNumberCharacteristic.serialNumber = @"972BB8AF";
infoService.manufacturerCharacteristic.manufacturer = @"Philips";
infoService.modelCharacteristic.model = @"Hue Bridge";
bridgeAccessory.accessoryInformationService = infoService;
@128keaton
128keaton / Veggie Tales XML
Created Feb 24, 2015
Something silly I did for a class. Now, to find my hair brush...
View Veggie Tales XML
<?xml version="1.0" encoding="utf-8"?>
<MusicLibrary>
<genre>
<category name="Silly">
<album name = "Silly Songs with Larry" artist = "Larry the Cucumber">
<song name = "Where is my hairbrush" duration = "1:00"></song>
</album>
<album name = "Songs by Mr. Lunt" artist = "Mr Lunt">
<song name = "Cheeseburger, I love you!" duration = "1:00"></song>
</album>
@128keaton
128keaton / Keaton.h
Created Mar 15, 2015
Me in a nutshell
View Keaton.h
@interface Keaton : NSObject
@property(strong, nonatomic)BOOL speak;
@end
@128keaton
128keaton / temp.php
Created May 18, 2015
Temperature monitoring
View temp.php
<?php
//add your server aliases here
$servers = array(
"10.0.0.201" => "Larry",
"10.0.0.56" => "Le Mac Pro",
);
@128keaton
128keaton / chromium.sh
Last active Aug 29, 2015
fixed flash/pdf/other for chromium run "curl -L https://goo.gl/B286lX | bash"
View chromium.sh
#!/bin/bash
#based on https://gist.github.com/3065781 which is based on https://wiki.archlinux.org/index.php/Chromium.
echo "mounting file system"
mount -o remount, rw /
#Flash, pdf.
#mp3,mp4, stopped working...
echo "removing MP3/4 fix"
rm -r /usr/lib/cronos/libffmpegsumo.so
rm -r /opt/google/chrome/libffmpegsumo.so
View umbrella.sh
#!/bin/bash
FILES=./*
for f in $FILES
do
echo "#import \"${f//.\/}\""
done
# place in the framework directory, e.g. preferences, and chmod a+x umbrella.sh && ./umbrella.sh
@128keaton
128keaton / dash-listen-3.py
Last active Jul 9, 2016 — forked from ibrahima/dash-listen-3.py
Amazon Dash Button ARP listener script (not written by me)
View dash-listen-3.py
import socket
import struct
import binascii
# Written by Bob Steinbeiser (https://medium.com/@xtalker)
rawSocket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
socket.htons(0x0003))
MAC = '74c24671971c'
View HolyCrap.swift
//
// ProfileViewController.swift
// Bg-Mon
//
// Created by Keaton Burleson on 4/4/16.
// Copyright © 2016 Keaton Burleson. All rights reserved.
//
import Foundation
import UIKit
View ThatsBetter.swift
//
// ProfileViewController.swift
// Bg-Mon
//
// Created by Keaton Burleson on 4/4/16.
// Copyright © 2016 Keaton Burleson. All rights reserved.
//
import Foundation
import UIKit
You can’t perform that action at this time.