Skip to content

Instantly share code, notes, and snippets.

@voidcontext
voidcontext / IO example.scala
Last active March 14, 2018 12:22
Nesting IO
import cats.effect.IO
import scala.concurrent.{Await, Future}
import scala.concurrent.duration._
import scala.concurrent.ExecutionContext.Implicits.global
case class Repository()
case class MetaData(name: String)
trait APIClient {
def getRepositories: IO[List[Repository]]

Keybase proof

I hereby claim:

  • I am voidcontext on github.
  • I am gaborpihaj (https://keybase.io/gaborpihaj) on keybase.
  • I have a public key ASAPLsGETQuZec5avqrkre779b8HxB9eUUGjPJxFaR7VdQo

To claim this, I am signing this object:

@voidcontext
voidcontext / rpi-configuration.nix
Created December 15, 2019 15:24
Default RPi Nixos Config template
{ config, pkgs, lib, ... }:
{
# NixOS wants to enable GRUB by default
boot.loader.grub.enable = false;
# Enables the generation of /boot/extlinux/extlinux.conf
boot.loader.generic-extlinux-compatible.enable = true;
# !!! If your board is a Raspberry Pi 1, select this:
boot.kernelPackages = pkgs.linuxPackages_rpi;
# !!! Otherwise (even if you have a Raspberry Pi 2 or 3), pick this:
@voidcontext
voidcontext / jh-uconsole-110.patch
Last active April 4, 2024 14:29 — forked from JosephHewitt/jh-uconsole-110.patch
uConsole patch for kernel 5.10.110. This is a modification of https://github.com/clockworkpi/uConsole/tree/master/Code/patch/cm4/20230630 and the patch is based on commit 8e1110a580887f4b82303b9354c25d7e2ff5860e
diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile
index 6fcacdccb608..8e3a0dc87e92 100644
--- a/arch/arm/boot/dts/overlays/Makefile
+++ b/arch/arm/boot/dts/overlays/Makefile
@@ -34,6 +34,12 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
cap1106.dtbo \
chipdip-dac.dtbo \
cma.dtbo \
+ devterm-bt.dtbo \
+ devterm-misc.dtbo \