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
| tee /usr/local/demo.txt <<- 'EOF' | |
| xyz | |
| EOF | |
| docker run -d -p 5000:5000 --restart=always --name registry \ | |
| -v `pwd`/certs:/certs \ | |
| -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \ | |
| -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \ | |
| registry:2 | |
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
| dpkg -l | grep pkgname |
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
| ssh -p port user@ip | |
| scp -P port localfile user@ip:remotefile |
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
| git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 | |
| git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| https://help.github.com/articles/generating-ssh-keys/ |
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
| function Student(name) { | |
| this.name = name; | |
| } | |
| var a = new Student("x"); | |
| var b = new Student("y"); | |
| Student.name = "z"; | |
| console.log(a.name); | |
| console.log(b.name); |
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
| INSERT INTO moretv_bak SELECT * FROM moretv; | |
| SELECT * INTO moretv_bak FROM moretv; |
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
| USE siteData; | |
| WITH TEST AS | |
| ( | |
| SELECT ROW_NUMBER() | |
| OVER(PARTITION BY id ORDER BY ID ) | |
| AS NUM,* FROM moretv_bak | |
| ) | |
| DELETE FROM TEST | |
| WHERE NUM != 1 |
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
| 查看总的访问次数 | |
| cat itv-update.openspeech.cn.access.log | wc -l | |
| 查看访问的ip总数 | |
| cat itv-update.openspeech.cn.access.log | aw '{a[$1]+=1;}END{for(i in a){print i " >> "a[i];}}' | wc -l | |
| 按访问量大小排序所有的访问ip,并且答应出具体的ip 和访问次数 | |
| cat itv-update.openspeech.cn.access.log | awk '{a[$1]+=1;}END{for(i in a){print i " >> "a[i];}}' | sort -nr |
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
| 查看总的访问次数 | |
| cat itv-update.openspeech.cn.access.log | wc -l | |
| 查看访问的ip总数 | |
| cat itv-update.openspeech.cn.access.log | aw '{a[$1]+=1;}END{for(i in a){print i " >> "a[i];}}' | wc -l | |
| 按访问量大小排序所有的访问ip,并且答应出具体的ip 和访问次数 | |
| cat itv-update.openspeech.cn.access.log | awk '{a[$1]+=1;}END{for(i in a){print i " >> "a[i];}}' | sort -nr |
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
| 1. tasklist /fi "imagename eq cmd.exe" | |
| 查看cmd.exe这个进程 | |
| 2.taskkill /f /im cmd.exe /t | |
| 杀死cmd.exe这个进程 |
NewerOlder