Skip to content

Instantly share code, notes, and snippets.

View aruediger's full-sized avatar

André Rüdiger aruediger

View GitHub Profile
@aruediger
aruediger / convert.sh
Created January 5, 2022 20:12
m4a to mp3 converter
find -name "*.m4a" -exec bash -c 'ffmpeg -i "{}" -acodec libmp3lame -ab 256k "${0/.m4a}.mp3" && rm "{}"' {} \;
@aruediger
aruediger / cargo-workspace-deps.sh
Created January 22, 2021 14:49
Cargo internal workspace dependencies
exclude="<dummy project>"
projects="$(find . -mindepth 2 -name 'Cargo.toml' -printf "%h\n" | grep -v "$exclude" | cut -c3- | tr '\n' ' ')"
cargo deps --manifest-path "$exclude/Cargo.toml" --subgraph $projects --filter $projects
[DEBUG] [05/24/2016 09:31:44.625] [ConnectionPoolSpec-akka.actor.default-dispatcher-3] [akka.serialization.Serialization(akka://ConnectionPoolSpec)] Using serializer[akka.serialization.JavaSerializer] for message [akka.event.EventStreamUnsubscriber$Register]
Coroner Thread Count starts at 14 in akka.http.impl.engine.client.ConnectionPoolSpec
[DEBUG] [05/24/2016 09:31:45.383] [ScalaTest-run-running-ConnectionPoolSpec] [AkkaSSLConfig(akka://ConnectionPoolSpec)] Initializing AkkaSSLConfig extension...
[DEBUG] [05/24/2016 09:31:45.385] [ScalaTest-run-running-ConnectionPoolSpec] [AkkaSSLConfig(akka://ConnectionPoolSpec)] buildHostnameVerifier: created hostname verifier: com.typesafe.sslconfig.ssl.DefaultHostnameVerifier@4a003cbe
[DEBUG] [05/24/2016 09:31:45.550] [ConnectionPoolSpec-akka.actor.default-dispatcher-2] [akka://ConnectionPoolSpec/system/IO-TCP/selectors/$a/0] Successfully bound to /127.0.0.1:60126
[DEBUG] [05/24/2016 09:31:46.141] [ConnectionPoolSpec-akka.actor.default-dispatcher-3] [akka://ConnectionPo
@aruediger
aruediger / ActorMaterializerSettingsApp.scala
Created May 20, 2016 15:07 — forked from johanandren/ActorMaterializerSettingsApp.scala
Does the stages inherit the materializer strategy?
package streams
import akka.actor.ActorSystem
import akka.stream.ActorAttributes.SupervisionStrategy
import akka.stream.Supervision.Resume
import akka.stream._
import akka.stream.scaladsl.Source
import akka.stream.stage.{GraphStage, GraphStageLogic}
object ActorMaterializerSettingsApp extends App {
@aruediger
aruediger / fixed.sh
Last active May 2, 2016 09:17
lists all references to open and fixed issues in code comments
#!/bin/bash
read -p "Organization: " ORG; read -p "Repository: " REPO; read -p "Github username: " USER; read -s -p "Password: " PASS
CLOSED_FILE="closed-issues.txt"
if [[ ! -e $CLOSED_FILE ]]; then
for (( i = 1 ; i < 200; i++ )); do
URL="https://api.github.com/repos/$ORG/$REPO/issues?state=closed&page=$i&per_page=100"
echo "fetching $URL"
HEADERS=""
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.http.scaladsl.client.RequestBuilding
import akka.http.scaladsl.marshalling.PredefinedToEntityMarshallers
import akka.http.scaladsl.server.{ MalformedFormFieldRejection, RejectionHandler, ExceptionHandler }
import scala.concurrent.duration._
import akka.http.scaladsl.server.Directives._
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{ Keep, Sink, Flow, Source }
[error] x example-1
[error] 'Right(HttpEntity(application/json; charset=UTF-8,{
[error] "name": "Bob",
[error] "firstName": "Parr",
[error] "age": 32
[error] }))'
[error] is not equal to
[error] 'Right(HttpEntity(application/json; charset=UTF-8,{
[error] "name": "Bob",
@aruediger
aruediger / spraytest.txt
Created July 24, 2013 14:47
spray master test failures on win7
[info] Loading global plugins from C:\Users\AndreR\.sbt\plugins
[info] Loading project definition from C:\Users\AndreR\projects\spray\project
[info] Set current project to root (in build file:/C:/Users/AndreR/projects/spray/)
[info] Formatting 1 Scala source {file:/C:/Users/AndreR/projects/spray/}spray-http(compile) ...
[info] No tests to run for examples/test:test
[info] No tests to run for spray-can-examples/test:test
[info] No tests to run for spray-client-examples/test:test
[info] No tests to run for spray-servlet-examples/test:test
[info] No tests to run for spray-routing-examples/test:test
[info] No tests to run for root/test:test