Skip to content

Instantly share code, notes, and snippets.

View Phara0h's full-sized avatar
🐲
🐉🐉🐉🐉🐉🐉

Jt Whissel Phara0h

🐲
🐉🐉🐉🐉🐉🐉
View GitHub Profile
HOST_IP=192.168.42.12 # change this per compute node
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/25
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=labstack
MYSQL_PASS=supersecret
RABBIT_PASS=supersecrete
function AirSearch()
{
for (var i = 0; i < (worldSize * 16); i++)
{
for(var j = 0; j < (worldSize * 16); j++)
{
for(var k = 0; k < 256; k++)
{
world.getBlock(i*64,j*64,k*64, function(msg){
airSearchCount--;
@Phara0h
Phara0h / SGHash
Last active April 5, 2016 19:37
a fast grid algorithm class for things in 2d space
var SGHash = {
grid: new Array(new Array(new Array())),
insert: function(x, y, object)
{
x = ~~x;
y = ~~y;
if (!this.grid[x])
{
this.grid[x] = new Array();
cd ~
tce-load -iw python-dev compiletc
wget https://nodejs.org/dist/v6.9.1/node-v6.9.1.tar.gz
tar -zvxf node-v6.9.1.tar.gz
cd node-v6.9.1
export NODE_PARENT=${HOME}/node-v6.9.1
export PATH=${NODE_PARENT}/bin:${PATH}
export NODE_PATH=${NODE_PARENT}/lib/node_modules
./configure --prefix=${NODE_PARENT}
make
SELECT DISTINCT data_names.name AS card_name,
quantity AS amount,
multiverseid,
foil AS is_foil,
data_editions.name AS set_name
FROM cards, data_cards, data_names, data_editions
WHERE cards.card == data_cards._id
AND data_cards.name = data_names._id
AND data_cards.edition = data_editions._id;
amount,card_name,is_foil,is_pinned,set_id,set_code,language,condition,comment
1,"""Rumors of My Death...""",0,0,"","UST","","",""
1,"Abandoned Outpost",0,0,"","OD","","",""
4,"Abnormal Endurance",0,0,"","M19","","",""
1,"Academy Drake",0,0,"","DOM","","",""
1,"Accelerate",0,0,"","TOR","","",""
3,"Accomplished Automaton",0,0,"","KLD","","",""
3,"Act of Treason",0,0,"","M19","","",""
1,"Adriana, Captain of the Guard",0,0,"","CN2","","",""
1,"Adventurous Impulse",0,0,"","DOM","","",""
Name,Count,Foils count,Expansion,Multiverse ID
Monstrous Growth,1,0,Seventh Edition,30169
Spined Wurm,1,0,Seventh Edition,13096
Enormous Baloth,1,0,Eighth Edition Box Set,47787
Forest,1,0,Eighth Edition,46456
Forest,1,0,Shards of Alara,174927
Gorilla Titan,1,0,Odyssey,29980
Vitalize,1,0,Classic Sixth Edition,14667
Forest,1,0,Seventh Edition,11286
Forest,1,0,Eighth Edition,46455
var MAX_CHARS = 120;
var SPACES_PER_TAB = 4;
module.exports = {
// http://eslint.org/docs/rules/
'parserOptions': {
'ecmaVersion': 8
},
{
"swagger": "2.0",
"info": {
"title": "API-Flow Swagger Conversion",
"version": "0.0.0"
},
"host": "",
"paths": {
"{{HIVE}}/hive/poke": {
"put": {
2020-04-02 10:42:29 DEBUG (Thread-2) [custom_components.wyzesense.binary_sensor] {'available': True, 'mac': '77930A0E', 'state': 1, 'device_class': 'motion', 'timestamp': '2020-04-02T10:42:06.860000', 'rssi': -62, 'battery_level': 91}
2020-04-02 10:42:29 INFO (MainThread) [homeassistant.components.automation] Executing Auto Kitchen On
2020-04-02 10:42:29 INFO (MainThread) [homeassistant.components.automation] Auto Kitchen On: Running script
2020-04-02 10:42:29 INFO (MainThread) [homeassistant.components.automation] Auto Kitchen On: Executing step call service
2020-04-02 10:42:38 DEBUG (Thread-2) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa531935000001713b57b2390ea23737393333424144020050c00725'
2020-04-02 10:42:38 DEBUG (Thread-2) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa531935000001713b57b2390ea23737393333424144020050c00725'
2020-04-02 10:42:38 DEBUG (Thread-2) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5335, Payload=b'000001713b57