Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
- Caddyfile
- config.json
- docker-compose.yml
Client side contents:
| #include<iostream> | |
| using namespace std; |
Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
Client side contents:
| #!/bin/sh | |
| # Usage: gdrive_download 123-abc ./output.zip | |
| function gdrive_download () { | |
| CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://drive.google.com/uc?export=download&id=$1" -O- | sed -En 's/.*confirm=([0-9A-Za-z_]+).*/\1/p') | |
| wget --load-cookies /tmp/cookies.txt "https://drive.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2 | |
| rm -f /tmp/cookies.txt | |
| } |
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
| import requests | |
| from bs4 import BeautifulSoup | |
| import re | |
| from random import randint | |
| from time import sleep | |
| import json | |
| # https://curlconverter.com/ | |
| # https://bj.lianjia.com/chengjiao/ | |
| cookies = { |