vim ~/.bash_profile
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
vim ~/.ssh/config
Host *
UseKeychain yes
xcrun simctl install booted ~/test.app
sudo vim /lib/systemd/system/website.service
[Unit]
Description=test
After=network.target
[Service]
Type=simple
WorkingDirectory=/var/www/website
User=www-data
Group=www-data
Environment=PORT=8088
ExecStart=/usr/bin/npm start --production
//~/auto_update.php
ini_set('date.timezone','PRC');
function checkNetwork(){
$hostname = 'git.example.com';
$ip = gethostbyname($hostname);
if(!$ip || $ip === $hostname) {
return false;
} else {
return true;
}
}
function