Skip to content

Instantly share code, notes, and snippets.

View pawelz's full-sized avatar

Paweł Zuzelski pawelz

View GitHub Profile
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';
// $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"
test
test
test
#include "analogliterals.h"
#include<iostream>
int main ()
{
using namespace analog_literals::symbols;
using namespace analog_literals::shapes;
int volume, area, lenght;
#!/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
#!/bin/sh
xwininfo -int -root -children \
| awk -vFS='"' '/Uzbl browser/ {
gsub("^ ", "");
sub("^", "'"'"'", $2);
sub("$", "'"'"'", $2);
print $2
}' \
| dmenu -b -i -l 30 \
| awk '{
void
sigchld(int signum) {
(void) signum;
if (signal(SIGCHLD, sigchld) == SIG_ERR)
fatal("Can't install SIGCHLD handler");
while(0 < waitpid(-1, NULL, WNOHANG));
}
$ luakit
/home/users/z/.config/luakit/rc.lua:8: module 'globals' not found:
no field package.preload['globals']
no file './globals.lua'
no file '/usr/share/lua/5.1/globals.lua'
no file '/usr/share/lua/5.1/globals/init.lua'
no file '/usr/lib/lua/5.1/globals.lua'
no file '/usr/lib/lua/5.1/globals/init.lua'
no file './lib/globals.lua'
no file './lib/globals/init.lua'
@pawelz
pawelz / ww
Created September 6, 2010 13:20
15:13:33 [watch]_send: <message to="ww@example.pl" id="1283778813">
15:13:33 [watch]_send: <body>Mo#esz jeszcze raz cokolwiek do mnie napisa#? Mo#e mi si# uda podejrze# co si# dzieje z moim jabberem.</body>
15:13:33 [watch]_send: <x xmlns="jabber:x:event"><displayed/><composing/></x>
15:13:33 [watch]_send: </message>
15:13:33 [watch_handle_write] fd: 15 in queue: 226 bytes.... ... wrote:226 bytes (handler: 0xb7341e5a) left: 0 bytes
15:13:44 [jabber] jabber_handle_stream()
15:13:44 [jabber] (117b/117b) recv: <message from='ww@example.pl/Home' to='pzz@example.pl/ekg2' type='chat' id='purple9692c0ea'><body>123 test</body></message>
15:13:44 [jabber,message] type = chat
15:13:44 message_parse() s: xmpp:pzz@example.pl rec: xmpp:ww@example.pl/Home
15:13:44 [python] Getting value for 'notify:message_notify' config option
@pawelz
pawelz / gcd.sed
Created October 23, 2010 16:55
Euclidean algorithm implemented in pure sed.
#! /bin/sed -nf
# gcd.sed Copyright (c) 2010 by Paweł Zuzelski <pawelz@pld-linux.org>
# dc.sed Copyright (c) 1995 - 1997 by Greg Ubben <gsu@romulus.ncsc.mil>
# usage:
#
# echo N M | ./gcd.sed
#
# Computes the greatest common divisor of N and M integers using euclidean