Skip to content

Instantly share code, notes, and snippets.

@toddhalfpenny
toddhalfpenny / Rename WP Plugin Boilerplate
Last active August 29, 2015 14:07
Rename and replace WordPress Plugin Boilerplate
#!/bin/bash
def_plugin_name='plugin-name'
def_plugin_class='Plugin_Name'
def_your_name='Your Name'
def_email='email@example.com'
echo "Name of you plugin: [$def_plugin_name]"
read plugin_name
if [ "$plugin_name" = "" ] ; then
@toddhalfpenny
toddhalfpenny / VFRemote.unmin.js
Created December 22, 2014 09:15
Un-uglified VFRemote.js
/*
* This code is for Internal Salesforce use only, and subject to change without notice.
* Customers shouldn't reference this file in any web pages.
*/
window.undefined = window.undefined;
VFExt3 = {
version: "3.2.2",
versionDetail: {
major: 3,
minor: 2,
@toddhalfpenny
toddhalfpenny / gist:8e1c129a6b2c6eac4b98
Created February 16, 2016 10:48
Sublime User Settings
{
"bold_folder_labels": true,
"default_line_ending": "unix",
"font_size": 8,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
@toddhalfpenny
toddhalfpenny / gist:eb208e02ca442947dc0f
Created February 16, 2016 10:49
Sublime Key Bindings
[
// Refresh folder list with F5
{ "keys": ["f5"], "command": "refresh_folder_list" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
# Conky settings #
background no
update_interval 2.0
total_run_times 0
imlib_cache_size 0
double_buffer yes
no_buffers yes
override_utf8_locale no
# Window specifications #
@toddhalfpenny
toddhalfpenny / byzanz-record-region
Last active June 29, 2016 19:32
byzanz record a selectable region
#!/bin/bash
# INSTALL
# 1) clone to a folder (I have a ~/software one)
# 2) Add the following to your ~/.bashrc
# alias byzanz-record-region='/home/todd/software/byzanz-record-region'
# 3) Deps ->
## https://github.com/lolilolicon/xrectsel
## libx11 (synaptic)
## byzanz (synaptic)
@toddhalfpenny
toddhalfpenny / byzanz-record-window
Last active December 1, 2021 00:04
byzanz record window
#!/bin/bash
# INSTALL
# 1) clone to a folder (I have a ~/software one)
# 2) Add the following to your ~/.bashrc
# alias byzanz-record-window='/home/todd/software/byzanz-record-window'
# Delay before starting
DELAY=5
[
// Refresh folder list with F5
{ "keys": ["f5"], "command": "refresh_folder_list" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
i.pull-right.icon.icon-favorite.icon-favorite-color.txt-base-medium.activity-indicator {
color: yellow;
}
/* ===[ General ]=== */
body {
background: #2A2E39;
color: #c0c0c0; }
a, a:link, a:visited {
color: #6ecff6 }
a:hover, a:active, a:focus {