Skip to content

Instantly share code, notes, and snippets.

View benphelps's full-sized avatar
🇺🇦
Slava Ukrayini!

Ben Phelps benphelps

🇺🇦
Slava Ukrayini!
View GitHub Profile
03 00 09 00 48 00 69 00 20 00 74 00 68 00 65 00 | ....H.i. .t.h.e.
72 00 65 00 21 | r.e.!
03 00 09 48 69 20 74 68 65 72 65 21 01 00 00 00 | ...Hi th ere!....
E0 06 41 00 01 | ..A..
function ChatLogPlugin:Initialize()
self:SetName( "ChatLog" )
self:SetVersion( 1 )
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook( self, cPluginManager.E_PLUGIN_CHAT )
self.Logger = cMCLogger:new_local("ChatLog"..GetTime()..".txt")
self.Logger:LogSimple("--- ChatLog started ---", 1);
<?php
/**
* PHP IRC Server - PHelPsIRCd
* Why? Why not!
* @author Ben Phelps
* @version 2
* @copyright BenPhelps.me, 15 June, 2011
* @package PHelPsIRCd
package main
import "fmt"
type Color struct {
name string
value string
}
func color(text string, color Color) {
@benphelps
benphelps / hunter_mm.lua
Created August 11, 2011 19:01 — forked from gig3m/hunter_mm.lua
MM rotation
function hunter_mm(self)
-- Marksmanship Hunter by Chiffon with additions by Scribe
------------------------------------------
local up = UnitPower
local r = RunMacroText;
local spell = nil
local raf_ready,raf_timeleft,_ = GetSpellCooldown("Rapid Fire");
local chim_ready,chim_timeleft,_ = GetSpellCooldown("Chimera Shot");
-- Interupting, Borrowed directly from feral cat
<?php
$url = "http://ventrilostatus.net/xml/nitrogen.typefrag.com:11101/";
//$xml = file_get_contents($url);
$xml = file_get_contents("source.xml");
$base = simplexml_load_string($xml);
$bold_pre = "\033[1;1m";
$bold_post = "\033[0m";
//print_r($base);
$HTTP["host"] == "IP_HERE" {
url.rewrite-once = (
"/(.*)\.(.*)" => "$0",
"/(css|files|img|js|stats)/" => "$0",
"^/([^.]+)$" => "/index.php/$1"
)
}
$HTTP["host"] == "survey.benphelps.me" {
url.rewrite-once = (
"/(.*)\.(.*)" => "$0",
"/(css|files|img|js|stats)/" => "$0",
"^/([^.]+)$" => "/index.php/$1"
)
}
SELECT DISTINCT order_items.pallet_id as 'pallet_id', orders.entry_date as 'last_order' FROM orders JOIN order_items ON orders.order_id = order_items.order_id WHERE order_items.pallet_id = 'DOH 48X42' GROUP BY order_items.pallet_id ORDER BY orders.entry_date DESC;
- !ruby/object:HostRelation
attributes:
id: 13
host_id: 10
user_id: 1
created_at: 2012-05-24 20:33:45.621942000 Z
updated_at: 2012-05-24 20:33:45.621942000 Z
enabled: true