Skip to content

Instantly share code, notes, and snippets.

View irisfofs's full-sized avatar

Iris irisfofs

View GitHub Profile
git remote add upstream https://github.com/xiagu/jekyll-rp-logs.git
git fetch upstream
git merge upstream/master
@irisfofs
irisfofs / parse_der.rb
Created June 13, 2015 02:22
Junk parser
MODE = /([+%@&~!]?)/
NICK = /([\w\-\\\[\]\{\}\^\`\|]+)/
DATE_REGEXP = /(\d\d\d\d \d\d \d\d\[\d\d:\d\d\])/
# Crappy but worked for examples, could definitely be improved
USER_AT_HOST = /\(\w+@[^)]+\)/
JUNK = /#{DATE_REGEXP} \* #{MODE}#{NICK} (sets mode:|is now known as|(#{USER_AT_HOST} (has joined|Quit))).*$/
@irisfofs
irisfofs / pisg_smileys.patch
Created March 10, 2015 01:01
A patch for pisg to improve its smiley parsing with a lot more smileys.
From aa0d9705564580ad6059e9e9e793a25764dd3a9f Mon Sep 17 00:00:00 2001
From: Andrew <[email protected]>
Date: Mon, 9 Mar 2015 20:53:59 -0400
Subject: [PATCH] Updated smiley parsing code
---
pisg/modules/Pisg/Parser/Logfile.pm | 51 ++++++++++++++++++++++++++++++-----
1 file changed, 44 insertions(+), 7 deletions(-)
diff --git a/pisg/modules/Pisg/Parser/Logfile.pm b/pisg/modules/Pisg/Parser/Logfile.pm
#MaxThreadsPerHotkey 1
#MaxHotkeysPerInterval 10000000000000
#Singleinstance FORCE
`::
Sleep 50
send {9 Down}
sleep 25
send {9 Up}
Sleep 50
@irisfofs
irisfofs / gui-completion.c
Created February 20, 2015 05:15
currently broken attempt to allow tab-completion after arbitrary prefixes
if (size > 0)
{
i = pos;
pos_start = i;
ignore_prefix_chars = !CONFIG_STRING(config_completion_ignore_prefix_chars)
&& !CONFIG_STRING(config_completion_ignore_prefix_chars)[0];
/* only backtrack on a space, other characters would be unexpected */
if (data[i] == ' ') // Guards against a double space?
{
if ((i > 0) && (data[i-1] != ' ') && (ignore_prefix_chars