Skip to content

Instantly share code, notes, and snippets.

View bneil's full-sized avatar
🍙
everything really is awesome

Benjamin Neil bneil

🍙
everything really is awesome
View GitHub Profile
@bneil
bneil / CustomCodecs.scala
Created December 31, 2015 23:34
Adding a custom en/decoder for quill async-postgres
import java.util.UUID
import com.github.mauricio.async.db.RowData
trait CustomCodecs {
implicit val uuidEncoder = new Database.db.Encoder[UUID] {
def apply(index: Int, value: UUID, row: List[Any]) =
row :+ value
}
@bneil
bneil / gist:4799a88dbf18dd26ca21
Created August 13, 2015 15:55
level3 connectivity issue
$> mtr 8.8.8.8
Host Loss% Snt Last Avg Best Wrst StDev
1. 10.1.10.1 0.0% 12 6.0 5.3 2.0 10.2 2.6
2. 50.152.30.1 0.0% 12 30.0 21.3 10.9 31.1 6.5
3. xe-2-0-0-0-sur02.denver.co.denver.comcast.net 0.0% 12 14.7 20.7 10.8 47.0 10.2
4. ae-20-0-ar01.aurora.co.denver.comcast.net 0.0% 12 20.3 27.5 14.3 60.8 15.8
5. lag-4.ear1.Denver.Level3.net 90.0% 11 29.5 29.5 29.5 29.5 0.0
6. Google.ear1.Denver1.Level3.net 0.0% 11 16.2 20.6 16.2 29.6 4.1
7. 216.239.42.249 0.0% 11 21.3 20.9 14.4 28.2 4.5
@bneil
bneil / gist:76bcc1ea3a8a70c97fe2
Created June 15, 2015 22:20
Kamon has not been started yet.
//BAD
object Boot {
implicit val system = ActorSystem("test")
def main(args: Array[String]): Unit = {
Kamon.start()
class ApplicationServer(val actorSystem: ActorSystem) extends Stuff
new ApplicationServer(system)
system.shutdown()
@bneil
bneil / keybase.md
Created January 29, 2015 03:21
keybase.md

I hereby claim:

  • I am bneil on github.
  • I am trugrok (https://keybase.io/trugrok) on keybase.
  • I have a public key whose fingerprint is 8409 901D BBFC 6E07 4490 E259 AF63 63EE 28D2 9D6B

To claim this, I am signing this object:

{