Skip to content

Instantly share code, notes, and snippets.

View sundarsrd's full-sized avatar
👣
Practicing...

Sivaramasundar D sundarsrd

👣
Practicing...
View GitHub Profile
@sundarsrd
sundarsrd / mac.customization.md
Last active July 7, 2019 12:41
Jazzing Up Mac Terminal with iTerm2
@sundarsrd
sundarsrd / docker-machine-default-machine-does-not-exist.md
Created September 3, 2018 08:06
default docker-machine in indeterminate state - error 'machine does not exist'

Sometimes the default docker-machine (default.vbox under .docker\machine\machines\default folder) could error out with an error like "machine does not exist".

A simpler way to resolve this situation is to look for "default.vbox.*" files in the same folder.
You'd most probably find files like - default.vbox.new or default.vbox-prev or default.vbox-tmp
if there's a "default.vbox.tmp" make a copy of it and rename it to "default.vbox"!

That's it.
You've restored the default vm successfully!
Have fun.

@sundarsrd
sundarsrd / export-plantuml-sources-from-image.md
Created August 20, 2018 06:28
Export plantuml sources from image
java -jar plantuml.jar -metadata image.png

Extract the source plantuml text from the plantuml diagram. This is a super cool feature as you just need to save the diagram & not worry about archiving the sources!

@sundarsrd
sundarsrd / plantuml.pdf.export.fix.md
Last active May 24, 2018 06:42
Plantuml PDF export error & fix

Follow instructions from http://plantuml.com/pdf to generate PDF output from plantuml.

java -jar plantuml.jar -tpdf <filename>

in short, a bunch of dependent jar files need to be copied to the same path as of plantuml.jar the dependencies can be downloaded from here

Default docker-machine is not created during the installation and docker doesn't run;

docker-machine create --driver virtualbox dev

followed by 

docker-machcine env dev

' (https://stackoverflow.com/a/14510117/108621 - help to fix error when using %i instead of %%i)
@sundarsrd
sundarsrd / virtualbox_hyper-v_error.md
Created April 26, 2018 11:38
Hyper-V Errors during virtual box startup

Hyper-V Error during VM startup

VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

Windows hypervisor config. might be breaking other hypervisors (!@#!?!)

To fix this, disable hypervisor during boot time - using bcdedit as in this link.

@sundarsrd
sundarsrd / virtualbox_vt-x_error.md
Last active April 26, 2018 11:24
VirtualBox VM Errors related to HyperV

VT-X Error during VM startup

VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)  
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole  

It so happens when you add an existing VM, you'd get this error - thanks to virtualization capability settings in different machines. Other possbile reasons are discussed here in depth - https://forums.virtualbox.org/viewtopic.php?f=6&t=58820