Skip to content

Instantly share code, notes, and snippets.

View Namibnat's full-sized avatar

Vernon Swanepoel Namibnat

View GitHub Profile
@Namibnat
Namibnat / gist:0e604cd2ff406329a7f02d9c65b40a53
Last active June 22, 2017 10:47
A Rough Guide To Arch Linux Setup [for mostly Django with Apache and Postgresql]
First - a warning - If you follow step by step what I describe below, you'll kill whatever was on your machine.
I don't write 'this will wipe your disk' in the details below - I'll assume you're using a machine you can
mess around with and wipe out the disk without pain and anguish. It might blow up your box - if it does, be sure to
post to youtube...but don't blame me. I also don't describe anything like duel-boot...this is assuming you want
your whole machine to be linux to the bone.
There's something really appealing about building and Arch Linux box. Though I've build up an arch system many
times over the last few year, I still follow the 'beginner's guide', and probably will for some time to come.
https://wiki.archlinux.org/index.php/Beginners'_guide
@Namibnat
Namibnat / gist:3b6d666c8f4961b9f4726d5c5e40f7de
Last active December 23, 2020 00:06
Setting up a Postgresql server for a Django website on Arch Linux
Basically, notes for myself.
This is a step by step guide that I use to get a postgresql database
set up for a new django website.
Postgresql has a user, postgres, that is used for certain config aspects:
If you're on a new machine without a database cluster setup start with
As root:
# pacman -Syu
I'm building this simple little website app to use to run a small Django workshop.
This page is just a step by step explination of how I build it:
I'm using django 1.9 and Python 3.5 for this project. I'm using virtualenv, although I guess that you
don't need to (though I'm not sure why one wouldn't).
From here it's basically a step by step:
$ source ~/.virtualenv/habits/bin/activate
@Namibnat
Namibnat / Python Namibia 2017 Plan
Last active December 2, 2016 17:50
Python Namibia Training Plan
Level 1 Beginner Python.
(Ngatatue Mate is building this)
- What is Programming / Coding? Why is it important.
- What is a programming language? The levels of Programming languages (High-level languages, Low-level, Scripting Languages)
- What is Python? Why Python??
- Who uses Python? Where can Python be used?
- The Python Interpreter. Playing around with it:
- arithmetic, your first hello world, Zen of Python, anti-gravity
- The Print statemment and Variables.