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
class DickPlugin < Plugin | |
def name | |
"dick" | |
end | |
def help(plugin, topic="") | |
"Adds a bit of huymor to russian words" | |
end | |
def hui(m, params) |
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/zsh | |
# Simple ADOM savegame backuper | |
# Usage: ./aadom.zsh <savename> | |
# Requires git and ADOM in $PATH | |
cd /$HOME/.adom.data/savedg | |
if [ ! -d .git ]; then | |
git init | |
fi | |
while [ true ] | |
do |
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/sh | |
usage() | |
{ | |
echo "Usage: dump <file|image|text> [file] [language]" | |
} | |
case $1 in | |
file) | |
URL=`curl -w %{redirect_url} -F "file=@$2" http://dump.bitcheese.net/upload-file?simple` |
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
local defaults={ | |
-- 500 or less makes seconds increment relatively smoothly while playing | |
update_interval=500 | |
} | |
local settings=table.join(statusd.get_config("xmms2"), defaults) | |
local xmms2_timer | |
local function get_xmms2_status() |
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
require 'reploy' | |
Reploy.load(:host => "example.com", | |
:user => "username", | |
:path => "/var/www/example.com", | |
:recipes => ["git","scp"]) |
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
# Reploy example, see http://bitcheese.net/wiki/reploy/examples | |
require 'reploy' | |
Reploy.load(:host => "example.com", | |
:user => "user", | |
:path => "/var/www/example.com", | |
:recipes => ["git", "merb", "rsync"], | |
:copy => [["config/database.yml","config"]], | |
:store_backups => false, |
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 | |
// RIP LyricWiki. You were rather good. | |
// This script has the same interface as late LyricWiki | |
// Returning format is html only | |
error_reporting(0); | |
function encode($wtf) | |
{ | |
return urlencode(preg_replace("/\\s+/","_",$wtf)); | |
} | |
$artist = encode($_REQUEST["artist"]); |
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
module Text.JSON.JPath (jPath) where | |
import qualified Data.Map as Map | |
import Data.Maybe | |
import Text.JSON | |
import Text.ParserCombinators.Parsec.Combinator | |
import Text.ParserCombinators.Parsec.Char | |
import Text.ParserCombinators.Parsec.Prim | |
data Element = ObjectLookup String | ArrayLookup Int deriving (Show) |
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/ruby | |
# Hackage [http://hackage.haskell.org] documentation downloader | |
# Fetches documentation for installed only (or all available) Cabal packages in current directory | |
# Use --all to download docs for all packages | |
# Requires wget and cabal to be installed | |
# by Voker57 <[email protected]> | |
# | |
# Public domain |
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
This is very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long string |