Skip to content

Instantly share code, notes, and snippets.

View pawelz's full-sized avatar

Paweł Zuzelski pawelz

View GitHub Profile
asjkfklajsdf
asdfjal;s
asdfl
" Filename: formfiller.vim
" Purpose: Vim syntax file
" Language: UZBL form
" Maintainer: Paweł Zuzelski <pawelz@pld-linux.org>
" URL: http://gist.github.com/347641
" Last Change: 2010/03/29
" Version: 1
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
/*
* Script that makes points on http//bash.org.pl visible before voting, and
* kills some ads.
*
* I tested it with UZBL <http://uzbl.org>, it should be easy to modify this
* script for browsers that support userscripts. For example Opera or Firefox
* with Greasemonkey.
*
* If you are using UZBL add following line to your uzbl config:
* @on_event LOAD_FINISH sh 'echo $6 | grep -qF bash.org.pl && echo script /path/to/bash.js > $4'
#!/usr/bin/python
# some docs: http://www.pygtk.org/pygtk2tutorial/sec-PlugsAndSockets.html
import string
import pygtk
pygtk.require('2.0')
import gtk,sys
import os
#!/usr/bin/env perl
# Get status of Linux software RAID for SNMP / Nagios
# Author: Michal Ludvig <michal@logix.cz>
# http://www.logix.cz/michal/devel/nagios
#
# Simple parser for /proc/mdstat that outputs status of all
# or some RAID devices. Possible results are OK and CRITICAL.
# It could eventually be extended to output WARNING result in
# case the array is being rebuilt or if there are still some
#!/bin/sh -e
config=$1;
shift
pid=$1;
shift
xid=$1;
shift
fifo=$1;
shift
#!/usr/bin/python
# vim:fileencoding=utf-8
"""
XSL processor. In fact it is very simple wrapper for python libxslt. If you
just need XSLT processor, you'd better use one of the full-featured XSLT
parsers like xsltproc or saxon. This script is useful mostly for testing
python libxslt.
This program is free software. It comes without any warranty, to the extent
#!/usr/bin/perl
# This script is possibly buggy, but i haven't got much time
# to test it. Use at your own risk.
# a g a r a n a t p l d d a s h l i n u x d o t o r g
use strict;
use Irssi;
use vars qw($VERSION %IRSSI);
#!/usr/bin/python
# vim:fileencoding=utf-8
"""
XSD validator.
This program is free software. It comes without any warranty, to the extent
permitted by applicable law. You can redistribute it and/or modify it under
the terms of the Do What The Fuck You Want To Public License, Version 2, as
published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
#!/bin/sh -x
TOPDIR=$PWD
SPECDIR=$TOPDIR/SPECS
SOURCEDIR=$TOPDIR/SOURCES
SRPMDIR=$TOPDIR/SRPMS
BUILDDIR=$TOPDIR/BUILD
RPMDIR=$TOPDIR/RPMS
mkdir -p $SPECDIR $SRPMDIR $RPMDIR $SRPMDIR $SOURCEDIR $BUILDDIR