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
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
CONF="/etc/snell/snell-server.conf" | |
SYSTEMD="/etc/systemd/system/snell.service" | |
yum install unzip -y | |
cd ~/ | |
wget --no-check-certificate -O snell.zip https://github.com/surge-networks/snell/releases/download/v1.1.1/snell-server-v1.1.1-linux-amd64.zip | |
unzip -o snell.zip | |
rm -f snell.zip |
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
g: aliased to git | |
gca: aliased to git commit -v -a | |
gc: aliased to git commit -v | |
ga: aliased to git add | |
gm: aliased to git merge | |
gl: aliased to git pull | |
gp: aliased to git push | |
gr: aliased to git remote | |
gf: aliased to git fetch | |
gg: aliased to git gui citool |
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
#!/usr/bin/env bash | |
# | |
# Replace below arguments before use | |
# OSS_ACCESS_KEY_ID 、OSS_ACCESS_KEY_SECRET、BUCKET、ENDPOINT、DIRECTORY | |
# | |
# This example will upload file to hangzhou Aliyun object stroage system | |
# Usage: ./oss.sh test.sh | |
# | |
echo "upload file $1" |
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
/** | |
* Usage : | |
* | |
* node > 12.13 | |
* | |
* npm install pinyin request | |
* | |
* export SSR_URL=xxxxx | |
* | |
* node surge.js |
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
001 (1).jpg,111.jpg | |
001 (2).jpg,ddsg.jpg | |
001 (3).jpg,腊.jpg |
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
{ | |
"version":"0.3.0", | |
"configurations":[ | |
{ | |
"name": "Websocket-debug", | |
"type": "node", | |
"request": "launch", | |
"args": ["${workspaceRoot}/server/websocket/src/index.ts"], | |
"runtimeArgs": ["-r", "ts-node/register"], | |
"cwd": "${workspaceRoot}", |
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
/**simluate click in react */ | |
function simulateClick(element) { | |
if (element instanceof jQuery) { | |
element = element[0] | |
} | |
const mouseClickEvents = ['mousedown', 'click', 'mouseup'] | |
console.log('[spirit] simulate click:', element) | |
mouseClickEvents.forEach(mouseEventType => | |
element.dispatchEvent( | |
new MouseEvent(mouseEventType, { |