Skip to content

Instantly share code, notes, and snippets.

View evokateur's full-sized avatar

Wesley C. Hinkle evokateur

  • Oakland CA
  • 03:21 (UTC -07:00)
View GitHub Profile
@artemgetmann
artemgetmann / claude-code-token-saving-guide.md
Last active August 17, 2025 09:36
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

@artemgetmann
artemgetmann / adhd-med-strategy-guide.md
Last active August 17, 2025 17:24
ADHD Meds & Focus Strategy Guide — A practical framework for using short-acting stimulants (e.g. Ritalin, Focalin, Adderall) with intention. Covers decision logic, timing, best/worst use cases, and caffeine stacking. Built for deep work, not default use.

⚙️ ADHD Meds Master Guide (Ritalin & Stimulants)

🔑 Core Insight

Both caffeine and ADHD meds (e.g., Ritalin) boost focus, not clarity or wisdom. Without clear priorities, extra stimulation can lead to efficient distraction rather than productivity.


🧭 Guiding Principle

本文由 简悦 SimpRead 转码, 原文地址 www.anthropic.com

A blog post covering tips and tricks that have proven effective for using Claude Code across various ......

Engineering at Anthropic

We recently released Claude Code, a command line tool for agentic coding. Developed as a research project, Claude Code gives Anthropic engineers and researchers a more native way to integrate Claude into their coding workflows.

Claude Code is intentionally low-level and unopinionated, providing close to raw model access without forcing specific workflows. This design philosophy creates a flexible, customizable, scriptable, and safe power tool. While powerful, this flexibility presents a learning curve for engineers new to agentic coding tools—at least until they develop their own best practices.

@NightMachinery
NightMachinery / battery_limit.zsh
Last active July 16, 2025 22:41
A guide on limiting macOS battery charging to at most 80%.
# Apple Silicon laptops with firmware > 13.0 have a native charge threshold that does not required any userspace daemon running.
# This native limit works even when the laptop is sleeping or powered off therefore it is preferable to the userspace daemon.
# Nonetheless, it only works with fixed thresholds (80% as upper limit and 70% as lower limit).
# CHWA key is the one used to enable/disable the native limit. 01 = 80% limit, 00 = no limit
##
typeset -g smc_command="/usr/local/bin/smc"
typeset -g smc_charge_limit_key="CHWA"
typeset -g smc_charge_limit_status_on="01"
typeset -g smc_charge_limit_status_off="00"
@benlubas
benlubas / venv_wrapper
Last active July 26, 2025 04:16 — forked from dbtek/venv_wrapper
Python 3 venv wrapper. Manages all virtual environments under ~/.virtualenvs/ .
# include following in .bashrc / .bash_profile / .zshrc
# usage
# $ mkvenv myvirtualenv # creates venv under ~/.virtualenvs/
# $ venv myvirtualenv # activates venv
# $ deactivate # deactivates venv
# $ rmvenv myvirtualenv # removes venv
export VENV_HOME="$HOME/.virtualenvs"
[[ -d $VENV_HOME ]] || mkdir $VENV_HOME
@n8finch
n8finch / wp-strictly-mu-plugins-plugins-themes-gitignore
Last active April 18, 2023 19:06
This gitignore will ignore anything that isn't in mu-plugins, plugins, and themes directories of your wp-content directory.
# Ignore everything in the root except the "wp-content" directory.
/*
!.gitignore
!wp-content/
# Ignore everything in the "wp-content" directory, except the "mu-plugins", "plugins", and "themes" directories.
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
@n8finch
n8finch / no-wp-core-gitignore
Created December 16, 2020 15:28
This is a gist for to ignore WordPress core files, and some other selected files.
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# wordpress specific
wp-config.php
@sts10
sts10 / kitty.conf
Created January 16, 2020 20:24
My config file for Kitty Terminal Emulator
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family JetBrains Mono Medium
bold_font JetBrains Mono Bold
@gabrielelana
gabrielelana / Vagrantfile
Last active January 2, 2024 18:58
How to create a VirtualBox machine with encrypted storage with Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
PASSWORD_PATH = ".password"
PASSWORD_ID_PATH = ".password_id"
# Make sure to have installed vagrant-triggers plugin
# > vagrant plugin install vagrant-triggers
# After the first `vagrant up` stop the VM and execute the following steps
@MCF
MCF / sqlsrv_test.php
Last active July 24, 2023 03:05
PDO sqlsrv PHP driver, connect and query SQL Server database - reduced test case.
<?php
$serverName = "sqlserver.example.com";
$database = "myDbName";
$uid = 'sqlserver_username';
$pwd = 'password';
try {
$conn = new PDO(
"sqlsrv:server=$serverName;Database=$database",
$uid,