Git Cancel Local Commit

If you want to just cancel commit, you can use this script bellow : git reset HEAD~1 But if you want to cancel and discard all changes, you can add flag --hard, this flag will also make git discard all changes you made. git reset --hard HEAD~1 Source : . . . selengkapnya>>

Find All Files With Same Extension

find /etc -type f -name "*.conf" Source :   . . . selengkapnya>>

Ubuntu Find Real Mac Address of Bonded NICs

cat /proc/net/bonding/bondX where bondX is the name of your bonded interface, as: cat /proc/net/bonding/bond0 Source : . . . selengkapnya>>

Ubuntu 19.10 apport-gtk High Cpu Usage

This problem happen suddenly or at startup, apport-gtk using 100% cpu. This is could be ubuntu bug that could'nt parse crash file. To solve this, you can delete this crash file rm /var/crash/* source : . . . selengkapnya>>

Restore File And Folder Permission

sudo find /var/www/ -type d -exec chmod 755 {} \; sudo find /var/www/ -type f -exec chmod 644 {} \;   source : . . . selengkapnya>>