Skip to content

Instantly share code, notes, and snippets.

name: Publish Website
on:
push:
branches:
- main
jobs:
web-deploy:
@butchpage
butchpage / README.md
Created December 22, 2017 21:08 — forked from jamesramsay/README.md
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@butchpage
butchpage / .gitignore
Created February 10, 2017 17:34
WordPress site .gitignore file
*.log
wp-config.php
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir/
wp-content/cache/
wp-content/upgrade/
wp-content/uploads/
wp-content/wp-cache-config.php
@butchpage
butchpage / hide hidden files on mac osx
Created February 7, 2017 23:30
hide hidden files on mac osx
defaults write com.apple.finder AppleShowAllFiles NO
@butchpage
butchpage / Show hidden files on mac osx
Created February 7, 2017 23:28
show hidden files on mac osx
defaults write com.apple.finder AppleShowAllFiles YES
@butchpage
butchpage / sublime-text-terminal-alias
Last active February 5, 2017 06:00
Create Terminal / iTerm alias to open files with Sublime Text
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@butchpage
butchpage / wp-config.php
Created December 20, 2014 20:08
WordPress: wp-config debug
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false );
define('SAVEQUERIES', true);
@butchpage
butchpage / machine-cpt.php
Created March 18, 2014 16:39
WordPress: machine custom post type
<?php
/* ------------------------------------------------------------------------ *
* Machine Custom Post Type
* ------------------------------------------------------------------------ */
/**
* Creates a new custom post type for sewing machines.
*
*/
@butchpage
butchpage / Gruntfile.js
Created February 23, 2014 22:38
Gruntfile.js
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
});
// Load tasks
@butchpage
butchpage / custom-post-type.sublime-snippet
Created January 31, 2014 16:27
WordPress Custom Post Type Sublime Snippet
<snippet>
<content><![CDATA[
function $1() {
\$labels = array(
'name' => '$2',
'singular_name' => '$3',
'add_new' => 'Add New',
'add_new_item' => 'Add New $3',
'edit_item' => 'Edit $2',
'new_item' => 'New $2',