Skip to content

Instantly share code, notes, and snippets.

View atty303's full-sized avatar

Koji AGAWA atty303

View GitHub Profile
@atty303
atty303 / ConsulQuery.scala
Last active August 15, 2018 23:10
Consul Resolver for Finagle
package example.finagle.consul
/**
* @see https://github.com/kachayev/finagle-consul/blob/master/src/main/scala/com/twitter/finagle/consul/ConsulQuery.scala
*/
case class ConsulQuery(hosts: String,
name: String,
tags: Set[String],
dc: Option[String],
near: Option[String])
@atty303
atty303 / README.md
Last active January 23, 2022 01:28
atty303's boxstarter
# JMH version: 1.21
# VM version: JDK 11.0.8, OpenJDK 64-Bit Server VM, 11.0.8+10-LTS
# VM invoker: /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# VM options: -Xss128m -Xmx2g
# Warmup: 3 iterations, 10 s each
# Measurement: 3 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: zio.ArrayFillBenchmark.catsArrayFill

Keybase proof

I hereby claim:

  • I am atty303 on github.
  • I am atty303 (https://keybase.io/atty303) on keybase.
  • I have a public key whose fingerprint is 1D6A D7CA 1500 4605 8A4D BC16 ABB1 431F ED97 453A

To claim this, I am signing this object:

@atty303
atty303 / workspace.sc
Created April 19, 2022 16:47
mill + JediTerm integration
import $cp.`terminal-2.68.jar`
import $ivy.`com.googlecode.lanterna:lanterna:3.1.1`
import com.jediterm.terminal.TerminalColor
import com.jediterm.terminal.model.TerminalModelListener
import scala.util.Using
import com.jediterm.terminal.model.CharBuffer
import com.jediterm.terminal.util.CharUtils
import com.jediterm.terminal.{StyledTextConsumer, TerminalMode, TextStyle}
import com.googlecode.lanterna
@atty303
atty303 / README.md
Last active April 21, 2024 15:48
Path of Exile on Steam Deck / Japanese Font Fix