Text of gist.github.com › philippb as Styx crawled it on Nov 21, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

philippb’s gists · GitHub

Skip to content Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Instantly share code, notes, and snippets. Philipp Berner philippb Currently coding with AI. Prev. CEO and founder @closer-hq , founder and CTO @KeepSafe 54 followers · 26 following Self San Francisco, CA www.about.me/philippb @philippberner View GitHub Profile Recently created Least recently created Recently updated Least recently updated 8 files 0 forks 0 comments 0 stars philippb / README.md Created October 15, 2026 03:30 Resumable LLM localization: UI context, locale policy, independent review, deterministic checks, and safe GitHub publication.

Synthetic examples; no proprietary app code. A small, resumable LLM localization pipeline A generic reference implementation of lessons from shipping app translations. All examples are fictional. No proprietary application code, copy, data, or internal configuration is included. Python standard library only; Python 3.11+ on Unix. Status: the core has synthetic regression tests. The GitHub Actions template and live model integration have not been executed end to end for this gist.

This is a starting point for an agent, not a production-ready localization service. 3 files 0 forks 0 comments 1 star philippb / README.md Created September 25, 2026 03:39 APFS copy-on-write sharing for Git worktrees: implementation guide for coding agents, reference helper, and tests Save disk space across Git worktrees with APFS copy-on-write clones Git worktrees share the Git object database, but large checked-out files can still occupy separate disk blocks.

On macOS/APFS, identical files can share their data blocks while remaining independently editable files. In one dependency-heavy iOS repository, a post-checkout sharing pass shared about 761–766 MB of logical file contents per worktree , across roughly 217–249 files. An initial real-worktree experiment measured a 760.14 MB decrease in APFS private data . These are workload-specific results, not a promise for every repository.

All MB figures here are decimal. The core idea Let Git create and check out the worktree normally. Finish dependency and project generation. Enumerate tracked regular files in the destination. This helper considers files at least 64 KiB and conservatively excludes Swift files, a policy inherited from its original repository. 1 file 0 forks 0 comments 0 stars philippb / OnFolderOverflowSelectedListener.java Created November 7, 2015 03:10 private ListView mListView; private ArrayAdapter mListAdapter; private final AlphaAnimation mFadeOut = new AlphaAnimation(1.0f, 0.3f); private final AlphaAnimation mFadeIn = new AlphaAnimation(0.3f, 1.0f); public class OnFolderOverflowSelectedListener implements OnClickListner { // Stuff from above public void onClick(View v) { // All the stuff above 1 file 0 forks 0 comments 0 stars philippb / OnAlbumOverflowSelectedListener.java Created November 5, 2015 03:34 OnAlbumOverflowSelectedListener for custom icons in SelectionMenu - Android public class OnAlbumOverflowSelectedListener implements OnClickListener { private Album mAlbum; private Context mContext; public OnFolderOverflowSelectedListener(Context context, Album album) { mContext = context; mAlbum = album; } @Override 1 file 21 forks 2 comments 37 stars philippb / git-backup-to-AWS-S3.sh Created March 6, 2012 20:52 — forked from weavenet/gist:1524092 Complete git repository backup script to AWS S3 #! /bin/bash # Script to backup git repo to S3 # Set bucket, dir, password and account to use for the backup.

I keep mine in local env vars # These are set by localrc which lives on an encrypted home directory and is executed by my bashrc bucket= $GITHUB_BACKUP_BUCKET dir= $GITHUB_BACKUP_DIR password= $GITHUB_BACKUP_PASSWORD account= $GITHUB_ACCOUNT 1 file 0 forks 0 comments 0 stars philippb / gist:1692506 Created January 28, 2012 03:53 Normalize pricing on andorid market data # Prepare: add column 'price_value' and 'price_normalized' to you table # 1) Run this one first UPDATE top_android_apps SET price_value = 0 ; # 2) Run this one second UPDATE top_android_apps SET price_value = CASE WHEN ( country IN ( ' GB ' , ' AU ' , ' CA ' , ' HK ' , ' RU ' ) ) THEN You can’t perform that action at this time.