Start services:
docker-compose up
Test x-accel-redirect for POST requests:
curl -v -d '{"foo": 2}' http://localhost:8000/test
| Output quick-start.gif | |
| # Set up a 800x600 terminal with 14px font. | |
| Set Shell zsh | |
| Set FontSize 14 | |
| Set Width 800 | |
| Set Height 600 | |
| Set Padding 10 | |
| Set WindowBar Colorful | |
| Set Theme "Dark+" |
| # Run the nginx RTMP server using Docker | |
| docker run -d -p 1935:1935 --name nginx-rtmp tiangolo/nginx-rtmp | |
| # Stream sound card audio to the RTMP server | |
| # | |
| # 8 is the identifier of your default source | |
| # see `pactl list sources` output | |
| # | |
| # 192.168.1.64 is the RTMP server IP adress | |
| ffmpeg -re -f pulse -i 8 -c:a aac -b:a 128k -ac 2 -ar 44100 \ |
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() |