Skip to content

Instantly share code, notes, and snippets.

@j8r
j8r / compile-crystal-arm64.sh
Last active October 13, 2024 08:40
Compile a Crystal program to a statically linked arm64 binary
#!/bin/sh -eu
LOCAL_PROJECT_PATH=${1-$PWD}
BUILD_COMMAND="
shards build --static --release
chown 1000:1000 -R bin
"
INSTALL_CRYSTAL="
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >>/etc/apk/repositories
apk add --update --no-cache --force-overwrite \
@pranav083
pranav083 / GPIO_p8_11_led3.p
Created June 11, 2019 22:09
gpio not working p8.11
.origin 0
.entrypoint START
// the number of times we blink the LED
#define NUMBER_OF_BLINKS 10
#define GPIO_BANK1 0x4804c000
#define GPIO1_LED3BIT 1<<24
#define GPIO_SETDATAOUT 0x194
#define GPIO_CLEARDATAOUT 0x190
obj-m += uio_pruss_shmem.o
all:
make -C /lib/modules/`uname -r`/build M=`pwd` V=1 ARCH=arm modules
install:
make -C /lib/modules/`uname -r`/build INSTALL_MOD_PATH=/lib/modules/`uname -r` M=`pwd` V=1 ARCH=arm modules_install
cd /lib/modules/`uname -r`
depmod -a
/opt/scripts/tools/developers/update_initrd.sh
@ansarid
ansarid / example.md
Created August 1, 2019 22:04
mjpg_streamer opencv module
sudo apt update
sudo apt install mjpg-streamer-opencv-python

Create filter file. (/home/debian/opencv_filter.py)

import cv2
import numpy as np
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@StaticRocket
StaticRocket / rapid-clone.sh
Last active October 13, 2023 00:19
Quickly backup and deploy bootable SD cards with variable size ext4 root partitions
#!/bin/sh
[ -z "$PART_PREFIX" ] && PART_PREFIX=''
DD_ARGS='status=progress conv=fsync'
backup() {
src="$1"
dst="$2"
sfdisk -d "${src}" > "${dst}-table.txt"
@AryanNanda17
AryanNanda17 / GSoC2024-Final-Report.md
Last active March 27, 2026 13:59
Blog summarizing my work in GSoC-2024

Beaglemind Project Roadmap

Current Status

  • Deployed Platform: Frontend (mind.beagleboard.org), API (api.beagleboard.org)
  • CLI Tool: For local assistant usage
  • Core Features: Tool calling, RAG-based information retrieval
  • Provider Support: OpenAI, OpenRouter, Groq, Ollama (extensible)

Key Pain Points & Focus Areas