Skip to content

Instantly share code, notes, and snippets.


Jan Tezner hansek

  • Prague, Czech Republic
View GitHub Profile
stormwild /
Last active Jun 22, 2021
VirtualBox clone fixed size vm to dynamic, resize dynamic vm, expand partition

While there is no way to actually switch a VDI between fixed-size and dynamic, you can clone the existing VDI into a new one with different settings with VBoxManage.

VBoxManage clonehd [old-VDI] [new-VDI] --variant Standard
VBoxManage clonehd [old-VDI] [new-VDI] --variant Fixed

If you want to expand the capacity of a VDI, you can do so with

fxsjy /
Created Apr 26, 2013
SimpleAuthServer: A SimpleHTTPServer with authentication
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import sys
import base64
key = ""
class AuthHandler(SimpleHTTPRequestHandler):
''' Main class to present webpages and authentication. '''
def do_HEAD(self):
Mark-H / a
Last active Apr 5, 2020
modCli; using MODX on the commandline.
View a


modCLI is a wrapper for the MODX Revolution Processors, allowing you to pretty much do anything from the commandline that you would normally do within the manager.

To use modCLI, simply download the modcli.php file and put it in the MODX_BASE_PATH of your installation. Next open up the console or terminal, and start firing some commands at it.


View responsive.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
bfncs / defaultTemplateByParentTv.plugin.php
Created Dec 13, 2011
Default Children Template by Parent TV - modX Revolution Plugin
View defaultTemplateByParentTv.plugin.php
* =========================
* defaultTemplateByParentTv
* =========================
* Plugin for modX Revolution
* Set default template for children of a ressource
* Author: