Skip to content

Instantly share code, notes, and snippets.

@judotens
judotens / kapanlagi.py
Last active December 30, 2015 02:59
Find Indonesian song and lyrics from KapanLagi
from StringIO import StringIO
import gzip, BeautifulSoup, sys, urllib2, urllib
main_url = "http://lirik.kapanlagi.com"
def buka(url):
request = urllib2.Request(url)
request.add_header('Accept-encoding', 'gzip')
response = urllib2.urlopen(request)
if response.info().get('Content-Encoding') == 'gzip':
buf = StringIO( response.read())
@judotens
judotens / kaskus.py
Last active August 23, 2017 14:36
Kaskus search using official API - just for fun
# PS:
# - Extract your own kaskus oauth consumer_key & consumer_secret frm native app. Ref: http://seriot.ch/abusing_twitter_api.php#3
# - No public doc found, but here i attach an api sample sniffed from mitmproxy
import urllib, urllib2
import time
import oauth.oauth as oauth
import string
import random
import sys, json
@judotens
judotens / generate.py
Last active September 10, 2020 11:21
Twitter Bulk Tokens Generator for PIN-based auth Twitter app
# this tools will help you to generate a twitter tokens for bulk twitter accounts using PIN-based authorization twitter app.
# eg: Twitter for Iphone
# todo: save your bulk twitter accounts to pasukan.txt, line separated each account.
# format: username:password
# - Revealing Twitter for iPhone consumer key & secret - Ref: http://seriot.ch/abusing_twitter_api.php#3
import os
dirname, filename = os.path.split(os.path.abspath(__file__))
@judotens
judotens / README.txt
Last active June 19, 2021 17:38
Crosswords Generator
Best paired with these JS:
http://www.jesseweisbeck.com/crossword/
Usage: crossword.py [options]
Options:
-h, --help show this help message and exit
-r ROWS, --rows=ROWS Set row height
-c COLUMNS, --columns=COLUMNS
Set column width
@judotens
judotens / bash.py
Last active March 7, 2022 00:54
Celery Run Bash Project
from __future__ import absolute_import
import os
from subprocess import Popen, PIPE
import datetime
import time
from celery import Celery
from celery import states
from os.path import dirname, join
@judotens
judotens / bitcoinkey.sh
Last active December 2, 2023 07:03
Scrape BitCoin private keys from directory.io
#!/bin/bash
# scrape all leaked bitcoin private keys into a tab separated text
# <private key>\t<bitcoin_address>
#
# support autoresume. just add these line into your cron : * * * * bash bitcoinkey.sh
# results stored on keys.txt
if [ ! -f last.page ]; then prev=`echo 0`; else prev=`cat last.page`; fi;
if [ -z $1 ]; then akhir=`echo 10`; else akhir=`echo $1`; fi;
abis=$(($prev+$akhir))
@judotens
judotens / namecheap.py
Last active December 3, 2023 11:53
Export Namecheap domain zones without API
pip install selenium
python namecheap.py <namecheap_account> <namecheap_password> <domain>