Skip to content

Instantly share code, notes, and snippets.

View cnbeining's full-sized avatar

David Zhuang cnbeining

View GitHub Profile
@deanet
deanet / google.sh
Created August 22, 2012 16:09
Uploading File into Google Drive (because grive too many dependencies qt, xorg ? )
#!/bin/bash
## uploading to google
## rev: 22 Aug 2012 16:07
det=`date +%F`
browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1"
username="[email protected]"
password="password"
accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE
@adammw
adammw / p7-hls.py
Last active March 23, 2016 07:34
Yahoo!7 Plus7 HLS URL Extractor
#!/usr/bin/env python
#
# Usage: p7-hls.py [-h] [--dump-json] [--list-renditions] [--bitrate BITRATE] URL
#
# To download the HLS stream using ffmpeg, use the following command:
# ffmpeg -i <URL> -acodec copy -vcodec copy -bsf:a aac_adtstoasc <OUTPUT_FILE>
#
import sys, os, re, argparse, urllib2, json
# Constants
@phoenixlzx
phoenixlzx / sniproxy.conf
Last active November 23, 2018 11:26
SNIProxy configuration
# sniproxy example configuration file
# lines that start with # are comments
# lines with only white space are ignored
user daemon
# PID file
pidfile /var/run/sniproxy.pid
resolver {
@Sofronio
Sofronio / ytb.sh
Last active January 16, 2019 21:24
ytb: Download YouTube video and upload to Baiduyun automaticly.
#!/bin/sh
#youtube-dl download and Baiduyun bypy auto upload
#Written by Sofronio
echo -n "youtube-dl start. Please input the youtube id\n"
read youtubeid
#set path as youtube-dl downlaod path
cd /root/y/
@spaze
spaze / opera-vpn.md
Last active August 25, 2024 11:20
Opera VPN behind the curtains is just a proxy, here's how it works

2023 update

ℹ️ Please note this research is from 2016 when Opera has first added their browser "VPN", even before the "Chinese deal" was closed. They have since introduced some real VPN apps but this below is not about them.

🕵️ Some folks also like to use this article to show a proof that the Opera browser is a spyware or that Opera sells all your data to 3rd parties or something like that. This article here doesn't say anything like that.


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.

@echo off
C:
cd msys64\home\win7\you-get
pyinstaller -F -i %~dp0\_you-get.ico --distpath=%~dp0\you-get ^
--path=src ^
--hidden-import=you_get.extractors ^
--hidden-import=you_get.cli_wrapper ^
--hidden-import=you_get.processor ^