Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| {-# LANGUAGE NoImplicitPrelude #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE QuasiQuotes #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| module Example where |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| #! /usr/bin/env stack | |
| -- stack --resolver lts-18.8 script | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {- | |
| This is a handy illustration of converting between five of the commonly-used | |
| string types in Haskell (String, ByteString, lazy ByteString, Text and lazy | |
| Text). |
You can find what kernel modules are loaded using lsmod.
However some kernel modules are required at stage 1 boot. Basically preloaded in the initial ram disk before switching to the root filesystem. These kernel modules are mostly needed to deal with peripherals, storage devices, filesystems and network devices. You may need to be wary of these required modules:
sd_mod - SCSI, SATA, and PATA (IDE) devices| docker run --rm -it -v $PWD:/tmp debian:10-slim /bin/bash | |
| # --rm : remove after exit | |
| # -it : interactive TTY | |
| # -v : mount folder : current folder to /tmp folder of the container | |
| # debian:10-slim : docker image https://git.io/JJzfy | |
| # /bin/bash : run bash in this container |
| #!/bin/sh | |
| #If already set (e.g. in github actions); use that instead | |
| if [ -z "$GITHUB_TOKEN" ]; then | |
| nix run nixpkgs#gh auth status || nix run nixpkgs#gh auth login | |
| GITHUB_TOKEN="$(nix run nixpkgs#gh auth token)" | |
| export GITHUB_TOKEN | |
| fi | |
| NIX_CONFIG="access-tokens = github.com=$GITHUB_TOKEN" |