Skip to content

Instantly share code, notes, and snippets.

@rain-1
rain-1 / LLM.md
Last active May 15, 2025 04:52
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@kconner
kconner / macOS Internals.md
Last active May 15, 2025 02:32
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@larry0x
larry0x / json-raw-message-to-sdk-msg.go
Created June 16, 2023 03:37
json.RawMessage to sdk.Msg
package main
import (
"encoding/json"
"fmt"
"reflect"
"cosmossdk.io/simapp"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
@tunaitis
tunaitis / backup.sh
Created December 3, 2024 19:20
SQLite database rolling backup script with rclone
#!/bin/bash
DB_PATH="/path/to/sqlite/database.db" # Path to your SQLite database
TIMESTAMP=$(date +"%Y%m%d_%H%M%S") # Timestamp for the backup
ROLLING_LIMIT=30 # Number of backups to keep
BACKUP_DIR="/tmp" # Temporary local backup directory
BACKUP_NAME="backup_$TIMESTAMP.sqlite" # Backup filename
REMOTE_NAME="remote" # Name of your rclone remote
REMOTE_PATH="backups" # Remote bucket or folder