Skip to content

Instantly share code, notes, and snippets.

@s151003
s151003 / opera-vpn.md
Last active March 9, 2019 11:24 — forked from spaze/opera-vpn.md
Opera VPNは実はただのProxy その仕組みは

When setting up (that's immediately when user enables it in settings) Opera VPN sends few API requests to https://api.surfeasy.com to obtain credentials and proxy IPs, see below, also see The Oprah Proxy.

The browser then talks to a proxy de0.opera-proxy.net (when VPN location is set to Germany), it's IP address can only be resolved from within Opera when VPN is on, it's 185.108.219.42 (or similar, see below). It's an HTTP/S proxy which requires auth.

When loading a page with Opera VPN enabled, the browser sends a lot of requests to de0.opera-proxy.net with Proxy-Authorization request header.

The Proxy-Authorization header decoded: CC68FE24C34B5B2414FB1DC116342EADA7D5C46B:9B9BE3FAE674A33D1820315F4CC94372926C8210B6AEC0B662EC7CAD611D86A3 (that's sha1(device_id):device_password, where device_id and device_password come from the POST /v2/register_device API call, please note that this decoded header is from another Opera installation and thus contains

@s151003
s151003 / main.py
Last active February 26, 2019 15:14
rstr sample program (YouTube random video generator)
# rstrというライブラリのテスト
# 正規表現と文字数を指定すると、それに当てはまる文字列を出力してくれる
import rstr
import urllib.request
from time import sleep
while True:
vidid = rstr.xeger(r'[a-zA-Z0-9-_]{10,12}')
url = "https://i.ytimg.com/vi/"+vidid+"/1.jpg"
@s151003
s151003 / ja.md
Last active September 23, 2019 08:36 — forked from joepie91/vpn.md
Don't use VPN services.

VPNサービスを使うな

マジで使うな。これを読んでいるということは、どのVPNサービスを使うべきかを知りに来たのかと思いますが、これが答えです。

注意: これは第三者によって提供されている、見せかけのプロキシに対しての投稿で、VPNの本来の使い方に対して向けたものではありません。

(A Russian translation of this article can be found here, contributed by Timur Demin.)

なぜダメなの?

@s151003
s151003 / amazon-adsystem@com
Last active November 14, 2023 08:58
lists of urls
1faax-us-east@amazon-adsystem@com
?@amazon-adsystem@com
aax@amazon-adsystem@com
aax-cpm@amazon-adsystem@com
aax-eu@amazon-adsystem@com
aax-eu-rtb@amazon-adsystem@com
aax-eu-rtb-adx@amazon-adsystem@com
aax-eu-test@amazon-adsystem@com
aax-eu-test1@amazon-adsystem@com
aax-eu-test2@amazon-adsystem@com
Twitter said young twitter users are LOSER.
https://www.j-cast.com/trend/2018/10/05340571.html
ejje.weblio.jp###outerSideLeft
ejje.weblio.jp###side > .sideBlock:nth-of-type(1) > .indexSideAdTop
ejje.weblio.jp###side > .sideBlock:nth-of-type(1)
ejje.weblio.jp###hideDictPrsKENEJ > .mainBlock:nth-of-type(2)
ejje.weblio.jp###main > .mainBlock:nth-of-type(3)
ejje.weblio.jp###ejjeBottomRightFixedAds > .sideBlock:nth-of-type(1)
ejje.weblio.jp###ejjeBottomRightFixedAds > .sideBlock:nth-of-type(1)
ejje.weblio.jp###ejjeBottomRightFixedAds > .sideBlock:nth-of-type(3)
ejje.weblio.jp###footFixBar
@s151003
s151003 / pull_webhook.py
Last active January 18, 2022 00:55
PythonからIFTTTのWebhookトリガーを引く
値はリストで渡す。
値は省略可能。
Python3のスクリプトでjsonをPOSTする
https://qiita.com/neko_the_shadow/items/324976c7b54623e82b26
@s151003
s151003 / gist:f1acc2670a28875ca9d4757214b5e3db
Last active March 9, 2018 11:57
Bitcoin Address Watch (2018/03/09)
・Binance
1NDyJtNTjmwk5xPNhjgAMu4HDHigtobu1
・Poloniex
12cgpFdJViXbwHbhrA3TuW1EGnL25Zqc3P
17A16QmavnUfCW11DAApiJxp7ARnxN5p
1L6zTihRVecCjisYkn6BuXKrwvg8hJFC4f
# コミットコメント
#### Fix 🔧
動かない機能を修正
#### Clean :shower:
リファクタリング
#### Rename :bookmark:
改名
#### Move 🚧
ファイルを移動
#### Tada :tada:
# SESSIONはどのくらい持つ?
24分(1440秒)に1/100の確立で消える
なぜ1/100なのかというと一回でたくさん消すと時間がかかるから