Imgur and weserv not working anymore

Due to some image proxy problems, posts with imgur images were sed-ed to remove the proxy link

grep -rl "https://images.weserv.nl/?url=" . | xargs sed -i 's|https://images.weserv.nl/?url=||'

I don’t like it, but that’s it for now.

Peace

image-nohash-th image-nohash-th image-nohash-th image-nohash-th image-nohash-th

Everybody dance now

Car racing at its best, Loeb - Peugeot

Pikes Peak Hill Climb 2013 - Sébastien Loeb - Peugeot 208 T16

Amiga boink restored

boinkEvee_ps2.png-p0q4ycrD8wLiY0r-md
Similar 4k version of it. boinkEvee2_ps.png-i1JcoqPBwcYeQl9-md
^Blender eevee + some post.

image-nohash-th image-nohash-th
^Just a sphere with some blendkit materials.

cheat.sh

Example

curl cheat.sh/ls

Lighty running on pi and NOT streaming mp4

Mime test (not a fix)

In /etc/lighttpd/lighttpd.conf, disable perl script

#include_shell "/usr/share/lighttpd/create-mime.conf.pl"

and add this to the bottom

# by me from page
# http://stackoverflow.com/questions/29349348/specifying-charset-in-http-header-with-lighttpd
mimetype.assign             = (
  ".pdf"          =>      "application/pdf",
  ".sig"          =>      "application/pgp-signature",
  ".spl"          =>      "application/futuresplash",
  ".class"        =>      "application/octet-stream",
  ".ps"           =>      "application/postscript",
  ".torrent"      =>      "application/x-bittorrent",
  ".dvi"          =>      "application/x-dvi",
  ".gz"           =>      "application/x-gzip",
  ".pac"          =>      "application/x-ns-proxy-autoconfig",
  ".swf"          =>      "application/x-shockwave-flash",
  ".tar.gz"       =>      "application/x-tgz",
  ".tgz"          =>      "application/x-tgz",
  ".tar"          =>      "application/x-tar",
  ".zip"          =>      "application/zip",
  ".mp3"          =>      "audio/mpeg",
  ".wma"          =>      "audio/x-ms-wma",
  ".wax"          =>      "audio/x-ms-wax",
  ".ogg"          =>      "application/ogg",
  ".webm"         =>      "audio/webm",
  ".wav"          =>      "audio/x-wav",
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".xbm"          =>      "image/x-xbitmap",
  ".xpm"          =>      "image/x-xpixmap",
  ".xwd"          =>      "image/x-xwindowdump",
  ".asc"          =>      "text/plain",
  ".c"            =>      "text/plain",
  ".cpp"          =>      "text/plain",
  ".log"          =>      "text/plain",
  ".conf"         =>      "text/plain",
  ".spec"         =>      "text/plain",
  ".dtd"          =>      "text/xml",
  ".mpeg"         =>      "video/mpeg",
  ".mpg"          =>      "video/mpeg",
  ".mov"          =>      "video/quicktime",
  ".qt"           =>      "video/quicktime",
  ".avi"          =>      "video/x-msvideo",
  ".asf"          =>      "video/x-ms-asf",
  ".asx"          =>      "video/x-ms-asf",
  ".wmv"          =>      "video/x-ms-wmv",
  ".bz2"          =>      "application/x-bzip",
  ".tbz"          =>      "application/x-bzip-compressed-tar",
  ".tar.bz2"      =>      "application/x-bzip-compressed-tar",
  ".odt"          =>      "application/vnd.oasis.opendocument.text", 
  ".ods"          =>      "application/vnd.oasis.opendocument.spreadsheet", 
  ".odp"          =>      "application/vnd.oasis.opendocument.presentation", 
  ".odg"          =>      "application/vnd.oasis.opendocument.graphics", 
  ".odc"          =>      "application/vnd.oasis.opendocument.chart", 
  ".odf"          =>      "application/vnd.oasis.opendocument.formula", 
  ".odi"          =>      "application/vnd.oasis.opendocument.image", 
  ".odm"          =>      "application/vnd.oasis.opendocument.text-master", 
  ".ott"          =>      "application/vnd.oasis.opendocument.text-template",
  ".ots"          =>      "application/vnd.oasis.opendocument.spreadsheet-template",
  ".otp"          =>      "application/vnd.oasis.opendocument.presentation-template",
  ".otg"          =>      "application/vnd.oasis.opendocument.graphics-template",
  ".otc"          =>      "application/vnd.oasis.opendocument.chart-template",
  ".otf"          =>      "application/vnd.oasis.opendocument.formula-template",
  ".oti"          =>      "application/vnd.oasis.opendocument.image-template",
  ".oth"          =>      "application/vnd.oasis.opendocument.text-web", 
# mine
  ".css"          =>      "text/css; charset=utf-8",
  ".html"         =>      "text/html; charset=utf-8",
  ".htm"          =>      "text/html; charset=utf-8",
  ".js"           =>      "text/javascript; charset=utf-8",
  ".text"         =>      "text/plain; charset=utf-8",
  ".txt"          =>      "text/plain; charset=utf-8",
  ".txt~"         =>      "text/plain; charset=utf-8",
  ".md5"          =>      "text/plain; charset=utf-8",
  ".xml"          =>      "text/xml; charset=utf-8",
  ".mp4"          =>      "video/mp4",
  ".m3u"	  =>	  "text/html; charset=utf-8",
)

Compare configs?

Looks good.

Not.

Qt-faststart workaround

Even thought ffmpeg did include the magic ‘-movflags +faststart’ that doesn’t seem to prepare the file properly, workaround is ‘qt-faststart’.

qt-faststart in.mp4 out.mp4

and out.mp4 should at least behave as progressive download.

headers

What it should look like (curl -I someip)

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Accept-Ranges: bytes
ETag: "1918464442"
Last-Modified: Thu, 17 Sep 2020 10:42:42 GMT
Content-Length: 4886
Date: Fri, 30 Oct 2020 11:45:01 GMT
Server: lighttpd/1.4.53

and not

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Accept-Ranges:  none
ETag: "2284669014"
Last-Modified: Tue, 07 Jul 2020 15:18:24 GMT
Content-Length: 8017
Date: Fri, 30 Oct 2020 11:44:35 GMT
Server: lighttpd/1.4.53

What was it?

They say, they say that ‘bytes’ is that magic keyword. And for some reason and for that specific client some evil entity is blocking it.

curl -Is testhost.com | grep 'Accept-Ranges: bytes'
about / github / jekyll