javascript: document.body.setAttribute( "style", "-webkit-transform: rotate(-90deg);");
paste into JS console: Ctrl-Shift-C -> "Console" from top menu
""" | |
Original Location: http://www.robotics.net/wp-content/uploads/xenmigrate.py | |
Quote from the Documentation: http://www.robotics.net/2009/06/06/converting-citrix-xva-to-xenorg-img/ : | |
'The file formats of the commercial and open source Xen are totally different. | |
The open source is a standard image file, you can mount it, fdisk it, whatever you would like. | |
The Citrix Xen Virtual Appliance .XVA file is quite different. It is actually a tar file | |
with ova.xml meta data and directories starting with Ref full of 1M files that make up the | |
rive volumes of the virtual image. |
1) Download nssm from http://nssm.cc/download/?page=download and extract nssm.exe, for example to %windir%\system32\ | |
2) Install your service: | |
nssm.exe install my-node-service c:\programs\nodejes\node.exe c:\my\server.js | |
3) Start it using net start: | |
net start my-node-service |
Create a Desktop folder and name it: | |
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} | |
A list of other commands that also create special folders: | |
{00C6D95F-329C-409a-81D7-C46C66EA7F33} | |
{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428} | |
{025A5937-A6BE-4686-A844-36FE4BEC8B6D} | |
{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} |
# Visualizing branch topology in git on the commandline | |
git log --graph --oneline --full-history --all | |
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s" | |
# With colors in Bash: | |
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" |
#!/usr/bin/perl -wp | |
# clean up control characters and other non-text detritus that shows up | |
# when you run the "script" command. | |
# From http://impson.tzo.com/~jdimpson/bin/script-declutter | |
# Copyright Jeremy Impson - http://impson.tzo.com/~jdimpson/ | |
# Also see http://jdimpson.livejournal.com/7040.html | |
BEGIN { |
# recipe-137951-1.py | |
# from http://code.activestate.com/recipes/137951-dump-all-the-attributes-of-an-object/ | |
# created by (C) Philip Kromer http://code.activestate.com/recipes/users/552075/ | |
# forked as https://gist.github.com/1291055 | |
# licence = psf http://code.activestate.com/recipes/tags/meta:license=psf/ | |
# On python attributes and methods read: http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html | |
from cStringIO import StringIO | |
import sys |
#!/usr/bin/env bash | |
# gist at https://gist.github.com/miebach/7391024 | |
# save this file to .git/hooks/post-checkout | |
# and also to .git/hooks/post-merge | |
# and make it executable | |
# Delete .pyc files and empty directories from root of project | |
cd ./$(git rev-parse --show-cdup) |
diff -r 961ac99baa29 couchdb/client.py | |
--- a/couchdb/client.py Sun Aug 18 18:41:46 2013 +0200 | |
+++ b/couchdb/client.py Fri Jan 17 11:03:56 2014 +0100 | |
@@ -13,9 +13,9 @@ | |
>>> doc_id, doc_rev = db.save({'type': 'Person', 'name': 'John Doe'}) | |
>>> doc = db[doc_id] | |
>>> doc['type'] | |
-'Person' | |
+u'Person' | |
>>> doc['name'] |