Skip to content

Instantly share code, notes, and snippets.

View FiXato's full-sized avatar

Filip H.F. "FiXato" Slagter FiXato

View GitHub Profile
@FiXato
FiXato / mrc_forum_userignore.user.js
Last active September 27, 2015 18:58
MRC Forum User Ignore user.js script
// ==UserScript==
// @name MRC Forum User Ignore(MRC)
// @namespace FiXato
// @description Hides messages from users you want to ignore on the msx.org forum
// @include http://www.msx.org/forum/*
// @version 1.1
// ==/UserScript==
//
// (c) 2011-2013, Filip H.F. "FiXato" Slagter, Licensed under MIT License.
// Tested with GreaseMonkey for Firefox 7 on Windows and on Chrome for Mac
@FiXato
FiXato / checkconfig.rb
Created January 5, 2012 02:37 — forked from UnknownEntity634/checkconfig.rb
Anope <= 1.8.x Deploy Script Cross-Section
#!/usr/bin/env ruby
# encoding: UTF-8
#
# A simple script that parses the Anope IRC Services services.conf for zbot and mysql variables.
# By:
# - Unknown_Entity aka o_o
# - Filip H.F. "FiXato" Slagter
#
# Now also compatible with 1.8.5 which seems to run on one of the archaic servers ><
require 'yaml'
@FiXato
FiXato / spamfilter_uniq_matches.rb
Created April 14, 2012 21:45
Returns a sorted list of the most triggered spamfilters based on UnrealIRCd's spamfilter.log
#!/usr/bin/env ruby
require 'yaml'
UNREAL_PATH = "~/UnrealIRCd/logs/spamfilter.log"
matches = Hash.new{|hash,key| hash[key] = 0}
`grep -o \\\'.\\\\+\\\': #{UNREAL_PATH} |sort`.split("\n").each do |match|
matches[match] += 1
end
puts matches.sort_by{|k,v|v}.map{|k,v|'%s hits: %s' % [v,k[1..-3]]}.reverse
@FiXato
FiXato / bopmstats.rb
Created April 19, 2012 13:34
Script to generate some stats from the bopm.log of the Blitzed Open Proxy Monitor
#!/usr/bin/env ruby
require 'yaml'
LOG_PATH = File.expand_path("~/bopm/var/bopm.log")
#TODO: Grab these directly from the bopm.conf
BLACKLISTS = %w[
dnsbl.dronebl.org
tor.dnsbl.sectoor.de
rbl.efnetrbl.org
dnsbl.swiftbl.org
amsuyu.dnsbl.sectoor.de
@FiXato
FiXato / colors-art.zsh
Created May 3, 2012 19:12
IRC-compatible version of 'colors' zsh script
#!/bin/zsh
# Based on the 'colors' script I found online somewhere years ago.
# It looks like it is based on works posted at http://crunchbanglinux.org/forums/topic/13645/ansi-colorschemes-scripts/page/2/
# I've basically just edited it a bit to work with IRC control codes as well.
# ~~Filip H.F. "FiXato" Slagter, 2012
# ANSI Color -- use these variables to easily have different color
# and format output. Make sure to output the reset sequence after
# colors (f = foreground, b = background), and use the 'off'
# feature for anything you turn on.
@FiXato
FiXato / wunderground.mrc
Created May 27, 2012 21:17 — forked from anonymous/gist:2815875
wunderground.mrc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;; weather underground for mIRC ;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;by eqrunner ;;v3.0;;
/*
-- COMMANDS --
!w or !weather [zipcode|city,state|city,country|airport] = will return weather current conditions.
!current [zipcode|city,state|city,country|airport] = will return current conditions.
!forecast [zipcode|city,state|city,country|airport] = will give detailed 3 day forecast (for us)
!forecast5 [zipcode|city,state|city,country|airport] = will send 5 day forecast to $nick that requested. (to prevent chan flooding)
@FiXato
FiXato / main.mk
Created June 8, 2012 18:59
Changed openMSX Makefiles needed to compile PPC support on Mac OS X Snow Leopard using XCode 3.2.5
# $Id: main.mk 12439 2012-03-24 11:01:12Z mthuurne $
#
# openMSX Build System
# ====================
#
# This is the home made build system for openMSX, which replaced the
# autoconf/automake combo.
#
# Used a lot of ideas from Peter Miller's excellent paper
# "Recursive Make Considered Harmful".
@FiXato
FiXato / gamestats_from_wikipedia.rb
Created July 10, 2012 21:33
Simple script to get the number of games for a couple of old retro-computersystems
#!/usr/bin/env ruby
# encoding: utf-8
# (c) 2012, Filip H.F. "FiXato" Slagter
# For http://www.msx.org/forum/msx-talk/general-discussion/shame-you-dutch-collectors#comment-199093
# Suggestions for more lists: http://en.wikipedia.org/wiki/Category:Video_game_lists_by_platform
require 'open-uri'
require 'nokogiri'
def look_for_table_title(node,count=0)
prev = node.previous_element || node.parent
@FiXato
FiXato / test_machines_and_extensions.tcl
Created July 11, 2012 21:23
TCL script for openMSX for easy testing of known machines and extensions.
# TCL script for openMSX for easy testing of known machines and extensions.
# (c) 2012 Filip H.F. "FiXato" Slagter
# For inclusion with openMSX, GNU General Public License version 2 (GPLv2, http://www.gnu.org/licenses/gpl-2.0.html) applies.
# Otherwise you may use this work without restrictions, as long as this notice is included.
# The work is provided "as is" without warranty of any kind, neither express nor implied.
#
# History:
# Version 0.2: made it use a single new machine, defaulting to your current machine. It now removes the extension again after each test.
set_help_text test_all_machines "Test all known machines and report errors. Pass 'stderr' as channel argument to get the return values on the commandline."
@FiXato
FiXato / missing_openmsx_roms.txt
Created July 11, 2012 22:39
List of SHA1 sums and filenames that I'm missing for openMSX. Mostly variants though.
Found 12 unique SHA1 sums missing:
05e9f40bb7bdc46b557d445c717cb84ad75252f6
2c359c979fbfe5c7c3cce90b4593dba4b7cbcd92
383de340910981bc1e8a2acaec8663b020804ba1
47c78981b5ffbb9e8d9c2145f9c2e642ff0e8193
4a55eb07e1ab8b847e230854e2e26e48983982a6
51a1467d73d26c91aab7923e3be66490daaffdee
5fa3aa79aeba2c0441f349e78e9a16d9d64422ea
8625c6b633d9cca2875e4dc33404fb98653379d7
b43a4be5c754f68dc3ee64eee29d64f30fac2aff