Skip to content

Instantly share code, notes, and snippets.


Craig Wayne craigiswayne

View GitHub Profile
emilysnothere / my_custom_field.php
Last active May 23, 2018
Gravity Form Custom Hidden Fields
View my_custom_field.php
class My_Custom_Field extends \GF_Field
public $type = 'my_custom_field';
public function get_form_editor_button()
return array(
'group' => 'advanced_fields',
'text' => __('My Custom Field', 'gravityforms')
WebReflection /
Last active Jul 1, 2020
A basic Self Signed SSL Certificate utility
#!/usr/bin/env bash
# A basic Self Signed SSL Certificate utility
# by Andrea Giammarchi @WebReflection
# # to make it executable and use it
# $ chmod +x certificate
# $ ./certificate # to read the how-to
lifuzu / .gitconfig
Created Mar 11, 2014
Three levels of GIT config
View .gitconfig
# There are 3 levels of git config; project, global and system.
# project: Project configs are only available for the current project and stored in .git/config in the project's directory.
# global: Global configs are available for all projects for the current user and stored in ~/.gitconfig.
# system: System configs are available for all the users/projects and stored in /etc/gitconfig.
# Create a project specific config, you have to execute this under the project's directory.
$ git config "John Doe"
# Create a global config
wbroek / genymotionwithplay.txt
Last active Aug 18, 2020
Genymotion with Google Play Services for ARM
View genymotionwithplay.txt
NOTE: Easier way is the X86 way, described on
Download the following ZIPs:
ARM Translation Installer v1.1 (
Download the correct GApps for your Android version:
Google Apps for Android 6.0 ( -
Google Apps for Android 5.1 ( -
Google Apps for Android 5.0 ( -


jenkins_url + /api/json?tree=jobs[name,color]


jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]

last build

# create working directory from trunk
svn checkout
# create a branch
svn copy \ \
-m "Created branch to implement feature do awesome thing."
# switch working copy
svn switch ^/repo/branches/feature-do-awesome-thing
jareware /
Last active Sep 7, 2020
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

Abban / WordPress Theme Customizer Sample.php
Created Jun 21, 2012
WordPress Theme Customizer Sample
View WordPress Theme Customizer Sample.php
function themename_customize_register($wp_customize){
$wp_customize->add_section('themename_color_scheme', array(
'title' => __('Color Scheme', 'themename'),
'priority' => 120,
// =============================
View wp-query-ref.php
// This gist is now maintained on github at
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
saetia / gist:1623487
Last active Aug 15, 2020
Clean Install – OS X 10.11 El Capitan
View gist:1623487

OS X Preferences

most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
You can’t perform that action at this time.