Skip to content

Instantly share code, notes, and snippets.

View binaryatrocity's full-sized avatar

Brandon Cornejo binaryatrocity

View GitHub Profile
@binaryatrocity
binaryatrocity / FenceSheet.js
Created January 20, 2019 17:56
Google App Script for Fencing item spreadsheet
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Fencing Tools')
.addItem('Parse Output', 'parseFenceOutput')
.addItem('Clear Inputs', 'clearFenceInput')
.addToUi();
}
function onEdit(e){
var range = e.range;
#CLASS gmcp kill
#CLASS gmcp open
#FORMAT IAC %a 255
#FORMAT DONT %a 254
#FORMAT DO %a 253
#FORMAT WONT %a 252
#FORMAT WILL %a 251
#FORMAT SB %a 250
@binaryatrocity
binaryatrocity / ToggleBrief.md
Created December 26, 2017 21:19
Adding brief/verbose combat to CowBar

Find the part that looks like:

]]>
</script>

Add this right above it:

@binaryatrocity
binaryatrocity / CowBarModified.xml
Last active December 26, 2017 19:44
Add verbose/brief combat toggle to quows minimap
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Graphical minimap and location GPS created by Quow-->
<muclient>
<plugin
name="CowBar"
author="Quow"
id="bfe35205f026786ea1d56e3b"
language="Lua"
purpose="Minimap, UI &amp; More!"
var bot = require('./../lib/initialize.js');
bot.initialize({
twitch: {
channel: 'llamadownunder',
bot: {name: 'LlamaDUBot', password: ''},
subscribers: ''
},
currency: {
@binaryatrocity
binaryatrocity / bot_commands.md
Last active August 29, 2015 14:22
CurrencyBot Commands

CurrencyBot Commands

<currency> is a placeholder for the name of your channel currency

Currency Requests

####Broadcaster / Moderator Commands

@binaryatrocity
binaryatrocity / BirdCounter
Created January 29, 2015 04:16
BirdCounter
/*
Platform: Arduino Uno
Monitor an infrared breakbeam sensor (digital port 4) for interruptions
and increment a LED display with a counter.
*/
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
@binaryatrocity
binaryatrocity / hmac-sha1.py
Last active April 9, 2021 15:20
HMAC-SHA1 Python example
from sys import argv
from base64 import b64encode
from datetime import datetime
from Crypto.Hash import SHA, HMAC
def create_signature(secret_key, string):
""" Create the signed message from api_key and string_to_sign """
string_to_sign = string.encode('utf-8')
hmac = HMAC.new(secret_key, string_to_sign, SHA)
return b64encode(hmac.hexdigest())
### Keybase proof
I hereby claim:
* I am binaryatrocity on github.
* I am binaryatrocity (https://keybase.io/binaryatrocity) on keybase.
* I have a public key whose fingerprint is 1675 E26E 4EC1 9B3F EDA9 3F1B C6C6 244D EB08 40B3
To claim this, I am signing this object:
import os
os.chdir(os.path.abspath(os.path.split(__file__)[0]))
activate_this = os.path.join(os.path.split(__file__)[0], 'venv', 'bin', 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))