Skip to content

Instantly share code, notes, and snippets.

export GIT_PS1_SHOWCOLORHINTS=yes
export GIT_PS1_SHOWDIRTYSTATE=yes
export GIT_PS1_SHOWSTASHSTATE=yes
export GIT_PS1_SHOWUPSTREAM=yes
export GIT_PS1_SHOWCONFLICTSTATE=yes
. ~/.git-prompt.sh
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 "(%s)") \$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1 " (%s)") \$ '
@jmjf
jmjf / test.ts
Created June 7, 2025 12:11
Testing ideas for request handler/controller separation
// Testing ideas for request handler/controller separation
// Simulate framework
type RawRequest = {
headers: unknown;
query: unknown;
body: unknown;
}
@jmjf
jmjf / sparse-checkout
Created November 16, 2013 00:24
An Ansible playbook and sparse-checkout file to test sparse checkout functionality
mu-plugins/
README.md
@jmjf
jmjf / baseline.sls
Created October 1, 2013 22:23
Salt states from my test setup. /srv/salt/... Replace - in file names with / (so kernel-init.sls = kernel/init.sls). Note, baseline.sls updates the default precise32 box's packages to specific versions. It's based on the output of apt.list_upgrades at the time I created the VMs.
baseline:
pkg.installed:
- pkgs:
- accountsservice: 0.6.15-2ubuntu9.6
- apparmor: 2.7.102-0ubuntu3.9
- apt: 0.8.16~exp12ubuntu10.14
- apt-transport-https: 0.8.16~exp12ubuntu10.14
- apt-utils: 0.8.16~exp12ubuntu10.14
- apt-xapian-index: 0.44ubuntu5.1
- aptitude: 0.6.6-1ubuntu1.2