Note
Create and apply a file patch
Create a file patch with differences diff -Naur <original> <changed> > my-patch.patch Apply file patch patch -p1 < my-patch.patch
Note
Create a file patch with differences diff -Naur <original> <changed> > my-patch.patch Apply file patch patch -p1 < my-patch.patch
Note
Download Crosstool-NG 1.22.0 wget https://github.com/crosstool-ng/crosstool-ng/archive/crosstool-ng-1.22.0.tar.gz Unpack and change directory tar -zxf crosstool-ng-1.22.0.tar.gz && \ cd crosstool-ng-crosstool-ng-1.22.0 Bootstrap configuration and configure ./bootstrap && \ ./configure --prefix=/opt/crosstool-ng \ --with-sed=/opt/local/bin/gsed
Note
Trace all HTTP packets with destination port 80 ngrep -q -W byline -d <network interface> '' 'dst port 80'
Note
Calculate MD5 checksum md5sum <file> Calculate SHA-1 checksum shasum -a 1 <file> Calculate SHA-256 checksum shasum -a 256 <file>
Note
Kill all running containers docker kill $(docker ps -q) Remove all stopped containers docker rm $(docker ps -a -q) Remove all untagged images docker rmi -f $(docker images -q -f dangling=true) Remove all images docker rmi -f $(docker images -q)
Note
List and unmount disk sudo diskutil list sudo diskutil unmountDisk /dev/disk2 Backup SD card sudo dd if=/dev/rdisk2 of=./sd_card.img bs=4m Restore SD card sudo diskutil list sudo diskutil unmountDisk /dev/disk2 sudo dd if=./sd_card.img of=/dev/rdisk2 bs=4m
Note
Compress file (maximum compression ratio) XZ_OPT=-9e tar cJf file.tar.xz file Uncompress file (keep original file) tar xJfk file.tar.xz
Note
http://sijinjoseph.com/programmer-competency-matrix/
Note
1. Optimize for iteration speed. 2. Push relentlessly towards automation. 3. Build the right software abstractions. 4. Develop a focus on high quality code with code reviews. 5. Maintain a respectful work environment. 6. Build shared ownership of code. 7. Invest in automated testing. 8. Allot 20% time 9. Build
Note
* Awareness * Timing * Competency and Know-how * Desire * Mental toughness
Note
Startup culture requires you to take initiative, work on multiple projects at once, be assertive, innovative, creative and ready to handle change at any moment.