Skip to content

Instantly share code, notes, and snippets.

@JeremyGrosser
JeremyGrosser / u-boot_clockworkpi_cpi3.patch
Created October 23, 2019 18:47
u-boot config for gameshell
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 3b8dc2f56f..3150a68740 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -485,7 +485,8 @@ dtb-$(CONFIG_MACH_SUN8I_A33) += \
sun8i-a33-sinlinx-sina33.dtb \
sun8i-r16-bananapi-m2m.dtb \
sun8i-r16-nintendo-nes-classic-edition.dtb \
- sun8i-r16-parrot.dtb
+ sun8i-r16-parrot.dtb \
with Ada.Text_IO;
procedure Example is
use Ada.Text_IO;
begin
Put_Line ("Foo"); -- This is Ada.Text_IO.Put_Line if we don't have the use statement.
end Example;
@JeremyGrosser
JeremyGrosser / openwrt-and-vlans.md
Created August 13, 2020 21:23
OpenWRT and VLANs (2007)

I can't even count the number of times I thought to myself "Wouldn't it be great if OpenBSD ran on the Linksys WRT boxes?" I still haven't managed to find the time to learn how to port OpenBSD, but I have found an alternate solution. The OpenWRT project has finally released a stable build of Kamikaze which consists of a major rewrite and architecture shift from the previous White Russian build. The most noticeable change with Kamikaze is that userspace configuration is no longer stored in NVRAM, which solves a whole slew of issues that could arise if you accidentally wiped the wrong mtd device or something (not that anybody would ever do that...) All of the configuration is now stored in a sensible /etc/config folder with a common format for all of the options and separate files for different bits of functionality. The most useful of which being /etc/config/network, which has some pretty nifty ways of creating new pseudo-interfaces and bridges. This type of setup also makes it a lot easier to play around with

Keybase proof

I hereby claim:

  • I am jeremygrosser on github.
  • I am synack (https://keybase.io/synack) on keybase.
  • I have a public key ASAWqaCxiyGPdTnmnhMFLa3ReTgDP0cR5r3puJWZIosnSwo

To claim this, I am signing this object:

@JeremyGrosser
JeremyGrosser / generic_nested.adb
Created May 25, 2021 23:47
Nested generic packages in Ada
package body Generic_Nested is
package body Inner_Nested is
procedure Test (A : A_Type; B : B_Type) is
begin
null;
end Test;
end Inner_Nested;
end Generic_Nested;
@JeremyGrosser
JeremyGrosser / main.adb
Created May 25, 2021 23:54
Nested generic procedures in Ada
procedure Main is
generic
type A_Type is private;
procedure Outer (A : A_Type);
procedure Outer (A : A_Type) is
generic
type B_Type is private;
procedure Inner (A : A_Type; B : B_Type);
Linux version 5.10.0-7-cloud-arm64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #
1 SMP Debian 5.10.40-1 (2021-05-28)
root@ip-10-0-1-183:/home/admin# kexec -l /boot/vmlinuz-5.10.0-8-cloud-arm64 --initrd=/boot/initrd.img-5.10.0-8-cloud-arm64 --append="$(cat /proc/cmdline)"
root@ip-10-0-1-183:/home/admin# kexec -e
with "config/hello_pico_config.gpr";
with "pico_bsp.gpr";
project Hello_Pico is
for Target use "arm-eabi";
for Runtime ("Ada") use "zfp-cortex-m0p";
package Linker is
for Switches ("Ada") use Pico_BSP.Linker_Switches;
end Linker;
@JeremyGrosser
JeremyGrosser / printer-ultimaker-original-1.5.6.cfg
Created January 24, 2022 00:19
Klipper config for Ultimaker Original 1.5.6
# This file contains common pin mappings for Ultimaker Original with the v1.5.6
# board. To use this config, the firmware should be compiled for the AVR
# atmega2560.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PA3
dir_pin: !PA1
enable_pin: !PA5
synack@polar ~/build/hal(master) $ cat hal.gpr
project HAL is
for Source_Dirs use ("src");
for Library_Name use "hal";
for Object_Dir use "obj";
for Library_Dir use "lib";
for Library_Kind use "static";