In the words of the great Willie Wonka:
A little nonsense now and then is relished by the wisest men.
A collection of useful terminal commands:
// remove all node_modules from a folder
$ cat /proc/cpuinfo | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 78 | |
model name : Intel(R) Core(TM) m3-6Y30 CPU @ 0.90GHz | |
stepping : 3 | |
microcode : 0xba | |
cpu MHz : 600.011 | |
cache size : 4096 KB |
A collection of git tips and tricks. You can suggest more if you know anything else that might be useful that can be listed here.
Set configuration values for user name,email etc
$ git config --global user.name "Your Name"
const formatDate = (inputDate) => { | |
const date = new Date(inputDate); | |
if (!isNaN(date.getTime())) { | |
const day = date.getDate().toString(); | |
const month = (date.getMonth() + 1).toString(); | |
// Months use 0 index. | |
return (month[1] ? month : '0' + month[0]) + '/' + | |
(day[1] ? day : '0' + day[0]) + '/' + | |
date.getFullYear(); |