Skip to content

Instantly share code, notes, and snippets.

View pironic's full-sized avatar
💭
taking names and chewing bubblegum

Michael Writhe pironic

💭
taking names and chewing bubblegum
View GitHub Profile
<?xml version="1.0"?>
<CreatureCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<creatures>
<Creature>
<species>Argentavis</species>
<name>Falco</name>
<gender>Male</gender>
<status>Available</status>
<levelsWild>
<int>3</int>
09-May-2016 00:38:34 - INFO :: CP Server Thread-10 : Starting postprocessing for : Manual Run
09-May-2016 00:38:34 - INFO :: Thread-40 : there are 50 files.
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: MorningGlories_vol1_1398374447.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: Invincible_vol1_1398382571.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: TheManhattanProjects_vol1_1398374447.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: Lazarus_vol1_1398374447.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: Revival_vol1_update.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: Fatale_vol1_1398374447.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: Chew_vol1_1398371801.cbr
09-May-2016 00:38:34 - INFO :: Thread-40 : [FILENAME]: Saga (2012) - 3.cbr
@pironic
pironic / krieger.js
Created April 3, 2015 00:25
Krieger@Home node.js auto attack app.
#!/usr/bin/env node
var attack = {
timeoutID: null,
storedRequest: null,
config: {
attack_url: "http://algersoft.net/kriegerathome/attack.php",
status_url: "http://algersoft.net/kriegerathome/get_totals.php",
interval: 30, //seconds
payload: "activity=record_progress",
@pironic
pironic / backup.php
Created June 13, 2014 22:00
WHM/WHMCS/CPanel Reseller remote backup script for all customers
<?php
include_once('config.php');
include_once('database.php');
try {
// pull a list of customers that are eligible for offsite backup
$db = new Database(
$cfg['db']['host'],
$cfg['db']['dbase'],
$cfg['db']['user'],
<object width="250" height="40"><param name="movie" value="http://grooveshark.com/songWidget.swf"><param name="wmode" value="window"><param name="allowScriptAccess" value="always"><param name="flashvars" value="hostname=cowbell.grooveshark.com&songIDs=33344993&style=metal&p=0"><embed src="http://grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="250" height="40" flashvars="hostname=cowbell.grooveshark.com&songIDs=33344993&style=metal&p=0" allowscriptaccess="always" wmode="window"></object>
@pironic
pironic / non-paramaterized.php
Last active December 14, 2015 01:29
non-paramaterized
function getPlayerObject($name=null, $guids=null, $region=null)
{
$users = array();
$query = sprintf("SELECT players.guid, players.name, teams.name as faction, players.region FROM `players`
LEFT JOIN teams ON players.team=teams.id");
if (isset($guids))
{
if (is_array($guids))
{
$query .= sprintf("\nWHERE (players.guid = '%s'", $guids[0]);
# ~/.tmux.conf
# window numbering index
set -g base-index 1
# pane numbering index
setw -g pane-base-index 1
set -g display-time 2500
#set -g detach-on-destroy off
@pironic
pironic / client.py
Last active December 11, 2015 17:58
rrd-remote fetch server/client using python's SocketServer library in order to provide GPIO readouts from a raspberry pi.
#! /usr/bin/env python
import SocketServer, sys, time, os
HOST = '10.1.1.45'
PORT = 2000
DEBUG = 1
import socket
def client(string):
# SOCK_STREAM == a TCP socket
#! /usr/bin/env python
import SocketServer, subprocess, sys
from threading import Thread
import RPi.GPIO as GPIO, time, os
GPIO.setmode(GPIO.BCM)
HOST = '10.1.1.45'
PORT = 2000
def RCtime (RCpin):
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='raptr Stats - Hours Played - CalgaryCompany' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \