ttml2srt.php
This is a simple script for converting TTML subtitle files to SRT ones. Tested with TTML files on tv.nrk.no.
It assumes the data is structured like this:
<tt>
<body>
<div>
<p>(...)</p>
#!/usr/bin/env bash | |
# Generate JWT for Github App | |
# | |
# Inspired by implementation by Will Haley at: | |
# http://willhaley.com/blog/generate-jwt-with-bash/ | |
# From: | |
# https://stackoverflow.com/questions/46657001/how-do-you-create-an-rs256-jwt-assertion-with-bash-shell-scripting | |
thisdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
This is a simple script for converting TTML subtitle files to SRT ones. Tested with TTML files on tv.nrk.no.
It assumes the data is structured like this:
<tt>
<body>
<div>
<p>(...)</p>
Time | Speaker(s) | Title |
---|---|---|
08:45 | Evan You | State of the Vuenion (Founder of Vue.js) |
09:00 | Guillaume Chau |
SSR revolution with Vue 2.6 |
09:35 | Tim Benniks | Vue.js for L'oreal, a case study (Director of Frontend @Valtech Paris) |
10:45 | Jen Looper | NativeScript-Vue + ML = The Great MiniBar Challenge: MixoLogy (Developer Advocate at Progress) |
11:15 | Filip Rakowski | Modern Web Apps Performance Tricks with PWA and Vue.js (Founder Vue Storefront) |
11:50 | Sara Vieira | [GraphQL + Apollo + Vue.js = |
After having the same issue myself by using a mainline 5.13 kernel in Pop OS, I managed to get the monitors working by having a look at the guide for porting the driver to other distros here: https://support.displaylink.com/knowledgebase/articles/679060-porting-the-displaylink-ubuntu-driver-to-other-lin
A small summary though (only tested in PopOs, but should probably work in most Debian/Ubuntu based distros):
sudo ./displaylink-driver-5.4.0-55.153.run uninstall
./displaylink-driver-5.4.1-55.174.run --noexec --keep
<?php | |
namespace App\Console\Commands\Traits; | |
trait LogTrait | |
{ | |
public function logDebug(string $text, ?string $dateFormat = 'Y-m-d H:i:s'): void | |
{ | |
/** @var \Illuminate\Console\Command $this */ | |
if (! $this->output->isDebug()) { |
<?php | |
namespace App\Console\Commands\Traits; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
trait TimedTrait | |
{ | |
/** |
<?php | |
namespace Database\Migrations\Types; | |
use DateTime; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Doctrine\DBAL\Types\ConversionException; | |
use Doctrine\DBAL\Types\PhpDateTimeMappingType; | |
use Doctrine\DBAL\Types\Type; |
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
class FooRequest extends FormRequest | |
{ | |
public function authorize() | |
{ |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\UploadedFile; | |
class DataUriToFile | |
{ | |
/** |
#!/bin/bash | |
# | |
# Author: Alexander Karlstad <carestad@github> | |
# Updated: 2019-07-17 | |
# Configurable variables | |
slack_channel="@alexander" | |
slack_icon=":information_source:" | |
slack_user="apt@$(hostname -f)" | |
slack_webhook="" |