Skip to content

Instantly share code, notes, and snippets.

/*
* 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" )
@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
@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 / 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 / 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 / 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 / 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 / .zshrc
Last active October 8, 2018 10:02
.zshrc
# .zshrc: users generic .zshrc file for zsh(1)
#
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
# Global Order: zshenv, zprofile, zshrc, zlogin
## General
#
@metasta
metasta / README.md
Last active August 17, 2016 04:41
iptables Country Filter
@metasta
metasta / README.md
Created February 17, 2012 05:47
AND search mlocate

"AND search" mlocate

locate is a Unix utility used to find files on filesystems.

By default it is "OR search".

How to build "AND search" mlocate

1. Get mlocate