Personal website
Switch branches/tags
Nothing to show
Clone or download


Personal website and blog.

Author: Daniel Jonsson
License: MIT License

Run with Docker

Build the Docker image:

$ sudo docker build -t matachi/hydra .

Run the image:

$ sudo docker run -i -t -v `pwd`:/home/hydra/app:rw -p 8000:8000 -p 1337:22 matachi/hydra

Then, inside the container, start the Django development web server:

$ python3 /home/hydra/app/ runserver

Finally open in the web browser.

Configure PyCharm

To work with the project in PyCharm and still run it in Docker, read the following text.

Set your project Python interpreter to a remote interpreter. Configure it with the following settings:

Port: 1337
Username: root
Auth type: Password
Password: pass
Python interpreter path: /usr/bin/python3

And before starting a Django server, make the following configurations:

Port: 8000
Path mappings: /path/to/hydra/on/host=/home/hydra/app

Where /path/to/hydra/on/host is the directory on the host where this project directory is located.

Build JS and CSS


Install Node.js, npm, gulp and virtualenv.

Debian and Ubuntu

Instructions to install the prerequisites on a Debian based system (Ubuntu for example):

$ sudo apt-get install nodejs python-virtualenv
$ sudo npm install -g gulp
$ sudo chown -R `whoami`:`whoami` ~/.npm ~/tmp


Instructions for Fedora:

$ sudo dnf install nodejs npm python-virtualenv
$ sudo npm install -g gulp

Note, use yum instead of dnf if dnf isn't available.


Install build tools and dependencies:

$ npm install

Note, the above command will also execute


$ gulp build

Interact with a server

Copy the SQLite database file from a server over SSH:

$ scp [hostname]:hydra/db.sqlite3 .

This is useful when the site is deployed on a remote server and you want to retrieve the database for local testing and development.

Manually build the syntax highlighting stylesheet

This is already done by $ gulp build.

$ pygmentize -S manni -f html -a ".codehilite pre" > manni.css

Manually build Social Share Privacy

This is already done by $ gulp build.

Download from and run:

$ ./ -m tumblr,twitter,facebook -l none