-
Install the the
shadowsocks-libevpackage from apt repository.sudo apt update sudo apt install shadowsocks-libev -
Save
ss.jsonas/etc/shadowsocks-libev/config.json.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| # For Ubuntu 18.04 | |
| # How to launch: | |
| # $ curl https://gist.githubusercontent.com/whoizit/5d29de6161270c7eb20c079add6019d2/raw/ss+v2ray+cf-wss+ubuntu.sh | |
| # $ sh ss+v2ray+cf-wss+ubuntu.sh | |
| [ ${EUID:-$(id -u)} -eq 0 ] && { | |
| echo "This script must NOT be run as root" | |
| exit | |
| } |
Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ssl | |
| import socket | |
| # This script simply replays one side of an intercepted conversation between two Xiaomi | |
| # RB01 (International) AX3200 routers negotiating meshing. | |
| # In effect the script poses as a mesh slave, which causes the mesh master to enable netmode4. | |
| # Enabling netmode is needed as one step in unlocking the router and flashing OpenWrt. | |
| # The router should already have been taken through basic set-up before running this script. | |
| # Netmode4 can be confirmed with curl by requesting the following URL, where ${token} is the "stok" | |
| # variable from your admin session: |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"