-
Create high-quality master format (uncompressed HEVC, Apple ProRes?)
-
60fps HEVC CRF 23 from input stills:
ffmpeg \ -framerate 60 \ -pattern_type glob \ -i "DSC_*.jpg" \ -vcodec libx265 \
-
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala 2.13 | |
//> using dep org.typelevel::cats-effect-testkit:3.5.1 | |
//> using dep com.eed3si9n.expecty::expecty:0.16.0 | |
import cats.effect._ | |
import cats.effect.kernel.Outcome | |
import cats.effect.std.Dispatcher | |
import cats.effect.testkit.TestControl | |
import cats.syntax.all._ | |
import com.eed3si9n.expecty.Expecty._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit -o nounset -o pipefail | |
IFS=$'\n\t' | |
RED='\033[1;31m' | |
NC='\033[0m' # No Color | |
readonly RED NC | |
function log_error () { | |
echo -e "$1" > /dev/stderr | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ffmpeg encoder Makefile to build a consolidated video from multiple | |
# image sequences with potentially varying frame rates | |
# | |
# Create subdirectories containing the image sequence files and a | |
# special file called FPS, which should just contain the desired | |
# frame rate. For example, this structure: | |
# | |
# TOPDIR | |
# |-- Makefile | |
# |-- final.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.security.MessageDigest | |
import cats.effect._ | |
import fs2._ | |
import fs2.async.Promise | |
import tsec.common._ | |
object Sha256Pipe { | |
def apply[F[_] : Sync](promisedHexString: Promise[F, String]): Pipe[F, Byte, Byte] = { | |
def pull(digest: MessageDigest): Stream[F, Byte] => Pull[F, Byte, String] = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.planetholt.clipboard | |
import cats._ | |
import cats.effect._ | |
import cats.implicits._ | |
import org.scalajs.dom.html.Document | |
import org.scalajs.dom.raw._ | |
import org.scalajs.dom.window | |
import scala.scalajs.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shapeless._ | |
import shapeless.ops.hlist._ | |
import shapeless.syntax.singleton._ | |
object GenericCaseClassMigration extends App { | |
case class X(s1: String, s2: String) | |
case class Y(s2: String, i: Int, s1: String) | |
implicit class GenericCaseClassMigrator[A](f: A) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
function find_ip () { | |
aws --region us-west-2 \ | |
ec2 describe-instances --filters \ | |
"Name=tag:Name,Values=${1}" \ | |
"Name=instance-state-name,Values=running" | \ | |
jq -rc '.Reservations | map(.Instances) | map(map(.PrivateIpAddress)) | flatten | flatten | .[0]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "example" | |
scalaVersion := "2.12.4" | |
scalacOptions ++= Seq( | |
"-feature", | |
"-deprecation", | |
"-Ypartial-unification", | |
// "-Xlog-implicits", | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dwolla.sbt.cloudformation | |
import com.dwolla.awssdk.cloudformation.CloudFormationClient | |
import com.dwolla.sbt.cloudformation.CloudFormationStackParsers._ | |
import sbt.IO.{read, utf8} | |
import sbt.Keys._ | |
import sbt._ | |
import scala.language.{implicitConversions, postfixOps} |
NewerOlder