required tool list:
- brew
- iterm2 命令行工具,切屏方便
- omnigraffle 破解版
- Intellij IDEA 开发工具,用社区版
- typora markdown编辑器,可以导出多种格式,包括pdf
- Quicksilver 快捷键打开软件,control + space
- Sublime Text 3 文本编辑器,可以作为代码开发工具使用
required tool list:
| 2017-01-26 07:42:56 | |
| Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode): | |
| "flink-akka.actor.default-dispatcher-48" daemon prio=5 tid=0x00007ff236c96800 nid=0xcf2f waiting on condition [0x000070000a078000] | |
| java.lang.Thread.State: WAITING (parking) | |
| at sun.misc.Unsafe.park(Native Method) | |
| - parking to wait for <0x00000007fd161f00> (a akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinPool) | |
| at scala.concurrent.forkjoin.ForkJoinPool.scan(ForkJoinPool.java:2075) | |
| at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) | |
| at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) |
| package utils | |
| import java.io.File | |
| import com.google.common.base.Charsets | |
| import com.google.common.io.Files | |
| import scala.io.Source | |
| /** |
| package utils | |
| import scala.io.Source | |
| /** | |
| * parse jstack log | |
| */ | |
| object JavaStackParser { | |
| def main(args: Array[String]): Unit = { | |
| val lines = Source.fromFile("/Users/sjk/19229.log").getLines() |
| git branch -r | awk -F/ '/\/release/{print $2}' | xargs -I {} git push origin :{} | |
| git tag -l | xargs -n 1 git push --delete origin |
| server { | |
| listen 7000; | |
| server_name localhost; | |
| location / { | |
| root /Users/sjk/apps; | |
| autoindex on; | |
| } |
| // that would be: | |
| // SI-5079 "Scaladoc can't link to an object (only a class or trait)" | |
| // SI-4497 "Links in Scaladoc - Spec and implementation unsufficient" | |
| // SI-4224 "Wiki-links should support method targets" | |
| // SI-3695 "support non-fully-qualified type links in scaladoc comments" | |
| // SI-6487 "Scaladoc can't link to inner classes" | |
| // SI-6495 "Scaladoc won't pick up group name, priority and description from owner chain" | |
| // SI-6501 "Scaladoc won't link to a @template type T as a template but as a member" | |
| package scala.test.scaladoc.links { | |
| import language.higherKinds |
| val promise = Promise[ExecResult]() | |
| // stop spark cluster | |
| SparkUtil.stop(promise) | |
| log.info("=========stopping spark cluster==========" + msg) | |
| val f = promise.future | |
| f onComplete { | |
| case Success(x) => | |
| log.info("===================2222 " + x) | |
| case Failure(x) => |
| object Test { | |
| def main(args: Array[String]): Unit = { | |
| val j = new JSONObject(Map[String, Int]("11" -> 111, "ff" -> 234234)) | |
| println(j.toString()) | |
| val a = JSON.parseFull(j.toString()) | |
| a match { | |
| case Some(x: Map[String, Any]) => println(x.getClass + "," + x) | |
| case None => | |
| } |
| package akka | |
| import akka.actor.{Actor, ActorSystem, Props} | |
| import scala.concurrent.duration._ | |
| object AkkaScheduleTest { | |
| def main(args: Array[String]) { | |
| val system = ActorSystem("akka_system") | |
| system.actorOf(Props[AkkaScheduleTest], "test_actor") |