Readd keys for remote deploying
ssh-add
ssh-add ~/.ssh/deployer
ssh-add ~/.ssh/clhq_tuananh_rsa
~/Library/Developer/Xcode
du -sh *
df -h
du -sh -- */ | sort -rh
ngrok http -host-header=rewrite localhost:3001
NODE_ENV=production ./bin/webpack --progress --config config/webpack/production.js
df
lsof -t -i tcp:8000 | xargs kill
lsof -t -i tcp:80 | xargs kill
Export PEM file in correct way https://stackoverflow.com/questions/21250510/generate-pem-file-used-to-setup-apple-push-notification
git reset --hard HEAD
Import MySQL file
mysql -u username -p database_name < file.sql
Sometime we need to clean GIT
git rm --cached -r .
git reset --hard
Switch from HTTPS to GIT
git remote set-url origin [email protected]:anhphamt.la/git-url.git
Empty nginx log files It should be done when logging in with root
cat /dev/null > error.log
VestaCP commands
systemctl restart nginx
apachectl restart
php ini in /etc/php.ini
upload_max_filesize=256M
post_max_size=256M
grep -R hello /home
brew install libevent
brew install autoconf
brew install libmemcached
- Download the PHP version you are using and past it to:
cd /Applications/MAMP/bin/php/php5.6.7/include/php
- Configure the source with
/Applications/MAMP/bin/php/php5.6.7/include/php/configure
//go to
cd /Applications/MAMP/bin/php/php5.6.7/bin
//compile memcached
./pecl install memcached
//go back
cd ../
//Add the memcached.so extension to your php.ini file
echo -e "\n[memcached]\nextension=memcached.so" >> conf/php.ini
//start memcached server
memcached -m 24 -p 11211 -d
//restart MAMPP and thats it!
sudo find . -type f -exec chmod 0644 {} \;
sudo find . -type d -exec chmod 0755 {} \;
ssh -i "Gustavo.pem" [email protected]
sudo -i
cd /var/lib/jenkins/workspace/satterley-prod
/usr/local/bin/eb deploy
https://devcenter.heroku.com/articles/git#tracking-your-app-in-git
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries
gem install libxml-ruby -v '3.0.0' -- --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xml2-dir=/usr/local/opt/libxml2 --with-xml2-lib=/usr/local/opt/libxml2/lib --with-xml2-include=/usr/local/opt/libxml2/include
sudo certbot -d pav.testbox.com.au --nginx-ctl /etc/nginx/sbin/nginx
Restart PHP 7.3 Mojave
brew services restart [email protected]
Reload Source Bash
source ~/.bashrc
Clean Old Simulator Device
xcrun simctl delete unavailable
Clean Docker Volumns
docker system prune -a --volumes