This file contains hidden or 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
| find -name "*.m4a" -exec bash -c 'ffmpeg -i "{}" -acodec libmp3lame -ab 256k "${0/.m4a}.mp3" && rm "{}"' {} \; |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| [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 |
This file contains hidden or 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 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 { |
This file contains hidden or 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
| #!/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="" |
This file contains hidden or 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 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 } |
This file contains hidden or 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
| [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", |
This file contains hidden or 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
| [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 |