Skip to content

Instantly share code, notes, and snippets.

View gjrtimmer's full-sized avatar

Gerrit Timmer gjrtimmer

View GitHub Profile
@theycallmeloki
theycallmeloki / Raspberry Pi 4 x 6 cluster 65B Llama runner gist
Last active October 14, 2024 15:56
an ansbile script that quickly bootstraps a Pi 4 cluster with tools required to run a 65B llama model
You will need the following two files, be sure to change the IP address in both sections, the `hostfile_contents`
as well as the ansible inventory section to reflect your configuration
Rest of the steps should run parallely across the different machines, for any updates to this script,
check this thread: https://github.com/ggerganov/llama.cpp/issues/2164#issuecomment-1639640846
If you want an automated way to do this in the future and would like an opionated setup procedure,
check this repo: https://github.com/theycallmeloki/edith-cli
@keenahn
keenahn / git-default-branch.sh
Last active November 16, 2023 10:21
A simple bash script to check if the default branch is main or master for a given repo
#!/bin/bash
# Check if the remote 'origin' has a 'main' branch
if git show-branch remotes/origin/main > /dev/null 2>&1; then
echo "main"
else
echo "master"
fi
@LinusCDE
LinusCDE / ffmpeg-wrapper.sh
Last active December 18, 2024 00:55
FFmpeg Wrapper script that forces jellyfin to use nvmpi hardware accelleration when device is a nvidia jetson and jetson-ffmpeg is added
#!/bin/bash
SHELLDIR=$(dirname "`realpath \"$0\"`")
FORCE_HW_DECODE=true
FORCE_HW_ENCODE=true
echo "WRAPPER OLD: " $0 "$@"
skipnext=false
@Nielio
Nielio / compose.yml
Last active April 23, 2025 07:48
Gitlab CE with build in Container Registry behind Traefik 2 with Letsencrypt
version: "3.6"
services:
gitlab:
image: gitlab/gitlab-ce
volumes:
- gitlab-data:/var/opt/gitlab
- gitlab-logs:/var/log/gitlab
- gitlab-config:/etc/gitlab
networks:
- traefik-public
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/