Skip to content

Instantly share code, notes, and snippets.

@xmeng1
xmeng1 / Linux-tip.sh
Last active February 22, 2017 10:42
Linux command configuration record
# cope date to clipboard which can be used for ctrl+v
date | xclip -selection clipboard
# filter port
sudo netstat -nlp | grep 443
# start/stop/restart service
sudo systemctl start nginx.service
sudo systemctl restart nginx.service
sudo systemctl stop nginx.service
sudo systemctl status nginx.service
@xmeng1
xmeng1 / voice.xml
Last active February 3, 2017 17:59
xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice" >Hello, {{Name}}.Your one time password is {{Code}}</Say>
</Response>
@xmeng1
xmeng1 / startup.sh
Last active January 24, 2017 14:40
Linux commands
#!/bin/bash
# kill 443 VMWARE
sudo fuser -k -n tcp 443
# start the nginx service
sudo systemctl start nginx.service
# alias startup="sudo sh ~/Dropbox/Deepnet/2_Linux/startup_script.sh"
echo "alias startup='sudo sh ~/Dropbox/Deepnet/2_Linux/startup_script.sh'" >> ~/.bashrc
source ~/.bashrc