path: .local/share/application
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
| status=$(ssh -o BatchMode=yes -o ConnectTimeout=5 ubuntu@192.168.0.169 echo ok 2>&1) | |
| if authored => ok | |
| if notAuthored => permission denied |
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
| nmap -p 80 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
| 或者在管理员权限的cmd里打这句命令: | |
| netsh advfirewall firewall add rule name="SecurityGateMaster_PortOpen" protocol=TCP dir=in localport=8080,9999,3306,9910,21200,21500 action=allow |
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
| find . -name "*.orig" -delete |
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
| mount -t nfs $ip:/mnt/SHEC0001 /share -o nolock |
firstly, RestTemplate and HttpCient don't operate the same abstraction level.
HttpClient is a general-purpose lib to communicate using HTTP, but RestTemplate is a highter-level abstraction, dealing with Jons/xml transformation of entities. RestTemplate delegates to a ClientHttpFactory , and one of the implementations of this interface uses HttpClient.
$ sudo adduser git
$ su git
$ cd
$ mkdir .ssh && chmod 700 .ssh
$ touch .ssh/authorized_keys && chmod 600 .ssh/authorized_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
| $ sudo locale-gen zh_CN.UTF-8 | |
| $ vi ~/.bashrc | |
| ``` | |
| export LANG=en_US.UTF-8 | |
| export LANGUAGE= | |
| export LC_CTYPE="en_US.UTF-8" | |
| export LC_NUMERIC=zh_CN.UTF-8 | |
| export LC_TIME=zh_CN.UTF-8 |