-
create github private repo
-
create vercel.json in the private repo:
{ "builds":[{"src": "/api/*.php", "use": "[email protected]"}, {"src": "/api/*.go", "use": "@vercel/go"},
{"src": "**/*.ico", "use": "@vercel/static"},
create github private repo
create vercel.json in the private repo:
{
"builds":[{"src": "/api/*.php", "use": "[email protected]"},
{"src": "/api/*.go", "use": "@vercel/go"},
{"src": "**/*.ico", "use": "@vercel/static"},
# 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 |
===============clean gist history===================== | |
git clone https://gist.github.com/diyism/cbc0...... | |
cd cbc0* | |
git config --global core.editor "/usr/bin/sublime -n -w" | |
git rebase -i --root | |
#replace all "pick"(except the first line) into "squash" | |
#save and exit | |
#write comment | |
git push -f | |
git log --oneline |
============================x64 debian===================================== | |
#redroid is easier than waydroid: https://github.com/remote-android/redroid-doc/issues/407 | |
docker run -itd --rm --privileged -v ~/data:/data -p 5555:5555 teddynight/redroid:latest ... ro.dalvik.vm.native.bridge=libhoudini.so | |
#https://hub.docker.com/r/teddynight/redroid | |
#adb connect localhost #20 seconds after docker run | |
#scrcpy -s localhost --audio-codec=aac --audio-encoder='OMX.google.aac.encoder' | |
#it seems only one redroid container can run correctly, so first "sudo docker stop <redroid 14 container>" then "sudo docker run <teddynight 11 container>" | |
#or else the adb/scrcpy won't connect it, even if the 2 containers listen on 2 differenct ports(one 5555, another 5556) | |
# upgrade kali linux kernel from 5.7 to 5.9+(download from: http://old.kali.org/kali/pool/main/l/linux/) |
===================================vosk======================================= | |
vosk-android-demo: | |
https://github.com/alphacep/vosk-android-demo | |
trainning: | |
https://alphacephei.com/vosk/lm | |
chinese model: | |
https://github.com/alphacep/vosk-api/issues/318 | |
all models: |
#############################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 |
//@version=4 | |
study("ema of velocity") | |
v1=pow(ohlc4*100-ohlc4[1]*100, 2) | |
delta=(v1>7000?7000:v1)*(ohlc4>ohlc4[1]?1:-1) | |
//delta=ohlc4*100-ohlc4[1]*100 | |
//phi^16 minutes is the macro line, phi^13 minutes is the meso line, phi^10 minutes is the micro line | |
ema4delta=security(syminfo.tickerid, "1", ema(delta, round(pow(1.618034, 10))))*10 | |
ema2ema=security(syminfo.tickerid, "1", ema(ema4delta, round(pow(1.618034, 10)))) |
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
// © diyism | |
//@version=4 | |
study("stdev of ema10,13,15") | |
ema10=security(syminfo.tickerid, "1", ema(close, round(pow(1.618034, 10)))) | |
ema13=security(syminfo.tickerid, "1", ema(close, round(pow(1.618034, 13)))) | |
ema15=security(syminfo.tickerid, "1", ema(close, round(pow(1.618034, 15)))) | |
ema17=security(syminfo.tickerid, "5", ema(close, round(pow(1.618034, 17)/5))) |
vist https://github.com/jedisct1/doh-server/releases | |
download doh-proxy.deb and then: | |
$ sudo gdebi doh-proxy.deb | |
$ sudo doh-proxy -l 0.0.0.0:443 -u 127.0.0.1:53 -I /home/.../mydnsserver.com/private.key.pem -i /home/.../mydnsserver.com/domain.cert.pem | |
resolve mydnsserver.com to my vps's IP on my domain service provider's website | |
$ git clone https://github.com/curl/doh.git | |
$ cd doh | |
$ make && sudo make install |
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): |