Skip to content

Instantly share code, notes, and snippets.

View pawelz's full-sized avatar

Paweł Zuzelski pawelz

View GitHub Profile
#!/bin/sh
xwininfo -int -root -children \
| awk -vFS='"' '/Uzbl browser/ {
gsub("^ ", "");
sub("^", "'"'"'", $2);
sub("$", "'"'"'", $2);
print $2
}' \
| dmenu -b -i -l 30 \
| awk '{
#!/bin/sh
# Google Docs automagically translate ASCII quotes and double quotes to UTF-8
# quotes. Moreover there is no possibility to copy text from Google Docs into
# primary selection. This scripts copies clipboard to primary selection,
# translating UTF quotes back to ASCII.
xclip -o -selection clipboard | sed 's,“,",g;s,”,",g'";s,‘,',g;s,’,',g" | xclip
#include "analogliterals.h"
#include<iostream>
int main ()
{
using namespace analog_literals::symbols;
using namespace analog_literals::shapes;
int volume, area, lenght;
test
test
test
// $XKeyboardConfig$
// based on a keyboard map from an 'xkb/symbols/pl' file
//
// $XFree86: xc/programs/xkbcomp/symbols/pl,v 1.3 2003/04/19 12:22:12 pascal Exp $
partial default alphanumeric_keys
xkb_symbols "pawelz" {
include "latin"
var readConvertLinksToFootnotes=true;
var readStyle='style-novel';
var readSize='size-medium';
var readMargin='margin-wide';
var _readability_script=document.createElement('SCRIPT');
var _readability_css=document.createElement('LINK');
var _readability_print_css=document.createElement('LINK');
_readability_script.type='text/javascript';
_readability_script.src='http://rozpalona.asia/readable/readability.js';
#!/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
#!/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
#!/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
"""
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