Skip to content

Instantly share code, notes, and snippets.

import XenAPI
s=XenAPI.Session('http://localhost/')
s.login_with_password('root', 'password')
s.xenapi.VM.get_all()
Out[30]:
['OpaqueRef:fed9f387-359c-5e34-04b3-7e9de0271e9b',
'OpaqueRef:f21c711b-5de7-fb1f-5320-ea4b8fbbdac2',
...
'OpaqueRef:0032adf3-04d3-6cf7-94fe-9d06af09bec7']
set itermExists to false
try
tell application "Finder" to get application file id "com.googlecode.iterm2"
set itermExists to true
end try
set terminalScpt to path to resource "terminal.scpt" in directory "Scripts"
set itermScpt to path to resource "iterm.scpt" in directory "Scripts"
if itermExists then
@rtomaszewski
rtomaszewski / README.md
Created January 27, 2016 15:10 — forked from hofmannsven/README.md
My simply Git Cheatsheet
root@debian:~# cat rado.los
WARNING:
Some git sub-modules are out of date or modified, please consider runnning:
git submodule sync --recursive
git submodule update --init --recursive
You can ignore this warning if you are not compiling any ChibiOS keyboards,
or if you have modified the ChibiOS libraries yourself.
Making ergodox/ez with keymap rado