Skip to content

Instantly share code, notes, and snippets.

View gerred's full-sized avatar
:octocat:

Gerred Dillon gerred

:octocat:
View GitHub Profile
@ToddGreenstein
ToddGreenstein / quickDeployKuberentesCCM.sh
Last active March 28, 2018 09:40
Quick deploy script for kubernetes if using CCM
#!/bin/bash
usage(){
echo " Usage: $0 url <clean> <tls>"
echo " url: http url to your DC/OS cluster master ip"
echo " clean: optional, will erase your DC/OS and kubectl configs and reconfigure"
echo " tls: optional, will deploy kubernetes using TLS"
echo " Minimum Config:"
echo " If using CCM the mininum configuration for the ""generic"" Kuberentes Install"
echo " 1 public slave node"
@yogthos
yogthos / clojure-beginner.md
Last active September 16, 2025 19:17
Clojure beginner resources

Introductory resources

@dbrookman
dbrookman / build-mpv_silicon.sh
Last active September 5, 2025 06:46
How to build mpv & mpv.app on an Apple silicon Mac
#!/usr/bin/env bash
# Builds mpv & mpv.app on Apple silicon Macs.
# Run this script from the root directory of the mpv repo.
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build
@rob5300
rob5300 / hologram.vfx
Last active November 2, 2022 20:30
Simple Hologram shader for S&Box
HEADER
{
CompileTargets = ( IS_SM_50 && ( PC || VULKAN ) );
Description = "Hologram Effect";
}
FEATURES
{
#include "common/features.hlsl"

History

For a long time I've been really impacted by the ease of use Cassandra and CockroachDB bring to operating a data store at scale. While these systems have very different tradeoffs what they have in common is how easy it is to deploy and operate a cluster. I have experience with them with cluster sizes in the dozens, hundreds, or even thousands of nodes and in comparison to some other clustered technologies they get you far pretty fast. They have sane defaults that provide scale and high availability to people that wouldn't always understand how to achieve it with more complex systems. People can get pretty far before they have to become experts. When you start needing more extreme usage you will need to become an expert of the system just like any other piece of infrastructure. But what I really love about these systems is it makes geo-aware data placement, GDPR concerns potentially simplified and data replication and movement a breeze most of the time.

Several years ago the great [Andy Gross](ht

@DayOfThePenguin
DayOfThePenguin / chat.proto
Last active June 28, 2023 21:22
Chat Proto
syntax = "proto3";
package chat;
option go_package = "github.com/defenseunicorns/leapfrogai/pkg/client/chat";
// ChatRequest is the payload to Chat creation
message ChatRequest {
repeated string inputs = 1;
}
@jhabr
jhabr / build_torch_orin.sh
Last active April 14, 2025 12:57
Build PyTorch for Nvidia Jetson AGX Orin
#!/bin/bash
export USE_NCCL=0
export USE_DISTRIBUTED=1
export USE_QNNPACK=0
export USE_PYTORCH_QNNPACK=0
# Orin is based on Ampere Achitecture
export TORCH_CUDA_ARCH_LIST="8.7"
@mrm8488
mrm8488 / 26_prompt_principles.md
Created May 27, 2024 00:33
26 prompt principles

Overview of 26 prompt principles

#Principle Prompt Principle Example Prompt
1 If you prefer more concise answers, no need to be polite with LLM so there is no need to add phrases like “please", "if you don't mind", "thank you", "I would like to", etc., and get straight to the point. Could you kindly describe the structure of a human cell, please? Describe the structure of a human cell.
2 Integrate the intended audience in the prompt, e.g., the audience is an expert in the field. Construct an overview of how smartphones work, intended for seniors who have never used one before.
3 Break down complex tasks into a sequence of simpler prompts in an interactive conversation. P1: Distribute the negative sign to each term inside the parentheses of the following equation: 2x + 3y - (4x - 5y) P2: Combine like terms for 'x' and 'y' separately. P3: Provide the simplified expression after combining t
@disler
disler / README.md
Last active August 18, 2025 09:58
Use Meta Prompting to rapidly generate results in the GenAI Age

Meta Prompting

In the Generative AI Age your ability to generate prompts is your ability to generate results.

Guide

Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.

Replace {{user-input}} with your own input to generate prompts.

Use mp_*.txt as example user-inputs to see how to generate high quality prompts.