Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
#!/bin/bash | |
if [ $# -eq 1 ] | |
NM=`uname -a && date` | |
NAME=`echo $NM | md5sum | cut -f1 -d" "` | |
then | |
ppa_name=`echo "$1" | cut -d":" -f2 -s` | |
if [ -z "$ppa_name" ] | |
then | |
echo "PPA name not found" | |
echo "Utility to add PPA repositories in your debian machine" |
.pagehead.repohead h1.private .repo-label span { | |
background-color:#f8eec7; | |
border-radius:3px; | |
color:#A1882B; | |
padding:3px 6px 2px; | |
} | |
.pagehead.repohead span.repo-label { | |
position:absolute; | |
top:14px; |
$('.plan-select').click(function(e){ | |
$('.plan-select ul').slideUp(100); | |
$(this).find('ul').slideToggle(100); | |
$(this).toggleClass('isActive'); | |
e.stopPropagation(); | |
}); | |
$('body').click(function(e){ | |
$('.isActive').find('ul').slideToggle(100); | |
$('.plan-select').removeClass('isActive'); | |
}); |
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_. This stack was chosen solely from the reading I've done and talking to other Django developers in order to get their recommendations. This stack seems to be one of the latest "standard" stacks for Django deployment. This guide also assumes that you're familiar with Ubuntu server administration and Django. I needed an example site for this guide so I chose to use my Django Base Site which is available on Github.
I would also like to thank Ben Claar, Adam Fast, Jeff Triplett and Frank Wiles for their suggestions and input on this guide.
apt-get update | |
apt-get install build-essential \ | |
python-dev \ | |
libgdbm-dev \ | |
libbz2-dev \ | |
libc6-dev \ | |
libsqlite3-dev \ | |
libssl-dev \ | |
libreadline-dev \ |
{% block plugin %} | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
<script type="text/javascript" src="/static/grappelli/js/jquery.gmaps.js"></script> | |
<script type="text/javascript"> | |
var map; | |
if($('#id_lat').val() && $('#id_long').val()){ | |
map = new GMaps({ | |
div: '#map', | |
lat: $('#id_lat').val(), | |
lng: $('#id_long').val(), |
{% extends "base.html" %} | |
{% block pageID %}index{% endblock pageID %} | |
{% block container %} | |
<div id="page" class="row"> | |
{% include "includes/leftBar.html" %} | |
<div id="content" class="span9 block"> | |
<form action="save" method="POST"> | |
<ul class="formList"> |
jQuery.fn.fuck = function(options){ | |
// Setup default options | |
var settings = { | |
position: 'right bottom', | |
type: 'info', | |
content: 'some text' | |
}; | |
// Override default settings | |
// with user provided options |