Skip to content

Instantly share code, notes, and snippets.

/cast [harm]Entangling Roots; [help][@focus,help][@player]Thorns
#showtooltip
/cast [swimming,nostance:2] !Aquatic Form; [indoors,nostance:3] !Cat Form; [noflyable,noindoors,noswimming,nostance:4][flyable,combat,noindoors,noswimming,nostance:4] !Travel Form; [flyable,noindoors,noswimming,nocombat,nostance:5] !Swift Flight Form
@tomill
tomill / main
Created January 6, 2012 06:09
my remember the milk smart list
(tag:sticky) OR (dueBefore:today) OR (dueBefore:"3days of today" AND NOT tag:home) OR (dueBefore:"5 hours" AND tag:home) OR (addedAfter:today AND due:never AND list:Inbox) OR (NOT priority:N AND list:Inbox)
@tomill
tomill / gist:1956732
Created March 2, 2012 08:17
DANCER_ENVIRONMENT is too long
diff --git a/lib/Dancer/Config.pm b/lib/Dancer/Config.pm
index 8580b24..1b17922 100644
--- a/lib/Dancer/Config.pm
+++ b/lib/Dancer/Config.pm
@@ -217,6 +217,7 @@ sub load_default_settings {
$SETTINGS->{logger} ||= $ENV{DANCER_LOGGER} || 'file';
$SETTINGS->{environment} ||=
$ENV{DANCER_ENVIRONMENT}
+ || $ENV{DANCER_ENV}
|| $ENV{PLACK_ENV}
select round(avg(sec)) as avg, max(sec) as max from foo;
select sec as mode from (select sec, count(*) as c from foo group by sec ) as t order by c desc limit 1;
select @mednum := floor(count(*) / 2) from foo;
set @rownum = 0;
select sec as median from (select @rownum := @rownum + 1 as rownum, sec from foo order by sec) as t where rownum = @mednum;
@tomill
tomill / Headline.lua
Created September 2, 2012 11:44
Headline (Nameplates) for 5.0.4 just fixed version
local FONT = "Fonts\\FRIZQT__.TTF"
local TEXTURE = "Interface\\AddOns\\Headline\\minimalist"
local OVERLAY = "Interface\\TargetingFrame\\UI-TargetingFrame-Flash"
local combat = false
local numChildren = -1
local frames = {}
local function debuginfo(region)
@tomill
tomill / howto.md
Created September 4, 2012 12:10
iphone mac proxy
$ sudo vi /etc/hosts
xxx.xxx.xxx.xxx my.new.example.com
$ sudo vi /etc/apache2/httpd.conf
Listen 443
ProxyRequests On
ProxyVia On
my %hoge;
%{ $hoge{'hoge'} } = (a=>1, b=>2);
use Data::Dumper;
warn Dumper \%hoge;
@tomill
tomill / 2012-10-03.txt
Created October 3, 2012 14:44
Japanese Guild: PVP power?
[realm] [guild]
Blackrock Jagabata 1370410 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Proudmoore Harapeko Soul 789878 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ner'zhul MKD Gaming 759618 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blackrock Ctrl Z 654721 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blackrock Mikan 555394 |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blackrock Tan Do Li Ga 522397 ||||||||||||||||||||||||||||||||||||||||||||||||||||
Ner'zhul DORIFU 486190 ||||||||||||||||||||||||||||||||||||||||||||||||
Proudmoore CAVAG 426243 ||||||||||||||||||||||||||||||||||||||||||
Proudmoore Heureka
@tomill
tomill / gist:4421557
Last active December 10, 2015 10:29
auras
My Faerie Fire
All Dispersion
All Divine Shield
All Hand of Protection
All Ice Block
All Icebound Fortitude
All Deterrence
All Zen Meditation
All Dematerialize
All Incarnation: Tree of Life