Skip to content

Instantly share code, notes, and snippets.

View locnnil's full-sized avatar
🤘
Awesome

Lincoln Wallace locnnil

🤘
Awesome
View GitHub Profile
@locnnil
locnnil / notes.md
Created October 29, 2023 02:30
notes_about_pi_pico_setup

Notes

export CC="/usr/bin/arm-none-eabi-gcc"
export CXX="/usr/bin/arm-none-eabi-g++"
export AS="/usr/bin/arm-none-eabi-as"
export LD="/usr/bin/arm-none-eabi-ld"
export AR="/usr/bin/arm-none-eabi-ar"
export NM="/usr/bin/arm-none-eabi-nm"
@locnnil
locnnil / reserve.sh
Last active December 15, 2023 14:36
Reserve and poll a system on Testflinger
#!/usr/bin/env bash
declare -A COLOR
COLOR['END']='\033[0m'
COLOR['RED']='\033[0;31m'
if [ "$#" -ne 1 ]; then
echo -e "${COLOR['RED']}[ERROR] You must provide one and only one argument:${COLOR['END']}" >&2
echo -e "${COLOR['RED']}1. The path to the job.yaml file\n${COLOR['END']}" >&2
exit 1
@locnnil
locnnil / RPix-blink.sh
Last active February 14, 2024 01:06
Bash blink code using gpiod
@locnnil
locnnil / halving_monitor
Created April 14, 2024 21:16
BTC Halving monitor - A simple bash script to tell how many blocks rest for the next halving
#!/usr/bin/env bash
declare -A COLOR
COLOR['END']='\033[0m'
COLOR['RED']='\033[0;31m'
COLOR['GREEN']='\033[0;32m'
COLOR['YELLOW']='\033[0;33m'
COLOR['BLUE']='\033[0;34m'
COLOR['WHITE']='\033[0;37m'
@locnnil
locnnil / ubuntu_update_booting_kernel.md
Created June 25, 2024 18:50 — forked from chaiyujin/ubuntu_update_booting_kernel.md
Ubuntu: Install Kernel and Set GRUB Default Kernel

Ubuntu: Install Kernel and Set GRUB Default Kernel

Install Kernel

Install the default kernel:

sudo apt install linux-generic

Set GRUB Default Kernel

  1. Find entrance from /boot/grub/grub.cfg
    • Get the $menuentry_id_option:
@locnnil
locnnil / notes.md
Created June 29, 2024 22:11
BIOS update ASUS TUF GAMING X670E-PLUS

How to update bios

  • Go to Asus TUF Gaming X670E-PLUS site

  • On the section Driver & Utility download the most recent version

  • Unzip it, rename from: TUF-GAMING-X670E-PLUS-ASUS-XXXX.CAP to TX670EPL.CAP

  • Format a USB stick to FAT and copy the TX670EPL.CAP to it

  • Put the USB stick into USB port intended for BIOS update

@locnnil
locnnil / rust-static-link-gnu-analysis.md
Last active July 24, 2024 11:01
How Small a GLIC Rust static Link binary can be?
@locnnil
locnnil / Makefile
Created December 18, 2024 22:04
Playing with CPU PM Quality Of Service Interface (/dev/cpu_dma_latency)
# Compiler and flags
CC = gcc
CFLAGS = -Wall -Wno-nonnull -Wextra -Wno-sign-compare
# Target names
TARGET = qos
SRCS = main.c
OBJS = $(SRCS:.c=.o)
# Default target