Skip to content

Instantly share code, notes, and snippets.

@oczkers
oczkers / gist:9f4024ae141f9b59b5bd
Created September 12, 2014 07:57
decaptchercom
# -*- coding: utf-8 -*-
"""
gdown.decaptchercom
~~~~~~~~~~~~~~~~~~~
This module implements basic api for decaptcher.com.
"""
@oczkers
oczkers / gist:07d1d3313aa34214496b
Created September 19, 2014 10:07
fut15 site config
HTTP/1.1 200 OK
Last-Modified: Wed, 17 Sep 2014 02:54:24 GMT
Server: Apache
Accept-Ranges: bytes
Content-Type: application/xml
Cneonction: close
Vary: Accept-Encoding
Cache-Control: max-age=454
Date: Fri, 19 Sep 2014 09:34:20 GMT
Content-Length: 5567
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Login Verification</title>
<meta name="title" content="Login Verification" />
<meta name="description" content="Input your Two Factor Authentication Code" />
<link rel="shortcut icon" href="/p/favicon.ico" />
<meta name="lc" content="en_GB" />
@oczkers
oczkers / gist:b73aaa13afdde770bc8d
Created September 17, 2015 09:23
fut16 shards (servers)
{
"shardInfo": [{
"shardId": "shard1",
"clientFacingIpPort": "utas.fut.ea.com:443",
"clientProtocol": "https",
"platforms": ["xbox", "ios", "and", "360"],
"customdata1": ["card-360", "card-ios", "card-and"],
"skus": ["392A0001", "FFA14XBX", "FFA14CAP", "398A0001", "FFA14IOS", "FFA14AND", "FFA14MPC", "FFA14AZN", "FFA15XBX", "FFA15XBO", "FFA15IOS", "FFA15AND", "FFA15MPC", "FFA15AZN"]
}, {
"shardId": "shard2",
@oczkers
oczkers / gist:f3013b446d8b1bf9e379
Created September 18, 2015 22:00
fut16 shards
{
"shardInfo": [{
"shardId": "shard1",
"clientFacingIpPort": "utas.fut.ea.com:443",
"clientProtocol": "https",
"platforms": ["xbox", "ios", "and", "360"],
"customdata1": ["card-360", "card-ios", "card-and"],
"skus": ["392A0001", "FFA14XBX", "FFA14CAP", "398A0001", "FFA14IOS", "FFA14AND", "FFA14MPC", "FFA14AZN", "FFA15XBX", "FFA15XBO", "FFA15IOS", "FFA15AND", "FFA15MPC", "FFA15AZN"]
}, {
"shardId": "shard2",
int moistureSensor1Pin = A0;
int moistureSensor2Pin = A1;
int moistureSensor3Pin = A2;
int moistureSensor4Pin = A3;
int soggyLEDPin = 10; // Dioda - Mokro
int moistsoilLEDPin = 11; // Dioda - Wilgotno
int drysoilLEDPin = 12; // Dioda - Sucho
int pumpLEDPin = 13; // Dioda dzialania pomp
@oczkers
oczkers / gist:88da8c3ab9244df3972c
Created September 12, 2014 07:56
deathbycaptcha
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Author: Sergey Kolchin <ksa242@gmail.com>
"""Death by Captcha HTTP and socket API clients.
There are two types of Death by Captcha (DBC hereinafter) API: HTTP and
socket ones. Both offer the same functionalily, with the socket API
sporting faster responses and using way less connections.
2017-05-20 17:08:34.4705 Info HttpServer: HTTP POST http://192.168.0.13:8096/dlna/fd576bfa59fa420781b5da79ad95cf1b/contentdirectory/control. UserAgent:
2017-05-20 17:08:34.4705 Info Dlna: No matching device profile found. The default will need to be used.
Host: 192.168.0.13:8096
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
Accept: */*
Content-Length: 440
Content-Type: text/xml; charset="utf-8"
Connection: close
Accept-Encoding: gzip
2017-05-20 17:08:34.6150 Info HttpServer: HTTP GET http://192.168.0.13:8096/Main/State/get. UserAgent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; Linux 3.3.8-3.3) [Netgem; 7.5.01-25; i-Player; netbox; netia]; 00:04:30:79:9E:26
http://192.168.0.13:8096/videos/432769d83f68f45b4d7a942fdb45a50a/stream.xml
{"Protocol":"File","Id":"432769d83f68f45b4d7a942fdb45a50a","Path":"D:\\ac3\\The.Day.I.Saw.Your.Heart.2011.Blu.Ray.720p.CINEMANIA.mkv","Type":"Default","Container":"mkv","Name":"720P/H264/AC3","IsRemote":false,"ETag":"510e21b2e11df069baa9bc55b83277b3","RunTimeTicks":56400642048,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/50","Title":"Release Group CINEMANIA","DisplayTitle":"Eng Release Group CINEMANIA","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":7228020,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":688,"Width":1280,"AverageFrameRate":25,"Rea
2017-05-20 17:38:27.3510 Info HttpServer: HTTP POST http://192.168.0.13:8096/dlna/fd576bfa59fa420781b5da79ad95cf1b/contentdirectory/control. UserAgent:
2017-05-20 17:38:27.3510 Info Dlna: No matching device profile found. The default will need to be used.
Host: 192.168.0.13:8096
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
Accept: */*
Content-Length: 440
Content-Type: text/xml; charset="utf-8"
Connection: close
Accept-Encoding: gzip
2017-05-20 17:38:27.3510 Debug UpnpContentDirectory: Control request