ffmpeg -i source.webm target.mov
This gets the first 10 seconds of the video
#!/bin/bash | |
filename_extension="${1##*.}" | |
if [[ "$filename_extension" != "md5" ]] && [[ "$filename_extension" != "sha1" ]] && [[ "$filename_extension" != "sha512" ]]; then | |
echo "Hash algorithm not supported, choose between sha1, sha512, or md5" | |
exit 1 | |
fi | |
while IFS=":" read -r filename hash_code; do | |
computed_hash=$(openssl dgst -"$filename_extension" "$filename" | awk '{print $2}') |
Aiven's OSPO Jobs
[ERROR] [04/27/2017 13:41:56.845] [pool-6-thread-8-ScalaTest-running-PathDirectivesSpec] [akka.actor.ActorSystemImpl(akka-http-scaladsl-server-directives-PathDirectivesSpec)] Error during processing of request: 'Rejection handler still produced new rejections after 8 iterations. Is there an infinite handler cycle? Initial rejections: List() final rejections: List()'. Completing with 500 Internal Server Error response. To change default exception handling behavior, provide a custom ExceptionHandler. | |
java.lang.RuntimeException: Rejection handler still produced new rejections after 8 iterations. Is there an infinite handler cycle? Initial rejections: List() final rejections: List() | |
at scala.sys.package$.error(package.scala:27) | |
at akka.http.scaladsl.server.directives.ExecutionDirectives$$anonfun$handleRejections$1.akka$http$scaladsl$server$directives$ExecutionDirectives$class$$anonfun$$handle$1(ExecutionDirectives.scala:55) | |
at akka.http.scaladsl.server.directives.ExecutionDirectives$$anonfun$handleRejections$1 |
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport | |
import akka.http.scaladsl.server.{ HttpApp, Route } | |
import spray.json.DefaultJsonProtocol | |
case class SomeFooData(foo: String) | |
object SomeFooDataSupport extends DefaultJsonProtocol with SprayJsonSupport { | |
implicit val PortofolioFormats = jsonFormat1(SomeFooData) | |
} |
; global variables | |
(setq | |
inhibit-startup-screen t | |
create-lockfiles nil | |
make-backup-files nil | |
column-number-mode t | |
scroll-error-top-bottom t | |
show-paren-delay 0.5 | |
use-package-always-ensure t | |
sentence-end-double-space nil |
import akka.http.javadsl.marshallers.jackson.Jackson; | |
import akka.http.javadsl.model.HttpRequest; | |
import akka.http.javadsl.model.StatusCodes; | |
import akka.http.javadsl.server.Route; | |
import akka.http.javadsl.testkit.JUnitRouteTest; | |
import org.junit.Test; | |
import java.util.Optional; | |
public class RejectEmptyResponseBug extends JUnitRouteTest { |
// With Drools 5.5 | |
@Before | |
public void setupSession() { | |
final KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); | |
config.setOption(EventProcessingOption.STREAM); | |
final KnowledgeBuilder kbuilder = TestHelper.buildRules(); | |
kbase = KnowledgeBaseFactory.newKnowledgeBase(config); | |
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()); | |
ksession = kbase.newStatefulKnowledgeSession(); | |
} |