This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CERT_DIR=~/certificates | |
PRIVATE_DIR=$CERT_DIR/private | |
PUBLIC_DIR=$CERT_DIR/public | |
PUBLIC_CA=$PUBLIC_DIR/ca.cert.pem | |
PRIVATE_CA=$PRIVATE_DIR/ca.key.pem | |
PRIVATE_SERVER_KEY=$PRIVATE_DIR/secure.server.key.pem | |
PRIVATE_SERVER_KEY_PASSWORDLESS=$PRIVATE_DIR/server.key.pem | |
PRIVATE_SERVER_CSR=$PRIVATE_DIR/server.req.pem | |
PUBLIC_SERVER_CERT=$PUBLIC_DIR/server.cert.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#Simple mockup script for Chat4All to parse the UnrealIRCd ip.conf file which holds the 'ban ip'-blocks. | |
#LICENSE: | |
#Copyright 2010 Filip H.F. "FiXato" Slagter | |
#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. | |
# Get the lines from the Unreal ban ips.conf file. Strip leading and trailing whitespaces and repeated spaces. | |
# Compact so there are no empty lines / nil lines left in the array. | |
filepath = File.expand_path("~/script_resources/ips.conf") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c1 | |
< # $Id: flood.pm 861 2004-11-24 11:30:33Z brain/FiXato $ | |
--- | |
> # $Id: flood.pm 861 2004-11-24 11:30:33Z brain $ | |
21,29d20 | |
< my $excluded_channel; | |
< my $excluded; | |
< my @excluded_channels; | |
< my $total_excluded; | |
< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$input_file = "listed_ip_180.txt"; | |
$ips = explode("\n",file_get_contents($input_file)); | |
foreach(array("127.0.0.1","127.0.0.2") as $ip) { | |
echo "Checking if IP $ip occurs in file $input_file" . PHP_EOL; | |
if(in_array($ip,$ips)) { | |
echo "$ip occurs" . PHP_EOL; | |
} else { | |
echo "$ip not present" . PHP_EOL; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Simple IMAP parser script that looks for NZBMatrix Watchlist mails and converts them to an RSS feed and downloads the NZBs. | |
# Created by request of third party. | |
# | |
# LICENSE: | |
# Copyright 2010 Filip H.F. 'FiXato' Slagter | |
# 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. | |
require 'net/imap' | |
require 'rss/maker' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) { | |
header("Content-type: application/xhtml+xml"); | |
} | |
else { | |
header("Content-type: text/html"); | |
} | |
function iFrameBuild($id,$src) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# A simple ruby script to 'flip' text using Unicode equivalents | |
# Based on the javascript code from http://www.revfad.com/flip.html | |
# TODO: also implement reverse lookup table. | |
class String | |
def each(&block) | |
(0...self.size).each do |idx| | |
block.call(self[idx,1]) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TCL plugin script for openMSX Emulator | |
# by Albert "BiFiMSX" Beevendorp and Filip H.F. "FiXato" Slagter | |
# Used to record a video of MSX software that makes use of switching frame rate frequencies. | |
# Version 0.7 | |
# | |
# `toggle_vblank` enables/disables auto-'splitting' of videos at the frame rate change. | |
# `record_with_vblank` is a wrapper that enables the vblank detection, and allows for | |
# passing along `record start` parameters such as -prefix and -doublesize. | |
# It automatically starts the video recording and will stop and start recording a new video when | |
# the frame rate change is detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TCL plugin script for openMSX Emulator | |
# Used to record MoonBlaster MBWave 1.16 tracks running through openMSX, in WAV and AVI. | |
# Version 0.9.5 | |
# | |
# Changelog: | |
# 0.9.5 No need for global; variable will do; | |
# 0.9.4 Dual-licensed this script with GPL 2.0 for inclusion with openMSX; | |
# Bugfix: releasing the automatically pressed keys; | |
# Added: automatically stopping playback of song. | |
# 0.9.3 Updated documentation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Fetches weather info from Google Weather API and Weather Underground API. | |
# Syntax: | |
# ./weather_grabber.rb [location] | |
# | |
# (c) 2010 Filip H.F. "FiXato" Slagter | |
# Licensed under Creative Commons Attribution-Share Alike 3.0 Unported License, http://creativecommons.org/licenses/by-sa/3.0/ | |
['rubygems','nokogiri','open-uri','yaml', 'iconv'].each {|lib| require lib} | |
if ARGV.size > 0 | |
location = ARGV.join(" ") |