This guide assumes a fresh install of Mac OSX 10.7 Lion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-*- coding: utf-8 -*- | |
| import urlparse | |
| from django.contrib.auth import REDIRECT_FIELD_NAME, login | |
| from django.contrib.auth.forms import AuthenticationForm | |
| from django.http import HttpResponseRedirect | |
| from django.utils.decorators import method_decorator | |
| from django.views.decorators.cache import never_cache | |
| from django.views.decorators.csrf import csrf_protect | |
| from django.views.generic.edit import FormView | |
| from django.conf import settings |
UPDATE: The instructions here are no longer necessary! Resizing the disk image is now possible right from the UI since Docker for Mac Version 17.12.0-ce-mac49 (21995).
If you are getting the error: No space left on device
Configuring the qcow2 size cap is possible in the current versions:
# my disk is currently 64GiB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find /var/lib/docker/containers/ -type f -name "*.log" -delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
| <script type="text/javascript"> | |
| google.load("maps", "3.x", {callback: initialize, other_params:'sensor=false&libraries=places'}); | |
| function initialize() { | |
| var input = document.getElementById('id_location'); | |
| var autocomplete = new google.maps.places.Autocomplete(input, { types: ['(cities)'], region:'EU' }); | |
| google.maps.event.addListener(autocomplete, 'place_changed', function() { | |
| var place = autocomplete.getPlace(); | |
| if (!place.geometry) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def download_cover(url, name=None): | |
| #print "========================== START" | |
| #print "==== COVER URL: %s" % (url,) | |
| purl = urlparse(url) | |
| path = purl.path | |
| if path.startswith('/'): | |
| path = path[1:] | |
| abspath = os.path.join(settings.MEDIA_ROOT,settings.RADIOPLAYLIST_COVERS_PREFIX,path) | |
| relpath = os.path.join(settings.RADIOPLAYLIST_COVERS_PREFIX,path) | |
| if not os.path.exists(os.path.dirname(abspath)): |
- basic setup
- auto-login on startup
- chromium
- shared user with google sync for bookmarks in chromium
- auto-start chromium with shared bookmark in fullscreen mode (
- setup synergy
- setup ssh tunnel for synergy (with restricted rights) (client:
ssh -f -N -L 24800:server-hostname:24800 server-hostname) - share ssh with zeroconf
NewerOlder