Skip to content

Instantly share code, notes, and snippets.

View syaiful9507's full-sized avatar
:accessibility:

Syaiful syaiful9507

:accessibility:
  • DKI Jakarta
View GitHub Profile
@syaiful9507
syaiful9507 / PB.txt
Last active July 8, 2018 09:11
full remove phpmyadmin
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
@syaiful9507
syaiful9507 / logs.cs
Created July 8, 2018 10:37
Video call problem
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
@syaiful9507
syaiful9507 / k2r84y.cs
Created July 8, 2018 10:58
Error on logs for appname "Salammessenger"
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 │
├────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ SalamMessenger │ 1 │ fork │ 15959 │ online │ 15 │ 0s │ 0% │ 3.5 MB │ root │ disabled │
│ WhatsClone │ 0 │ fork │ 10499 │ online │ 0 │ 96m │ 0% │ 35.4 MB │ root │ disabled │
└────────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
@syaiful9507
syaiful9507 / imacros.cs
Created October 11, 2018 16:31
Auto follow and unfollow
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
wait seconds=20
@syaiful9507
syaiful9507 / Polimorfism java
Last active November 27, 2018 23:04
Deskription
see image description https://github.com/syaiful9507/Images/blob/master/IMG_20181125_113107.jpg
Employee Andre = new Manager();
Employee Edi = new Programmer();
andre.Bekerja();
@Apabila methode dipanggil oleh object andre maka yang terpanggil metode tersebut adalah methode Overriding di class Manager .
@hal yang sama terjadi pada object edi . lihat gambar.
Penjelasan :
Apakah Abstract Class --->
Abstract Class adalah class yang mempunyai setidaknya satu Abstract Method.
Apakah Abstract Method --->
Abstract Method adalah method yang tidak memiliki body hanya deklarasi method.
Contoh Abtract class dan Abstract Method :
public abstract class Parent { ---> ini class abstract
@syaiful9507
syaiful9507 / Prefix_HLR_bogor.log
Last active November 28, 2018 10:54
Daftar Prefix HLR untuk bogor
0815461 Bogor Mentari / Matrix INDOSAT
081563 Bogor Mentari / Matrix INDOSAT
081663 Bogor Mentari / Matrix INDOSAT
0816640 Bogor Mentari / Matrix INDOSAT
0816641 Bogor Mentari / Matrix INDOSAT
@syaiful9507
syaiful9507 / bootstrap-card-tile-layout.markdown
Created February 28, 2023 04:16
Bootstrap card tile layout