Skip to content

Instantly share code, notes, and snippets.

Avatar
👑
Getting it done

Helen Hou-Sandi helen

👑
Getting it done
View GitHub Profile
@helen
helen / spaceship_prompt_svn.sh
Last active Sep 11, 2020
I still do stuff with Subversion so here's what I have to add a tiny amount of info to my Spaceship prompt
View spaceship_prompt_svn.sh
# You can put this in your .zshrc
# Custom Spaceship section for SVN
SPACESHIP_SVN_SHOW="${SPACESHIP_SVN_SHOW=true}"
SPACESHIP_SVN_PREFIX="${SPACESHIP_SVN_PREFIX="$SPACESHIP_PROMPT_DEFAULT_PREFIX"}"
SPACESHIP_SVN_SUFFIX="${SPACESHIP_SVN_SUFFIX="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}"
SPACESHIP_SVN_SYMBOL="${SPACESHIP_SVN_SYMBOL="🐢 "}"
SPACESHIP_SVN_COLOR="${SPACESHIP_SVN_COLOR="yellow"}"
spaceship_svn() {
[[ $SPACESHIP_SVN_SHOW == false ]] && return
@helen
helen / gh-pr-branch.txt
Last active Mar 6, 2018
Making changes to a GitHub PR branch on a fork
View gh-pr-branch.txt
git remote add KZeni git@github.com:KZeni/admin-color-schemer.git
git fetch KZeni
git checkout --track KZeni/patch-1
git commit
git push KZeni patch-1
@helen
helen / better-wp.php
Last active Dec 16, 2016
Make WordPress Great Again
View better-wp.php
<?php
// Inspired by http://jsfiddle.net/desandro/Ew6Zt/
add_action( 'admin_head', function(){
?>
<script>
jQuery(document).ready( function($) {
var colorTime = 0,
waveTheta = 0,
maxCount = 100,
View sublime-settings.json
{
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"detect_slow_plugins": false,
"drag_text": false,
"file_exclude_patterns":
[
"*.min.*",
".DS_Store"
],
"font_face": "SourceCodePro-Light",
View keybase.md

Keybase proof

I hereby claim:

  • I am helen on github.
  • I am helen (https://keybase.io/helen) on keybase.
  • I have a public key whose fingerprint is 1E3E 18E3 41AE 69A5 C228 D820 C3A0 B55E D825 43A9

To claim this, I am signing this object:

@helen
helen / wp-trac-list.md
Last active Dec 23, 2015
WP Trac hit list
View wp-trac-list.md

WP Trac Hit List

This needs to be written down somewhere outside of my currently open browser tabs, and I see no reason not to share it. Inclusion in the list does not necessarily mean I'm working on a patch, just that it's on my mind. If you're looking for something specific to work on and are looking for a starting point, one of these might be for you.

Tickets

  • #25408: Ability to specify that a list table column is "primary"
  • #26302: Specify display priority for list table columns
  • #25284: Support tax queries using term_taxonomy_id without specifying a taxonomy
  • #24859: Media Library does not have a loading indicator
View plugin-deploy.sh
#!/bin/bash
# args
MSG=${1-'deploy from git'}
BRANCH=${2-'trunk'}
# paths
SRC_DIR=$(git rev-parse --show-toplevel)
DIR_NAME=$(basename $SRC_DIR)
DEST_DIR=~/Sites/wp-plugins/$DIR_NAME/$BRANCH
@helen
helen / .bashrc
Last active Apr 22, 2019
My ~/.bashrc
View .bashrc
green=$(tput setaf 2)
yellow=$(tput setaf 3)
magenta=$(tput setaf 5)
reset=$(tput sgr0)
# This was not working with \w, which has since been changed to \W in favor of window title showing $PWD
# PROMPT_DIRTRIM=3
export EDITOR='code --wait';
export SVN_EDITOR='code --wait';
@helen
helen / repeatable-fields-metabox.php
Created Jan 11, 2012
Repeating Custom Fields in a Metabox
View repeatable-fields-metabox.php
<?
/**
* Repeatable Custom Fields in a Metabox
* Author: Helen Hou-Sandi
*
* From a bespoke system, so currently not modular - will fix soon
* Note that this particular metadata is saved as one multidimensional array (serialized)
*/
function hhs_get_sample_options() {
You can’t perform that action at this time.