Skip to content

Instantly share code, notes, and snippets.

declare -r round_start='2020-03-20 20:00 UTC'
declare -r round_stop='2020-05-08 20:00 UTC'
function should-run-hugin()
{
declare result=1
declare -i now
now="$(date -u '+%s')"
declare -i start
start="$(date -u -d "$round_start" '+%s')"
((#("Incoming" 0 8 (org-imenu-marker #<marker at 1 in qwe.org> org-imenu t)) (#("Foo" 0 3 (org-imenu-marker #<marker at 54 in qwe.org> org-imenu t)) . #<marker at 54 in qwe.org>) (#("Bar" 0 3 (org-imenu-marker #<marker at 66 in qwe.org> org-imenu t)) . #<marker at 66 in qwe.org>) (#("Baz" 0 3 (org-imenu-marker #<marker at 73 in qwe.org> org-imenu t)) . #<marker at 73 in qwe.org>)) (#("Project" 0 7 (org-imenu-marker #<marker at 80 in qwe.org> org-imenu t)) (#("Bigthing 1" 0 10 (org-imenu-marker #<marker at 134 in qwe.org> org-imenu t)) . #<marker at 134 in qwe.org>) (#("Stuck project" 0 13 (org-imenu-marker #<marker at 329 in qwe.org> org-imenu t)) . #<marker at 329 in qwe.org>)) (#("Backlog" 0 7 (org-imenu-marker #<marker at 360 in qwe.org> org-imenu t)) (#("Reminder 1" 0 10 (org-imenu-marker #<marker at 414 in qwe.org> org-imenu t)) . #<marker at 414 in qwe.org>) (#("An incoming, unhandled issue" 0 28 (org-imenu-marker #<marker at 491 in qwe.org> org-imenu t)) . #<marker at 491 in qwe.org>)) (#("Someday/Mayb
on *:INPUT:*:{
if (showscan.pl?scan_ isin $1- && !$ctrlenter && Munin ison #ascendancy && ((!$chan && $active != Munin) || Munin !ison $chan)) {
.msg Munin $1-
}
}

All

Terran

Fi
Harpy, Mandrake
Co
Phoenix, Gryphon, Cerberus(Ro)
Fr
Chimera, Drake, Centaur, Gryphon
De
Pegasus, Unicorn, Demeter(Ro), Drake, Sphinx(Sk), Minotaur(Ro), Chimera(De), Lynx(Ro), Barghest, Cerberus(Ro)
Cr
Syren, Hydra, Behemoth(Sk), Basilisk
Bs
Wyvern, Dragon, Leviathan(Ro), Behemoth(Sk), Ziz(Ro)

Cathaar

Fi
Spider, Vindicator, Beetle
// g++ -O3 -S -c asd.cpp && cat asd.s
#include <cstring>
#include <cstdint>
typedef uint64_t aliasable_uint64_t __attribute__((may_alias));
typedef uint32_t aliasable_uint32_t __attribute__((may_alias));
union uu {
uint32_t i[2];
@Mzyxptlk
Mzyxptlk / fix.el
Created November 17, 2014 10:03
Fix for active region's interaction with overlays
; Fix bug that causes the active region overlay to get the lowest
; possible priority.
(eval-after-load 'simple
'(setq redisplay-highlight-region-function
(lambda (start end window rol)
(if (not (overlayp rol))
(let ((nrol (make-overlay start end)))
(funcall redisplay-unhighlight-region-function rol)
(overlay-put nrol 'window window)
(overlay-put nrol 'face 'region)
@Mzyxptlk
Mzyxptlk / gist:4994786
Created February 20, 2013 11:01
THE STOOM IS USED TO THE ATTENTION
2008-04-07 22:26:20 <@stoomafk> THE STOOMINAT0RRRRRRR
2008-04-07 22:26:26 <@stoomafk> RAAAWWWWWWWWWRRRRRRR
2008-04-07 22:26:27 <@h1tman\away> THE QEBABINATRIX
2008-04-07 22:26:43 <@stoomafk> THE QEBABYBOOOOOO
2008-04-07 22:26:45 <@JBG> STOOM 1984 BACK TO THE FUTURE
2008-04-07 22:27:05 <@stoomafk> STOOM 2008 RELIVING THE PAST
2008-04-07 22:27:10 <@JBG> FUTURE STOOM 2360
2008-04-07 22:27:26 <@mz> ~search mac
2008-04-07 22:27:26 -Munin- 4:3:8 (Xan) Score: 338701 Value: 171481 Size: 390 Nick: CountMacula Alliance: xVx Reportchan: #dontuseme
2008-04-07 22:27:27 <@h1tman\away> STOOM INVENTOR OF THE FLUX CAPACITOR
// ==UserScript==
// @name Direct links on Twitter
// @namespace mz@mz.mz
// @description Replaces links that redirect through t.co with their actual versions
// @include https://twitter.com/*
// @version 1
// ==/UserScript==
for each (let a in document.getElementsByTagName('a')) {
if (a.href.substr(0,12) == "http://t.co/") {
a.href = a.title;
@Mzyxptlk
Mzyxptlk / gist:4271413
Created December 12, 2012 20:39
I am terrible.
alias isurl {
var %result = $false
if ($regex(isurl, $1, /((?:https?|s?ftp):\/\/..*)/)) {
%result = $1
}
elseif ($regex(isurl, $1, /((?:www[0-9]?|ftp)\...*)/)) {
%result = $1
}
if (%result) {
; Strip all leading single and double quotes.
@Mzyxptlk
Mzyxptlk / mz-pa-title.js
Created November 2, 2012 11:08
Better title for PA
// ==UserScript==
// @name Better title for PA
// @namespace mz@mz.mz
// @include http://game.planetarion.com/*
// @include http://beta.planetarion.com/*
// @version 1
// ==/UserScript==
let titles = document.getElementsByTagName('title');
for (let i = 0; i < titles.length; ++i) {
let title = titles[i];