Skip to content

Instantly share code, notes, and snippets.

@metasta
metasta / build_daapd.sh
Created January 3, 2012 18:23
patch & install forked-daapd
#!/bin/sh -
############################################
#
# build_daapd.sh
#
# functions for install & upgrading forked_daapd.
#
# requires:
# sudo, aptitude
@metasta
metasta / build_ffmpeg.sh
Created January 3, 2012 18:08
install & upgrade ffmpeg
#!/bin/sh -
############################################
#
# build_ffmpeg.sh
#
# functions for install & upgrading ffmpeg.
#
# requires:
# sudo, aptitude, git-core, checkinstall
@metasta
metasta / bf.c
Created November 12, 2010 19:54
Usage: brainf*ck [FILE] brainf*ck -e EXPRESSION
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void
die (const char msg[])
{
fprintf (stderr, "Error: %s\n", msg);
exit (1);
}
@metasta
metasta / ddns.rb
Created March 31, 2010 06:06
Ruby Scripts
#!/usr/bin/ruby -
def main
url = 'http://dyn.value-domain.com/cgi-bin/dyn.fcg?'
dm, hs, pw = 'example.com', 'www', 'xxxx'
ip = `wget -q -O - #{url}ip`
require 'optparse'
ARGV.options {|opt|
opt.on('-d', '--domain=DOMAIN', 'domain (example.com)' ){|v| dm = v}
@metasta
metasta / readstats.c
Created March 31, 2010 05:41
csstats.dat reader
/*********************************
*
* readstats
* Convert csstats.dat to CSV format
*
* usage:
* ./readstats ./path/to/csstats.dat
*
*********************************/
@metasta
metasta / hlrcon.c
Created March 31, 2010 05:39
Half-Life RCON tool
/**********************************
*
* hlrcon
* HLDS rcon client
* usage:
* hlrcon <addr> <port> <pass> <cmd>
*
*
* Thanks to:
* Ryozi
/*
* amx_practice_plus
* - infinite money
* - infinite ammo
* - infinite health
* - damage display
* - checkpoint ( I referred kz plugin )
*
* todo
* - buyzone edit ( I'll refer the nice plugin "buyzone_range" )