Skip to content

Instantly share code, notes, and snippets.

# Create a new worktree and branch from within current git directory.
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga [branch name]"
exit 1
fi
local branch="$1"
local base="$(basename "$PWD")"
local path="../${base}--${branch}"
@eugenehp
eugenehp / arch_vbox.md
Last active December 28, 2025 22:58 — forked from dannycastonguay/arch_vbox.md
Installing Arch Linux on VirtualBox for beginners

Installing Arch Linux on VirtualBox

I recently upgraded to a new system, and instead of running Arch Linux natively I've decided to run it inside VirtualBox on Windows 10. Below I note down the steps I took, which closely follow the excellent wiki pages of archlinux. But along the way, I also noted a few other steps steps I took to make this system very comfortable, which you'll have to figure out for yourself if you like them or not!

Mount Arch Linux on VirtualBox

I couldn't find a section on the Arch wiki where these steps are listed, perhaps they are obvious, but since I think I know what I'm doing I'm just going off script here (what a great start!).

  1. Start VirtualBox and click New
  2. Name your machine, preferably with a descriptive but memorable name (e.g., exultant carpenter), select type Linux, and version Arch Linux (64 bit) (unless you downloaded the 32 bit version. A note on this, I recall in the past that for some machi
@joelhooks
joelhooks / AGENTS.md
Last active December 28, 2025 22:54
my opencode global AGENTS prompt

Who You're Working With

Joel Hooks - co-founder of egghead.io, education at Vercel, builds badass courses via Skill Recordings (Total TypeScript, Pro Tailwind). Deep background in bootstrapping, systems thinking, and developer education. Lives in the Next.js/React ecosystem daily - RSC, server components, suspense, streaming, caching. Skip the tutorials.

<tool_preferences>

always use beads bd for planning and task management

Reach for tools in this order:

  1. Read/Edit - direct file operations over bash cat/sed
  2. ast-grep - structural code search over regex grep
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@GIVENCHY111
GIVENCHY111 / mini-bot.go
Created December 28, 2025 22:52 — forked from ewalk153/mini-bot.go
Mini-bot is a mini hipchat bot that listens in a given room, and runs actions based on user interactions
package main
import (
"errors"
"fmt"
api "github.com/andybons/hipchat"
"github.com/daneharrigan/hipchat"
"github.com/joho/godotenv"
"os"
"strings"
@TunarshBee
TunarshBee / DSA Calendar 2026 | Plan of Action.md
Created December 28, 2025 22:46 — forked from PrinceSinghhub/DSA Calendar 2026 | Plan of Action.md
Everything from 0 to Advance | DSA Calendar 2026 | Plan of Action

DSA Calendar 2026 | Plan of Action 🔥

DSA is no longer about solving random sheets or memorizing solutions. It’s about a clear, structured, and realistic approach from absolute beginner to interview-ready Candidate.

  • How to start DSA from zero (even if you don’t know coding)
  • When to focus on language basics vs DSA
  • A 3-phase preparation strategy used by serious engineers
  • Exact timelines for topics, patterns, and problem counts
  • Why 300–400 problems ≠ success (and what actually matters)
@ewalk153
ewalk153 / mini-bot.go
Last active December 28, 2025 22:52
Mini-bot is a mini hipchat bot that listens in a given room, and runs actions based on user interactions
package main
import (
"errors"
"fmt"
api "github.com/andybons/hipchat"
"github.com/daneharrigan/hipchat"
"github.com/joho/godotenv"
"os"
"strings"
@Srfigie
Srfigie / .gitattributes
Created February 2, 2020 14:30 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@ph33nx
ph33nx / WinMasterBlocker.bat
Last active December 28, 2025 22:51
Block All Adobe .exe files via Firewall on Windows Using Batch Script | Stop adobe apps to access internet
:: ################################################################
:: ## 🔥 WinMasterBlocker 🔥 #
:: ################################################################
:: # Author: https://github.com/ph33nx #
:: # Repo: https://github.com/ph33nx/WinMasterBlocker #
:: # #
:: # This script blocks inbound/outbound network access #
:: # for major apps like Adobe, Autodesk, Corel, Maxon, #
:: # and more using Windows Firewall. #
:: # #
@7etsuo
7etsuo / 7etsuo-printf.c
Created September 12, 2024 08:48
printf cheatsheet
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────
printf Format Specifiers
│ ┌──────────┬──────────────────────────────────────────────────┬───────────────────────────────────────┐ │/** printf format specifiers
│ │ SpecifierDescriptionExample Output │ │ * ███ ▄████████ ███ ▄████████ ███ █▄ ▄██████▄
│ ├──────────┼──────────────────────────────────────────────────┼───────────────────────────────────────┤ │ *▀█████████▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███
│ │ %dSigned decimal integerprintf("%d", 42); // 42 │ │