Skip to content

Instantly share code, notes, and snippets.

@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 \
@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:

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 / 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]]
@voidcontext
voidcontext / switch-kblayout
Created January 16, 2015 09:40
Switch keyboard layout
#!/bin/bash
CURRENT=`setxkbmap -query | grep layout | awk '{print $2}'`
if [ "$CURRENT" == "us" ]; then
setxkbmap hu
else
setxkbmap us
fi
-- Problem 1
sum [x | x <- [0..999], x `mod` 3 == 0 || x `mod` 5 == 0 ]
@voidcontext
voidcontext / ovpn.pl
Last active August 29, 2015 14:07
OpenVPN client config generator
#!/usr/bin/perl
# vim: expandtab ts=2 sw=2
use warnings;
use strict;
use File::Slurp qw{read_file};
my $remote = $ARGV[0];
my $client= $ARGV[1];
@voidcontext
voidcontext / google-chrome
Created September 15, 2014 12:29
Fix: Google Chrome cannot determine or set the default browser.
#!/usr/bin/fish
env GNOME_DESKTOP_SESSION_ID=1 /usr/bin/google-chrome
@voidcontext
voidcontext / add ca
Last active August 29, 2015 14:05
Add CA cert on Fedora
cp myCA.crt /usr/share/pki/ca-trust-source/anchors
update-ca-trust extract
@voidcontext
voidcontext / di.pl
Created August 27, 2014 15:57
Docker Inspect utility
#!/usr/bin/perl
# vim: expandtab ts=2 sw=2
=pod
=head1 Docker Inspect utility
usage:
docker inspect I<container_name> | di I<todo>