Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / terminal-commands.md
Last active December 19, 2025 21:36
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
# This is minimal demonstration on how to obtain text metadata and album art from Sendspin and display it using LVGL on an ESP32-S3 Box 3.
# The track title is displayed below the cover art will scroll if too long for the screen.
# Touching the screen pops up controls for 5 seconds where you can pause/resume and go to the previous/next track
# Swiping left or right will go to a different page. It should show a picture of the artist (but there are some bugs on the MA side, so this doesn't work consistently)
# Uses the current Sendspin PR: https://github.com/esphome/esphome/pull/12284
substitutions:
name: esp32-s3-box-3
friendly_name: ESP32 S3 Box 3 Sendspin
font_glyphsets: "GF_Latin_Core"
@maple3142
maple3142 / CVE-2025-55182.http
Last active December 19, 2025 21:21
CVE-2025-55182 React Server Components RCE POC
POST / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Next-Action: x
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Length: 459
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active December 19, 2025 21:19
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@excilsploft
excilsploft / Justfile
Created December 19, 2025 20:34
This is a polyglot Justfile for retrieving various Service Statuses in 4 different shell languages with a special guard recipe around NuShell
set unstable
node := require("node")
python := require("python")
curl := require("curl")
jq := require("jq")
nu := which("nu")
# Get All Statuses in Parallel
[parallel]
all-at-once: run-node run-python run-bash
@Snarp
Snarp / google-docs-copy.js
Last active December 19, 2025 21:18
Script to allow copying from a protected Google Doc
/*
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc>
NOTE - 2021-05-24
-----------------
The script below isn't the fastest way to copy-and-paste from a protected
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from
the comments:
@morganmcg1
morganmcg1 / settings.json
Last active December 19, 2025 21:13
Claude Code statusline settings - place in your ~/.claude/ dir
{
"model": "opus",
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}
@lykn
lykn / buttons.md
Last active December 19, 2025 21:12
A gist which shows/tells you how to make buttons using discord.py v2(version 2.0.0a)

Note: Before we go any further. Let me make this real clear that the following gist uses the OFFICIAL discord.py library and not forks like discord_components, nextcord, etc... So when your using this code but a different library and fuck up don't comment something mean or go to a help channel in the server and say "this gist is misleading" or "bad gist who wrote this" when your at fault, trust me I'm going to fuck you up😅

Just a reminder^^

Related Links:

DPY's Docs

Discord's Docs

@ShinWolf-Subject
ShinWolf-Subject / nvrch-cli.js
Created December 19, 2025 20:17
Tools CLI untuk reaction pesan pada saluran WhatsApp menggunakan library nvch-reactor
#!/usr/bin/env node
const { auth, validateUrl, getPackageInfo } = require('nvch-reactor');
const readline = require('readline');
const fs = require('fs').promises;
const path = require('path');
// Colors for terminal
const colors = {
reset: '\x1b[0m',
" Called with a command and a redirection target
" (see `:help redir` for info on redirection targets)
" Note that since this is executed in function context,
" in order to target a global variable for redirection you must prefix it with `g:`.
" EG call Redir('ls', '=>g:buffer_list')
funct! Redir(command, to)
exec 'redir '.a:to
exec a:command
redir END
endfunct