Instantly share code, notes, and snippets.

View imacros.cs
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
wait seconds=20
View k2r84y.cs
root@vps457803:~# pm2 start /var/www/html/api/node_app/app.js -n "SalamMessenger"
[PM2] Applying action restartProcessId on app [SalamMessenger](ids: 1)
[PM2] [SalamMessenger](1) ✓
[PM2] Process successfully started
┌────────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
├────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
SalamMessenger1 │ fork │ 15959 │ online │ 15 │ 0s │ 0% │ 3.5 MB │ root │ disabled │
WhatsClone0 │ fork │ 10499 │ online │ 0 │ 96m │ 0% │ 35.4 MB │ root │ disabled │
└────────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
View logs.cs
root@vps457803:~# pm2 logs
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/root/.pm2/pm2.log last 15 lines:
PM2 | [2018-07-08T05:18:43.434Z] PM2 log: Time : Sun Jul 08 2018 05:18:43 GMT-0400 (EDT)
PM2 | [2018-07-08T05:18:43.435Z] PM2 log: PM2 version : 3.0.0
PM2 | [2018-07-08T05:18:43.435Z] PM2 log: Node.js version : 6.14.3
PM2 | [2018-07-08T05:18:43.435Z] PM2 log: Current arch : x64
PM2 | [2018-07-08T05:18:43.435Z] PM2 log: PM2 home : /root/.pm2
PM2 | [2018-07-08T05:18:43.435Z] PM2 log: PM2 PID file : /root/.pm2/pm2.pid
PM2 | [2018-07-08T05:18:43.435Z] PM2 log: RPC socket file : /root/.pm2/rpc.sock
View PB.txt
sudo dpkg -P phpmyadmin
sudo rm -f /etc/apache2/conf.d/phpmyadmin.conf
sudo service apache2 restart
source https://stackoverflow.com/questions/5050296/completely-removing-phpmyadmin