This guide is a walk-through on how to setup Ubuntu Server for hosting Django websites. The Django stack that will be used in this guide is Ubuntu, Nginx, Gunicorn and Postgres. I needed an example site for this guide you can use Django Base Site which is available on Github. For more useful information on Ubuntu server installs, please see the documentation here: https://help.ubuntu.com/12.10/serverguide/
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
<?xml version="1.0" encoding="utf-8"?> | |
<!--This file was autogenerated by the #Develop highlighting editor.--> | |
<!--VibrantInk inspired syntax highligthing for C# in #Develop.--> | |
<SyntaxDefinition name="C#" extensions=".cs"> | |
<Environment> | |
<Custom name="TypeReference" bold="false" italic="false" color="Pink" /> | |
<Custom name="UnknownEntity" bold="false" italic="false" color="Yellow" /> | |
<Default bold="false" italic="false" color="White" bgcolor="Black" /> | |
<Selection bold="false" italic="false" color="White" bgcolor="#6897BB" /> | |
<VRuler bold="false" italic="false" color="Pink" bgcolor="#E3E3E3" /> |
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
mkdir heroku | |
cd heroku/ | |
virtualenv --no-site-packages env | |
source env/bin/activate | |
pip install bottle gevent | |
pip freeze > requirements.txt | |
cat >app.py <<EOF | |
import bottle | |
import os |
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
import logging | |
import time | |
logger = logging.getLogger(__name__) | |
def useful(): | |
logger.debug('Hello from webapplib!') | |
time.sleep(0.01) |
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
#!/bin/bash | |
#=============================================================================== | |
# | |
# FILE: iso2wbfs | |
# | |
# USAGE: ./iso2wbfs [option] FILE... [wbfs directory] | |
# | |
# DESCRIPTION: Uses wit to convert one or more Wii ISO into a WBFS file | |
# properly named for use on non-WBFS partitions. | |
# |
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
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger ([email protected]) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
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
#!/usr/bin/env bash | |
# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407#.3o6drt47o | |
# http://blogs.atlassian.com/2013/03/git-submodules-workflows-tips/#scenarios | |
# http://stackoverflow.com/questions/2144406/git-shallow-submodules | |
# ----------------- | |
# INSTALL AND SETUP | |
# ----------------- | |
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion |
/etc/ufw/applications.d/plexmediaserver
[plexmediaserver]
title=Plex Media Server (Standard)
description=The Plex Media Server
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp
[plexmediaserver-dlna]
title=Plex Media Server (DLNA)
description=The Plex Media Server (additional DLNA capability only)