Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar
🐎
🏈

Pradeep Gowda btbytes

🐎
🏈
View GitHub Profile
@btbytes
btbytes / README.md
Last active March 18, 2024 21:19
GrantSlatton CSS
@btbytes
btbytes / untangling.md
Last active March 12, 2024 11:41
Untangling Lifetimes: The Arena Allocator by Ryan Fleury

Untangling Lifetimes: The Arena Allocator

Making performant dynamic manual memory management in C feel almost like garbage collection.

RYAN FLEURY

SEP 24, 2022

In every instance when I’ve said that I prefer to write my software in C, the response is—normally—raised eyebrows. Several dominant memes in the programming world make my position unpopular, and thus uncommon to find. I regularly hear, “why would you write new code in an unsafe systems language?”, “performance isn’t everything!”, and perhaps the most common, “why subject yourself to the requirement of manually managing memory?”.

@btbytes
btbytes / README.md
Created February 19, 2024 11:03
Second email

The Second Email

TheSecond.Email is an email that is online when you are online.

As a user, I want to receive email only when I'm online.

What if we can provide an email address to the user that is active ONLY when the user is online and expecting an email?

When the user is online (ie., logged into the webpage offering this service), the email is delivered to their inbox, ie., the web page they are on.

@btbytes
btbytes / danluu.js
Created January 30, 2024 17:59
fix up css on danluu.com
// ==UserScript==
// @name make danluu.com readable
// @namespace https://www.btbytes.com/
// @version 2024-01-30
// @description make danluu.com readable
// @author Pradeep Gowda
// @match https://danluu.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@btbytes
btbytes / rust.png
Last active January 15, 2024 09:00
Rust Strings
rust.png
@btbytes
btbytes / dnsmasq OS X.md
Created November 26, 2023 15:34 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

#!/usr/bin/env python3
import zipfile
import sys
import re
import xml.etree.ElementTree as ET
namespaces = {
'a': 'http://schemas.openxmlformats.org/drawingml/2006/main',
'r': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships',
@btbytes
btbytes / .directions.md
Created October 25, 2023 18:25 — forked from ericlewis/.directions.md
A conversational chatbot experience.

Prerequisites

  • API key for OpenAI.
  • API key for Picovoice
  • API key for ElevenLabs
  • mpg123 installed
  • node 18+

Directions

  • git clone https://gist.github.com/ericlewis/ccd3f0b7a17fcbe2473121a473082c8f
  • edit .env with your keys
@btbytes
btbytes / llm-training.md
Last active March 17, 2024 13:17
Copy of https://rentry.org/llm-training. Updated 2024-03-03

-> lmg-train.png<-

The Novice's LLM Training Guide

->Written by Alpin<- ->Inspired by /hdg/'s LoRA train rentry<- !!!warning This guide is being slowly updated. We've already moved to the axolotl trainer.


[TOC2]

@btbytes
btbytes / script.fsx
Created October 2, 2023 02:49 — forked from luisquintanilla/script.fsx
Style Transfer: Image to Mosaic F#, ML.NET, ONNX Sample
#r "nuget:Microsoft.ML"
#r "nuget:Microsoft.ML.OnnxRuntime"
#r "nuget:Microsoft.ML.OnnxTransformer"
#r "nuget:Microsoft.ML.ImageAnalytics"
#r "nuget:System.Drawing.Common"
open System.IO
open System.Drawing
open Microsoft.ML
open Microsoft.ML.Data