How to remove the ^M return character on Linux
dos2unix -n oldfile.txt newfile.txt or if the error is within a script: sed -i -e 's/\r$//' your-script.sh Executing a shell script, might end with /bin/bash^M: bad interpreter: No…
dos2unix -n oldfile.txt newfile.txt or if the error is within a script: sed -i -e 's/\r$//' your-script.sh Executing a shell script, might end with /bin/bash^M: bad interpreter: No…
A very philosophical question, this one. I see modern those languages that were not there a couple/few years ago. Definitely java is seen as the older, more enterprisey…
When you have .ovf file from VMWare and get the following message: “Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line…
I came across to a great HTML Presentation Framework: reveal.js, which is a framework used to create stunning presentations using either a visual editor or simple text. https://github.com/hakimel/reveal.js/…
The command: grep -Fxvf file1 file2 -F, –fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. -x, –line-regexp…
Quit Google Drive Go to /Applications/Google Drive.app/Contents/Resources swap png icons mac-normal and mac-normal-inverse restart Google Drive
An easy way is to create a copy of SystemVersion.plist from /System/Library/CoreServices/ into your desktop. change <key>ProductVersion</key> <string>10.10</string> to <key>ProductVersion</key> <string>10.9.4</string> put back the file to CoreServices and…
Apple introduced a nice feature: http://www.washingtonpost.com/blogs/the-switch/wp/2014/10/20/apples-mac-computers-can-automatically-collect-your-location-information/ In short: every single local search in spotlight is sent to Cupertino. That includes of course search for a file, person, company,…
Fields are declared outside of a class’s methods and are usually found right below the class declaration. Fields can be accessed by all methods of a class. They…
The below command will resize the image to 50GB VBoxManage clonehd "source.vmdk" "cloned.vdi" –format vdi VBoxManage modifyhd "cloned.vdi" –resize 51200 VBoxManage clonehd "cloned.vdi" "resized.vmdk" –format vmdk