Skip to content

Instantly share code, notes, and snippets.

View japgolly's full-sized avatar
☠️
Non-existant

David Barri japgolly

☠️
Non-existant
View GitHub Profile

Dear Mum,

I'm sorry I missed your funeral. You know me — I would've spoken my truth authentically from my soul. I'd've spoken about good and bad, of pain and of love. The guests would've been furious at me. I'll visit your resting place in private one day.

So much of who I am, who I've become, who I continue to choose to be, is with deep thanks to you. You planted some of the most precious seeds in the garden of my child's soul. On good days, I love who I am. Many of the things I love about myself, and choose to pass onto my own children, are gifts I received from you, and have nurtured ever since.

I remember our long walks to Nana's. Long walks became a big habit in my life: meditative, calming and restorative — healing. And all those little blackbeetles we saved together, that taught me profound empathy for not just life itself, but especially for forms of life weaker than we are: the relatively powerless. Those little beings are insignificant to us, and yet we have the ability to completely change their

@japgolly
japgolly / pair-dual-boot-bluetooth.md
Created July 25, 2021 05:48 — forked from madkoding/pair-dual-boot-bluetooth.md
Pairing bluetooth devices (keyboard or mouse) in dual boot with Linux Ubuntu and Windows 10

1) Pair ALL bluetooth devices in linux (it is to have the files you will need to edit later)

2) Pair ALL bluetooth devices in Windows 10. If you know how, get the MAC address id from your bluethooth keyboard, we will need it later

3) Reboot and go back to Linux

4) Install chntpw package, this is needed to read the registry keys from Wintendo

sudo apt-get install chntpw
@japgolly
japgolly / gist:94242805800d8dc17c4eef55ec1550d6
Last active September 12, 2020 10:05
PAIN OF SALVATION - ACCELERATOR intro
3x 21/8 + 18/8
+---------------------+---------------------+---------------------+------------------+
|1ea2..3..4..5..6..7..|1..2..3..4..5..6..7..|1..2..3..4..5..6..7..|1..2..3..4..5..6..|
+---------------------+---------------------+---------------------+------------------+
|C c c c c c c |c c c c c c c |c c c c c c c |c c c c c cc c |
| s s| s s| s s| s |
|k k kk k k k kk k k |k k kk k k k kk k k |k k kk k k k kk k k |k k kk k k k kk k |
+---------------------+---------------------+---------------------+------------------+
@japgolly
japgolly / TypeInfoCache.java.patch
Created April 11, 2020 02:57
Postgres TIMESTAMP_WITH_TIMEZONE hack
--- base-db/src/main/java/org/postgresql/jdbc/TypeInfoCache.java.original
+++ base-db/src/main/java/org/postgresql/jdbc/TypeInfoCache.java
@@ -88,11 +88,11 @@
{"bit", Oid.BIT, Types.BIT, "java.lang.Boolean", Oid.BIT_ARRAY},
{"date", Oid.DATE, Types.DATE, "java.sql.Date", Oid.DATE_ARRAY},
{"time", Oid.TIME, Types.TIME, "java.sql.Time", Oid.TIME_ARRAY},
{"timetz", Oid.TIMETZ, Types.TIME, "java.sql.Time", Oid.TIMETZ_ARRAY},
{"timestamp", Oid.TIMESTAMP, Types.TIMESTAMP, "java.sql.Timestamp", Oid.TIMESTAMP_ARRAY},
- {"timestamptz", Oid.TIMESTAMPTZ, Types.TIMESTAMP, "java.sql.Timestamp",
+ {"timestamptz", Oid.TIMESTAMPTZ, Types.TIMESTAMP_WITH_TIMEZONE, "java.sql.Timestamp",
@japgolly
japgolly / aws-ecs-taskdef.json
Created November 11, 2019 05:23
node_exporter errors
{
"ipcMode": null,
"executionRoleArn": null,
"containerDefinitions": [
{
"dnsSearchDomains": null,
"logConfiguration": null,
"entryPoint": null,
"portMappings": [
{
@japgolly
japgolly / copy.sbt
Last active October 1, 2019 12:22
Scala.JS & SBT
// Assumptions:
// 1. You have one or more Scala.JS modules named jsModule1, jsModule2, ...
// 2. You have a web-serving (or otherwise JVM) module that will serve the JS assets
// The only "webby"/JS plugin I use apart from Scala.JS itself, is xsbt-web-plugin,
// and even that, only on my pre-http4s projects.
// xsbt-web-plugin allows me to quickly stop/start a servlet container from SBT.
// The snippet below is for "webappPostProcess" which is an xsbt-web-plugin task but
// if you aren't using it, you can just create a task with the same content and make
// "package" depend on it.
@japgolly
japgolly / 0.deps.gv.svg
Last active April 2, 2020 23:40
My Scala libraries & the status of their upgrade to Scala 2.13
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@japgolly
japgolly / upgrade.md
Last active April 26, 2022 02:55
Scala 2.13 migration notes

scalafix

addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.13")
import scalafix.sbt.ScalafixPlugin.autoImport.{scalafixDependencies, scalafixSemanticdb}

scalafixDependencies in ThisBuild += "org.scala-lang.modules" %% "scala-collection-migrations" % "2.1.4",
package shipreq.base.util
import java.util.UUID
import scalaz.Functor
import scalaz.syntax.functor._
import scalaz.Scalaz.Id
/** Takes a potentially slow `String* => String` function and makes it super fast by executing it once,
* turning the result into a template, then using the template for all subsequent calls.
*
@japgolly
japgolly / .bashrc
Created December 6, 2018 09:07
Graal docker alpine
export PS1='\n\[\e[32m\]\u@\h: \[\e[33m\]\w\[\e[0m\]\n> '
export BASH=/bin/bash
export SHELL=$BASH
export LS_OPTIONS='--color=auto'
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias la='ls $LS_OPTIONS -la'