Skip to content

Instantly share code, notes, and snippets.

View karuturi's full-sized avatar

Rajani K karuturi

  • Hyderabad, India
View GitHub Profile
@brablc
brablc / TerminalVim.scpt
Last active December 24, 2016 01:30
Open Vim in Terminal (iTerm) from Finder - copied from http://thepugautomatic.com/2015/02/open-in-iterm-vim-from-finder/ and updated to open in the current terminal
on run {input, parameters}
set cmd to "vim -c startinsert"
if input is not in {} then
set myPath to POSIX path of input
set cmd to "vim " & quote & myPath & quote
end if
tell application "iTerm"
activate
set myTerm to (current terminal)
@eriweb
eriweb / templateupgrade.md
Last active August 17, 2017 17:47
Apache CloudStack 4.4 manually upgrading system vm template after upgrading or installing with 4.3 templates

If your system vm is not currently working you have to make it work. On XenServer you can do this by SSH'ing to it and upgrade java.

apt-get update && apt-get -y install openjdk-7-jre-headless openjdk-7-jre-lib && apt-get -y remove openjdk-6-jre-headless

and it should now work. In some rare cases you have to restart the cloud service

service cloud stop && sleep 3 && service cloud start

and in some even rarer cases you have to restart the ssvm. Do that from the Apache CloudStack UI.