sudo apt-get install lighttpd php5-cgi
sudo lighty-enable-mod fastcgi sudo lighty-enable-mod fastcgi-php
sudo service lighttpd force-reload
#in /var/www/index.php
# -*- coding: utf-8 -*- | |
"""Add permissions for proxy model. | |
This is needed because of the bug https://code.djangoproject.com/ticket/11154 | |
in Django (as of 1.6, it's not fixed). | |
When a permission is created for a proxy model, it actually creates if for it's | |
base model app_label (eg: for "article" instead of "about", for the About proxy | |
model). | |
What we need, however, is that the permission be created for the proxy model | |
itself, in order to have the proper entries displayed in the admin. |
[Default Item Styles - Schema darky] | |
Alert=ffda4453,ffda4453,1,,,,fffae9eb,-,,--- | |
Annotation=ff7f8c8d,ffbdc3c7,,,,,-,-,,--- | |
Attribute=ff2980b9,fffdbc4b,,,,,-,-,,--- | |
Base-N Integer=fff67400,fff67400,,,,,-,-,,--- | |
Built-in=ff7f8c8d,ffbdc3c7,,,,,-,-,,--- | |
Character=ff3daee9,fffcfcfc,,,,,-,-,,--- | |
Comment=ff7f8c8d,ffeff0f1,,,,,-,-,,--- | |
Comment Variable=ff7f8c8d,ffbdc3c7,,,,,-,-,,--- | |
Constant=ff31363b,ffeff0f1,1,,,,-,-,,--- |
#https://rootprompt.apatsch.net/2013/02/20/raspberry-pi-network-audio-player-pulseaudio-dlna-and-bluetooth-a2dp-part-1-pulseaudio/ | |
#https://github.com/volumio/Volumio2/issues/159 | |
#https://github.com/masmu/pulseaudio-dlna | |
# Set pulse daemon config | |
cat <<EOF > /etc/default/pulseaudio | |
PULSEAUDIO_SYSTEM_START=1 | |
DISALLOW_MODULE_LOADING=0 | |
EOF |
$HTTP["host"] =~ "www.domain.org" { | |
server.name = "www.domain.org" | |
server.document-root = "/path/to/media/" | |
$HTTP["url"] !~ "^/(static|media)" { | |
proxy.server = ( "" => | |
(( "host" => "127.0.0.1", "port" => 8008 )) | |
) | |
} | |
} |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
respawn limit 10 5 | |
script | |
NAME=app_name | |
PORT=8002 | |
NUM_WORKERS=3 | |
TIMEOUT=120 |
conn = boto.connect_s3(awsAccessKey, awsSecret) | |
# Get bucket instance. | |
bucket = conn.get_bucket(bktName) | |
fileKey = bucket.get_key(fileKey) | |
url = fileKey.generate_url(expires_in=None, query_auth=True, force_http=True) | |
print url |
""" | |
Celery base task aimed at longish-running jobs that return a result. | |
``AwesomeResultTask`` adds thundering herd avoidance, result caching, progress | |
reporting, error fallback and JSON encoding of results. | |
""" | |
from __future__ import division | |
import logging | |
import simplejson |
for f in *.m4a; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "${f%.m4a}.mp3"; done |
[Default Item Styles - Schema k1000 (dark)] | |
Alert=ffbf0303,ffbf0303,1,,,,fff7e6e6,-,,--- | |
Base-N Integer=ff985e95,ff985e95,1,,,,-,-,,--- | |
Character=ff985e95,ff985e95,1,,,,-,-,,--- | |
Comment=ff3c404e,ff3c404e,0,1,,,-,-,,--- | |
Data Type=ffb56a6b,ffb56a6b,0,,,,-,-,,--- | |
Decimal/Value=ff985e95,ff985e95,1,,,,-,-,,--- | |
Error=ffbf0303,ffbf0303,0,0,0,,-,-,,--- | |
Floating Point=ff985e95,ff985e95,1,,,,-,-,,--- | |
Function=ff445f9b,ff644a9b,,,,,-,-,,--- |
sudo apt-get install lighttpd php5-cgi
sudo lighty-enable-mod fastcgi sudo lighty-enable-mod fastcgi-php
sudo service lighttpd force-reload
#in /var/www/index.php