Skip to content

Instantly share code, notes, and snippets.

View thecatfix's full-sized avatar
💬
Will reply if u direct mention me on GitHub or Twitter/X.

John Shelburne thecatfix

💬
Will reply if u direct mention me on GitHub or Twitter/X.
View GitHub Profile
@willccbb
willccbb / grpo_demo.py
Last active May 2, 2025 08:43
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
@thecatfix
thecatfix / ExtractingbooksfromAmazon.md
Last active August 10, 2024 02:00
Gist from Drafts

Obtaining a List of Books from Amazon and Audible to Import into Goodreads

Problem:

You need a comprehensive list of all the books you have purchased from Amazon or Audible and want to import this list into Goodreads as a CSV file.

Steps to Obtain Book List:

1.	Amazon’s Your Books Feature:
•	Visit the Amazon “Your Books” page at www.amazon.com/your-books.
•	Adjust the browser zoom with Ctrl + - to shrink the font.
@bradtraversy
bradtraversy / terminal-commands.md
Last active May 3, 2025 05:38
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
# Source: https://gist.github.com/0d73463668d1f75ac0e94c7cd7d03fed
###############################################
# GitHub CLI #
# How to manage repositories more efficiently #
# https://youtu.be/BII6ZY2Rnlc #
###############################################
# Referenced videos:
# - Ketch - How to Simplify Kubernetes Deployments: https://youtu.be/sMOIiTfGnj0
@vineus
vineus / mylist.md
Last active April 29, 2025 14:51
Software engineering links
@schl3ck
schl3ck / AppWatcher.js
Last active January 5, 2025 10:22
iOS Scriptable script to track the price and in-app purchases of your favourite apps
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: laptop-code;
// share-sheet-inputs: url;
/*******************************************
* *
* /\ *
* / \ _ __ _ __ *
* / /\ \ | '_ \| '_ \ *
* / ____ \| |_) | |_) | *