Skip to content

Instantly share code, notes, and snippets.

@chrisv2
chrisv2 / gist:3844597
Created Oct 6, 2012
BootstrapRow for django-crispy-forms
View gist:3844597
class BootstrapRow(layout.Div):
"""
Puts form fields into bootstrap grid rows.
Usage:
======
Add fields by adding a tuple (field, columns) for each field (see example)
Example:
========
@chrisv2
chrisv2 / froxmerge.php
Last active Aug 29, 2015
merge two Froxlor databases into one
View froxmerge.php
#!/usr/bin/php
<?php
/**
* merge the customers and domains from two or more Froxlor databases into a new one.
*
* Prerequisites:
* 1.) all admins must exist in the dest database with the same loginname,
* we rewrite admin ids, but do not create/transfer admins
*