Start services:
docker-compose up
Test x-accel-redirect for POST requests:
curl -v -d '{"foo": 2}' http://localhost:8000/test
Start services:
docker-compose up
Test x-accel-redirect for POST requests:
curl -v -d '{"foo": 2}' http://localhost:8000/test
#!/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' |
#!/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 \ |
-- 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 */; |
-- MySQL dump 10.13 Distrib 5.6.39, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: edxapp | |
-- ------------------------------------------------------ | |
-- Server version 5.6.39 | |
/*!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 */; |
#!/usr/bin/env python3 | |
""" | |
Use this script if you have corrupted frames in your watson history. In my | |
case, almost 400 frames had short ids instead of 32 chars uuids. | |
Usage: | |
$ cd path/to/watson/dir | |
$ wget GIST_URL -O fix_watson_uuids.py | |
$ python3 fix_watson_uuids.py |
#!/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() |
# Add this to your ~/.provile or ~/.bashrc depending on your system | |
# | |
# watson directory (require watson >= 1.3) | |
# This value is the default on MacOSX | |
WATSON_DIR="$HOME/Library/Application Support/watson" | |
watson_status() { | |
# colors taken from git-aware-prompt | |
# https://github.com/jimeh/git-aware-prompt | |
local txtred="$(tput setaf 1 2>/dev/null || echo '\e[0;31m')" # Red |
I hereby claim:
To claim this, I am signing this object: