Skip to content

Instantly share code, notes, and snippets.

View appleseed-iii's full-sized avatar

Applebee's appleseed-iii

View GitHub Profile
@karpathy
karpathy / add_to_zshrc.sh
Created August 25, 2024 20:43
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@apoorvlathey
apoorvlathey / tampermonkey-twitter-report.js
Last active March 14, 2024 17:08 — forked from banteg/twitter-report.js
Tampermonkey userscript: arc boost to report spam on twitter
// ==UserScript==
// @name Twitter Report
// @namespace http://tampermonkey.net/
// @version 0.1
// @description arc boost to report spam on twitter
// @author banteg
// @match *://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
@yorickdowne
yorickdowne / HallOfBlame.md
Last active April 26, 2025 13:16
Great and less great SSDs for Ethereum nodes

Overview

Syncing an Ethereum node is largely reliant on latency and IOPS, I/O Per Second, of the storage. Budget SSDs will struggle to an extent, and some won't be able to sync at all. IOPS can roughly be used as proxy of / predictor for latency. Measuring latency directly is arguably better.

This document aims to snapshot some known good and known bad models.

The drive lists are ordered by interface and then by capacity and alphabetically by vendor name, not by preference. The lists are not exhaustive at all. @mwpastore linked a filterable spreadsheet in comments that has a far greater variety of drives and their characteristics. Filter it by DRAM yes, NAND Type TLC, Form Factor M.2, and desired capacity.

For size, 4TB is a very conservative choice. The smaller 2TB drive should last an Ethereum full node until at least sometime 2026, with the [pre-merge history expiry](https://hackmd.io/@hBXHLw_9Qq2va4pRt

@Suhail
Suhail / tunes.txt
Last active September 21, 2021 05:18
Last updated 9/20/21 @ 10:18 PM PT
The End Of An Identity
MOMENT.
Punishment Fit For A Worm
Rainbow Reptiles
Another Day, Another Dollar, Another Drink
Roller Skating Summer
maybe its u
Death to Life
Lab Coat Baby
My Life In The Bush Of Ghosts
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active April 28, 2025 07:08
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.