Skip to content

Instantly share code, notes, and snippets.

View Proper-Job's full-sized avatar

Moritz Pfeiffer Proper-Job

  • Basel, Switzerland
View GitHub Profile
@danni
danni / fields.py
Created March 8, 2016 08:52
Multi Choice Django Array Field
from django import forms
from django.contrib.postgres.fields import ArrayField
class ChoiceArrayField(ArrayField):
"""
A field that allows us to store an array of choices.
Uses Django 1.9's postgres ArrayField
and a MultipleChoiceField for its formfield.
@jniltinho
jniltinho / xenserver_create_jessie_template_64bit.sh
Last active September 7, 2018 23:18
Script to install a Debian Jessie 8.0 template on Xenserver 6.5
#!/bin/bash
## Script to install a Debian Jessie 8.0 template on Xenserver 6.5
## https://gist.github.com/hingstarne/5320400
# Add your favourite mirror here
MIRROR=http://ftp.us.debian.org/debian/
# No need to edit something below