# pacman -S postgresql-old-upgrade
# systemctl stop postgresql.service
# mv /var/lib/postgres/data /var/lib/postgres/olddata
When you call addSourceBuffer
on a MediaSource
, you need to pass in a string that is the MIME type for the codec. If this isn't correct, the video won't play. (You can also pass this to the MediaSource
's isTypeSupported
function, though there seems to be a gap between what it thinks it can play and what it will play.)
The string looks like this:
video/mp4; codecs="avc1.42E01E, mp4a.40.2"
The values required in that string can be obtained by running the mp4file tool from mp4v2 on a video file, like so:
mp4file --dump movie.mp4
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New new -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
#!/usr/bin/env playonlinux-bash | |
# Date : (2021-04-05 04-20) | |
# Last revision : (2021-04-05 06-09) | |
# Wine version used : 6.3 staging | |
# Distribution used to test : Ubuntu 20.04 LTS | |
# Author : tiagovla | |
# PlayOnLinux : 4.3.4 | |
# Script licence : MIT | |
[ "$PLAYONLINUX" = "" ] && exit 0 |
[merge] | |
tool = vimdiff | |
[mergetool] | |
keepBackup = false | |
[mergetool "vimdiff"] | |
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' |
.header on | |
.mode column |
from django.http import StreamingHttpResponse | |
from wsgiref.util import FileWrapper | |
import mimetypes | |
import os | |
import re | |
range_re = re.compile(r'bytes\s*=\s*(\d+)\s*-\s*(\d*)', re.I) | |
class RangeFileWrapper (object): | |
def __init__(self, filelike, blksize=8192, offset=0, length=None): |
import "phoenix_html" | |
import "bootstrap" | |
import "jquery" | |
import "toastr" | |
// ... |