Skip to content

Instantly share code, notes, and snippets.

View pierrejean-coudert's full-sized avatar

Pierre-Jean Coudert pierrejean-coudert

View GitHub Profile
@pierrejean-coudert
pierrejean-coudert / postgres-brew.md
Created September 30, 2018 20:44 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@login_required
def report(request):
end = get_week_dates(datetime.now())[1]
begin = get_week_dates(datetime.now()-timedelta(days=7))[0]
if request.method == 'GET':
data = request.GET.copy()
if data:
form = AgendaForm(data, auto_id = True, initial={'begin':begin, 'end':end})
if form.is_valid():
if 'begin' in form.data and 'end' in form.data:
@pierrejean-coudert
pierrejean-coudert / Vagrantfile
Created March 28, 2012 11:35 — forked from nathany/Vagrantfile
Vagrant Fabric experiment
Vagrant::Config.run do |config|
config.vm.define :djangovm do |django_config|
# Every Vagrant virtual environment requires a box to build off of.
django_config.vm.box = "lucid64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
django_config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
# Forward a port from the guest to the host, which allows for outside