Skip to content

Instantly share code, notes, and snippets.

import scala.concurrent.{ExecutionContext, Future}
import scala.util.{Failure, Success}
import scalaz.std.scalaFuture._
import scalaz.{ContT, Kleisli}
package object smt {
type FutureCont[A] = ContT[Future, A, A]
type DBActionz[A] = Kleisli[FutureCont, Context, A]
package foo
import akka.stream.ActorAttributes.SupervisionStrategy
import akka.stream.Attributes.name
import akka.stream.impl.Stages.DefaultAttributes.IODispatcher
import akka.stream.stage.{GraphStage, GraphStageLogic, InHandler}
import akka.stream.{Attributes, Inlet, SinkShape, Supervision}
import scala.annotation.tailrec
import scala.util.control.NonFatal
@tkawachi
tkawachi / ec2-tokyo-ip.sh
Created March 18, 2016 05:35
EC2の東京regionで使われている IP アドレス範囲を得る
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '[ .prefixes | .[] | select(.region=="ap-northeast-1") | select(.service=="EC2") | .ip_prefix ]'

foo.js をコンパイル

export default function () {
  console.log('foo');
}

babel 5.8.29

[error] (run-main-0) java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.jar.Attributes.read(Attributes.java:394)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:199)
at java.util.jar.JarFile.getManifest(JarFile.java:180)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:944)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:450)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
12/19/15 16:40:40.164 RICOH THETA[12875]: renaming from
/Applications/RICOH THETA.app/Contents/MacOS/RICOH THETA
to
/Applications/RICOH THETA.app/Contents/MacOS/RICOH THETA_32
12/19/15 16:40:40.176 RICOH THETA[12875]: renaming failed with this error: Error Domain=NSCocoaErrorDomain Code=513 "“RICOH THETA” couldn’t be moved because you don’t have permission to access “MacOS”." UserInfo={NSSourceFilePathErrorKey=/Applications/RICOH THETA.app/Contents/MacOS/RICOH THETA, NSUserStringVariant=(
Move
), NSFilePath=/Applications/RICOH THETA.app/Contents/MacOS/RICOH THETA, NSDestinationFilePath=/Applications/RICOH THETA.app/Contents/MacOS/RICOH THETA_32, NSUnderlyingError=0x413b70 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
[error] (run-main-0) java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.zip.Inflater.<init>(Inflater.java:103)
at java.util.zip.ZipFile.getInflater(ZipFile.java:455)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:374)
at java.util.jar.JarFile.getInputStream(JarFile.java:447)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:940)
at sun.misc.Resource.cachedInputStream(Resource.java:77)
at sun.misc.Resource.getByteBuffer(Resource.java:160)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:454)
/Satoshi:0.11.1/ 19
/Satoshi:0.11.0/ 16
/Satoshi:0.11.2/ 8
/Bitcoin XT:0.11.0C/ 5
/Satoshi:0.10.2/ 5
/Satoshi:0.9.3/ 3
/Satoshi:0.11.99/ 3
/Satoshi:0.9.2.1/ 3
/Satoshi:0.9.1/ 3
/Satoshi:0.10.0/ 2
.icon-spin {
display: inline-block;
-webkit-animation: spin 1.5s infinite linear;
-moz-animation: spin 1.5s infinite linear;
-o-animation: spin 1.5s infinite linear;
animation: spin 1.5s infinite linear;
}