Install LXC:
apt-get install linux-hwe-generic # update to 3.13 on Precise
apt-add-repository ppa:ubuntu-lxc/stable
apt-get update
apt-get install lxc lxc-templates cgmanager cgroup-lite
reboot
| import { lazy } from 'react'; | |
| const lazyWithRetry = (componentImport) => | |
| lazy(async () => { | |
| const pageHasAlreadyBeenForceRefreshed = JSON.parse( | |
| window.localStorage.getItem( | |
| 'page-has-been-force-refreshed' | |
| ) || 'false' | |
| ); |
| from IPython.core.magic import Magics, magics_class, line_magic | |
| import asyncio | |
| @magics_class | |
| class AsyncMagics(Magics): | |
| @line_magic | |
| def await(self, line): | |
| return asyncio.get_event_loop().run_until_complete(eval(line, self.shell.user_global_ns, self.shell.user_ns)) |
| class DisableMigrations(object): | |
| def __contains__(self, item): | |
| return True | |
| def __getitem__(self, item): | |
| return "notmigrations" | |
| MIGRATION_MODULES = DisableMigrations() |
| REASSIGN OWNED BY old_role [, ...] TO new_role |
| // Select box utilizing Select2 functionality that overrides Ember.Select; | |
| // Define view in the same way that you would an Ember.Select view. | |
| // Additional attributes supported are: width, allowClear, and closeOnSelect; | |
| // Example view: | |
| // {{ view App.Select2 | |
| // viewName="fieldValueSelect2" | |
| // prompt="Please select a value list" | |
| // contentBinding="controller.fieldValuesLists" | |
| // optionLabelPath="content.name" | |
| // optionValuePath="content.id" |
| #!/usr/bin/env python | |
| import sys | |
| from random import random | |
| from time import sleep | |
| from threading import Thread, active_count | |
| execfile('gunicorn.conf.py') |