Techy Things

Git log with full diff 0

Git log with full diff

Git log full-text with search git log -p | grep <SEARCH_STRING> Git log of a single file $> git log -p --follow <PATH/FILENAME> Git log of a single commit todo Git diff between two branches...

How to install gcc-4.X on Mac OSX 10.7.X 0

How to install gcc-4.X on Mac OSX 10.7.X

1. Uninstall MacPort $> sudo port -fp uninstall installed --https://guide.macports.org/chunked/installing.macports.uninstalling.html This is needed to install some package with Brew - Qt for example. Otherwise you will get this error : ==> make 1 error...

error: libudev.h: No such file or directory 0

error: libudev.h: No such file or directory

Problem: error: libudev.h: No such file or directory Solution: $> sudo yum install libudev-devel Another related error : /usr/bin/ld: skipping incompatible /usr/lib64/libudev.so when searching for -ludev /usr/bin/ld: cannot find -ludev collect2: ld returned 1...

Singleton pattern in RequireJS 0

Singleton pattern in RequireJS

Yes this is possible and has its advantage. I use it often for Toolbox-like functions. This is the basic approach define(function (require) { var singleton = function () { return { ... }; };...

Create a ISPConfig server with mail MX support 0

Create a ISPConfig server with mail MX support

() Follow official doc () Make sure you have the right root email before you activate email so you dont spam the wrong inbox : echo "myhostname.com" > /etc/mailname /etc/init.d/postfix restart Troubleshooting If you...