Start services:
docker-compose up
Test x-accel-redirect for POST requests:
curl -v -d '{"foo": 2}' http://localhost:8000/test
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: edxapp | |
-- ------------------------------------------------------ | |
-- Server version 5.7.21 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
#!/bin/bash | |
USER_ID=$(id -u) | |
GROUP_ID=$(id -g) | |
docker run -it --rm -u ${USER_ID}:${GROUP_ID} \ | |
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \ | |
--volume=${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse \ | |
--volume="${HOME}/.config/tizonia":/home/tizonia/.config/tizonia \ | |
--volume="${HOME}/.config/pulse/cookie":/home/tizonia/.config/pulse/cookie \ |
#!/usr/bin/env python3 | |
"""Compare (fuzzy) dateutils vs dateparser `parse` methods""" | |
import sys | |
from dateparser import parse as dp_parse | |
from datetime import datetime, timedelta | |
from dateutil.parser import parse as du_parse | |
NOW = datetime.now() |
#!/usr/bin/env bash | |
# Install this script somewhere in your $PATH | |
# Configurations | |
declare REPOSITORIES_ROOT_DIR="${HOME}/Work/fun" | |
declare -a REPOSITORIES=(potsie ralph learning-analytics-playground) | |
# Terminal colors | |
declare -r COLOR_BLUE='\033[0;36m' |
Start services:
docker-compose up
Test x-accel-redirect for POST requests:
curl -v -d '{"foo": 2}' http://localhost:8000/test