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
Host remote | |
HostName 1.1.1.1 | |
User root | |
Port 22 | |
IdentityFile ~/.ssh/IdentityFiles/remote.cer |
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
upload-to-remote: | |
tar zcf app.tar.gz ./*.js ./package.json ./app.config.cjs | |
scp app.tar.gz remote:/opt/app | |
ssh tencent "cd /opt/app; tar zxvf app.tar.gz; rm -f ./app.tar.gz" | |
rm -f app.tar.gz |
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
/** | |
* @typedef {Object} Env | |
*/ | |
export default { | |
/** | |
* @param {Request} request | |
* @param {Env} env | |
* @param {ExecutionContext} ctx | |
* @returns {Promise<Response>} |
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
[user] | |
name = Works | |
email = works@example.com |
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
FROM ubuntu:20.04 | |
RUN apt-get update && \ | |
apt-get install -y \ | |
wget git python3 python3-venv python3-pip && \ | |
python3 -m venv /opt/venv && \ | |
pip install psutil requests scons==4.4.0 && \ | |
apt-get clean | |
RUN cd /tmp && \ |
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
# /usr/local/Homebrew/Library/Taps/sanonz/homebrew-local-tap | |
brew tap-new $USER/local-tap | |
brew extract --version=6-2017-q2-update armmbed/formulae/arm-none-eabi-gcc $USER/local-tap | |
brew install $USER/local-tap/arm-none-eabi-gcc@6-2017-q2-update |
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
[General] | |
bypass-system = true | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com | |
tun-excluded-routes = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32 | |
dns-server = system | |
ipv6 = true | |
[Rule] |
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 axios from 'axios'; | |
const request = axios.create({ | |
baseURL: `https://hacker-news.firebaseio.com/`, | |
headers: { | |
'Accept': 'application/json', | |
'X-Requested-With': 'XMLHttpRequest', | |
}, | |
}); |