This file contains 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
#go to https://shell.cloud.google.com/ | |
#in Terminal(bottom half page) or Cloud Shell tab in IDE(top half page): | |
wget https://pkgs.tailscale.com/stable/tailscale_1.30.2_amd64.tgz | |
tar zxvf tailscale_1.30.2_amd64.tgz | |
mkdir tailscale | |
cp tailscale_1.30.2_amd64/tailscale* tailscale/ | |
rm -rf tailscale_1.30.2_amd64* | |
#in fact, google cloud shell using debian 10, we can use apt: |
This file contains 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
# don't use cloudflared-linux-arm64, will happen error to use /etc/resolv.conf which doesn't exist in android | |
// wget https://github.com/cloudflare/cloudflared/releases/download/2022.4.1/cloudflared-linux-arm64 | |
$ wget https://github.com/diyism/TermuxXserver/releases/download/test/termux-cloudflared | |
$ install termux-cloudflared /data/data/com.termux/files/usr/bin/cloudflared | |
$ cloudflared tunnel login #it will auto open android browser from termux, generate ~/.cloudflared/cert.pem | |
$ cloudflared tunnel create www1 #generate ~/.cloudflared/<tunnel id>.json, include tunnel secret | |
$ cloudflared tunnel route dns www1 www1.mysite.com #add dns record in dns server | |
$ nano ~/.cloudflared/www1.yml |
This file contains 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
1. login twitter and visit https://twitter.com/settings/download_your_data | |
click "Request archive" button, input password and let twitter to prepare data for you | |
2. wait for few days | |
3. visit https://twitter.com/settings/your_twitter_data/data | |
Right click "Download archive" button, click "Copy Link" to get the url: https://ton.twitter.com/i/ton/data/archives/<uid>/twitter-2021-04-14-.....zip | |
open a new tab, paste the https://ton.twitter.com/... url, click enter, start download cancel it, while "Firefox Developer" open, and click cancel download, the "Firefox Developer/Network" will show the failed url. | |
click "Download archive" in the download page and keep this download running(downloading session maintain), | |
firefox "Web Develope/Network/Mouse Right Click an item/Copy/Copy as cURL" can get a curl command line(with cookie/session id etc), | |
append " -LOC -" at its end. (break resume) | |
4. run the curl command in your vps(google colab or github codespace or huggingface docker jupyterlab) to get the twitter-...zip f |
This file contains 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
1.买来手机进入miui设置里把OEM unlocking和Mi unlock status都解开(需要绑定小米帐号, 可能需要在Settings下第一行退出小米帐号再登录一次), | |
然后linux下用xiaomitool解锁(https://www.xiaomitool.com/V2/#download): | |
用usb线连接手机, developer里enable debug | |
(先my device/all specs/miui version点7次, 而mi pad 5先升级miui 14再my device/detailed info/miui version点7次), | |
允许该电脑debug, 选择File Transfer模式 | |
sudo ./XMT2_Linux_20.7.28.run | |
按提示需要等待7天后再试 | |
似乎xiaomitoolv2也失效了, 报missing token cookie, 使用github最新代码: | |
git clone https://github.com/francescotescari/XiaoMiToolV2 |
This file contains 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
0.In my 0th vps (for example Oracle Cloud free tier VPS, ubuntu 20.04, it allow me to create 2 free vps servers): | |
#sudo apt install tailscale(ref: https://tailscale.com/kb/1039/install-ubuntu-2004/) | |
wget https://pkgs.tailscale.com/stable/tailscale_1.38.4_amd64.tgz | |
tar zxvf tailscale_1.38.4_amd64.tgz | |
sudo cp tailscale_1.38.4_amd64/tailscale* /usr/bin/ | |
rm -rf tailscale_1.38.4_amd64* | |
sudo tailscale up //copy the showed url and authorize google sign-in in the web browser | |
ip addr show tailscale0 //for example: 100.71.153.9 | |
1. In my 1st vps(in china, for example my linux PC in my home): |
This file contains 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
#############################ipynb START############################################### | |
#################### the 1st step after factory reset VM runtime | |
!apt update ; apt install openssh-server | |
!echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config | |
!mkdir /root/.ssh | |
!echo 'ssh-rsa .....' >/root/.ssh/authorized_keys | |
!service ssh start | |
from google.colab import drive |
This file contains 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
sudo add-apt-repository ppa:morphis/anbox-support | |
sudo apt update | |
sudo apt install linux-headers-generic anbox-modules-dkms | |
sudo modprobe ashmem_linux | |
sudo modprobe binder_linux | |
sudo snap install --devmode --beta anbox | |
curl https://github.com/geeks-r-us/anbox-playstore-installer/raw/master/install-playstore.sh | sudo bash | |
#install-playstore.sh has put needed files into /var/snap/anbox/common, so need no following 7 lines: | |
#sudo snap stop anbox.container-manager |
This file contains 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
rclone.conf: | |
[blomp] | |
type = swift | |
user = i@gmail.com | |
key = 123456 | |
auth = https://authenticate.blomp.com | |
tenant = storage | |
auth_version = 2 | |
no_chunk = true |
This file contains 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
curl https://rclone.org/install.sh | sudo bash | |
装最新版rclone支持storj的150GB免费空间(apt里版本太旧不支持storj), | |
本地上传/下载到storj us带宽大概0.8MB/s, | |
而在VPS里玩能到8MB/s, | |
用"rclone rcd --rc-web-gui"能启动网页版管理界面, | |
觉得可作为VPS的扩展盘使用, | |
可惜没集成player,folder comparer | |
https://docs.storj.io/dcs/how-tos/sync-files-with-rclone/rclone-with-native-integration/ |
This file contains 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
============================x64 debian===================================== | |
# upgrade kali linux kernel from 5.7 to 5.9+(download from: http://old.kali.org/kali/pool/main/l/linux/) | |
# sudo apt install linux-image-6.3.0-kali1-amd64 | |
# in live iso: sudo /usr/sbin/update-initramfs.orig.initramfs-tools -c -k 6.3.0-kali1-amd64 | |
$ sudo dpkg -i linux-image-5.9.0-kali1-amd64_5.9.1-1kali2_amd64 | |
# install header file(download from: https://http.kali.org/kali/pool/main/l/linux/): | |
$ sudo dpkg -i linux-kbuild-5.9_5.9.1-1kali2_amd64.deb linux-headers-5.9.0-kali1-common_5.9.1-1kali2_all.deb linux-headers-5.9.0-kali1-amd64_5.9.1-1kali2_amd64.deb | |
$ git clone https://github.com/diyism/anbox-modules.git | |
$ cd anbox-modules | |
$ sudo ./INSTALL.sh |
NewerOlder