Skip to content

Instantly share code, notes, and snippets.

@jcollingj
jcollingj / superwhisper_stats.ts
Created March 28, 2024 14:19
Get your stats out of Superwhisper
import { readdirSync, readFileSync } from "fs";
import { join } from "path";
function listContentsAndAnalyzeDurations(directoryPath: string) {
const filesAndFolders = readdirSync(directoryPath, { withFileTypes: true });
let totalRecordings = 0;
let durations_milliseconds: number[] = [];
let totalCharacters = 0;
let totalWords = 0;
@Artefact2
Artefact2 / README.md
Last active May 3, 2024 11:33
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 22, 2024 08:47
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
@darth-veitcher
darth-veitcher / gpt4all-mac.md
Created April 11, 2023 08:29
GPT4All on a Mac

High level instructions for getting GPT4All working on MacOS with LLaMACPP

See nomic-ai/gpt4all for canonical source.

Environment

  • This walkthrough assumes you have created a folder called ~/GPT4All. Adjust the following commands as necessary for your own environment.
  • It's highly advised that you have a sensible python virtual environment. A conda config is included below for simplicity. Install it with conda env create -f conda-macos-arm64.yaml and then use with conda activate gpt4all.
@geoffreylitt
geoffreylitt / langchain-experiment.ipynb
Created January 29, 2023 21:27
Langchain experiment
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@azaol-aegnor
azaol-aegnor / GTD-workflow_diagram
Last active January 9, 2024 15:22
A handcrafted SVG version of the Workflow Diagram from David Allen's book named Getting Things Done, typped for personnal use so you might want to remove the variables at lines 17, 22, 25 and 32.
<svg class="gtd-wd" width="800" height="620" xmlns="http://www.w3.org/2000/svg"><style>
.gtd-wd {
background-color: var(--background-primary, #202020)
}
.gtd-wd :is(line, rect, path) {
stroke: var(--text-normal, #dcddde);
}
.gtd-wd :is(text, .fill) {
fill: var(--text-normal, #dcddde);
}
@alphapapa
alphapapa / fitness.org
Last active April 6, 2024 04:33
An Emacs food/weight/workout tracker self-contained in a single Org file

Plots

/home/me/org/double-plot.png

Tasks

@jessfraz
jessfraz / boxstarter.ps1
Last active April 11, 2024 16:02
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@slindner05
slindner05 / organize-photos.py
Last active November 8, 2019 19:43 — forked from cliss/organize-photos.py
Photo management script. This script will copy photos from "~/Pictures/iPhone Incoming" into a tree the script creates, with folders representing month and years, and photo names timestamped.Completely based on the work of the amazing Dr. Drang; see here: http://www.leancrew.com/all-this/2013/10/photo-management-via-the-finder/You can see more a…
#!/usr/bin/python
import sys
import os
import subprocess
import shlex
import os.path
from datetime import datetime
from dateutil import tz
from dateutil.parser import parse
@marcowahl
marcowahl / org-structure-as-dirs-and-files.el
Last active December 20, 2019 06:39
org-save-org-structure-as-dir-file-skeleton to save the org structure as dirs and files (marked with tag :file:)
(defun org-interpret-org-as-dir-file-skeleton ()
"Return the outline paths as lists.
Separated in those headlines not tagged 'file' and those tagged with 'file'."
(let (output-files output-dirs)
(org-map-entries
(lambda ()
(let* ((headline (car (cddddr (org-heading-components))))
(headline-path
(reverse
(cons