Skip to content

Instantly share code, notes, and snippets.

View dotherightthing's full-sized avatar

Dan Smith dotherightthing

  • Do The Right Thing
  • Wellington, New Zealand
View GitHub Profile
@dotherightthing
dotherightthing / wordpress-plugin-directory-tags.md
Created November 2, 2018 06:30
[Plugin Directory Tags] Do use any word, except 'wordpress' or 'wp'. #wordpress

Plugin Directory Tags

  • Do use <= 12 tags
  • Do remove any ‘common misspellings’ from your tag list
  • Do remove duplicate tags
  • Do use any word, except wordpress or wp
  • Do use tags that clearly identify what your plugin is
  • Do optimise other parts of the readme.txt
  • Don’t use tags that don’t apply, including competitors' tags
  • Don’t list everything under the sun related to your plugin
@dotherightthing
dotherightthing / eliminate-render-blocking-css.md
Created November 2, 2018 06:32
[Eliminate render-blocking CSS] Your page has blocking CSS resources. This causes a delay in rendering your page. #css #performance #pagespeed

Eliminate render-blocking CSS

Try to ... inline the critical portions of those resources directly in the HTML.

One of the files is Google Fonts.

Inline Google Fonts API CSS

  • Detects the browser
  • Inlines the @font-face font loading
@dotherightthing
dotherightthing / organising-theme-functionality.md
Created November 2, 2018 06:38
[Organising theme functionality] #wordpress

Organising theme functionality

Compartmentalization

wp-content/plugins only contains third-party plugins, no code in here is modified, and the site should not be deadlined by any of these plugins being disabled / removed.

wp-content/themes should contain the code related to presentation of the front-end. The trick is not not overload the theme (functions.php and other theme-related files) with code not directly related to presentation. >

@dotherightthing
dotherightthing / wix-uptime-monitoring.md
Last active November 2, 2018 06:56
[Wix uptime monitoring] When generic copy started appearing in Facebook shares, my client knew that something was wrong, but what? #wix #uptime #monitoring #website-builders

Wix uptime monitoring

Nasty surprises

Her Wix site had just gone down. But she didn't realise this until she tried to log in to fix the Facebook problem and came face to face with Wix' error page.

"These Facebook posts look so unprofessional!", she cried. "Why didn't Wix tell me my site had gone down??".

As the owner of a small business, she didn't want to be the last one to know that her marketing site and shop were offline.

@dotherightthing
dotherightthing / dropbox-vs-google-drive.md
Created November 2, 2018 07:58
[Dropbox vs Google Drive] #dropbox #google-drive #migration #cloud-storage

Dropbox vs Google Drive

Copying files to Drive

I know that this is going to be time consuming and prone to human error, so I use a paid service (MultSync) to sync the drives.

I choose the option to move files from Dropbox to Google Drive.

The files seem to copy over ok, but nothing is moved off the Dropbox drive.

@dotherightthing
dotherightthing / xdebug-setup.md
Last active October 10, 2019 11:54
[Setting up Xdebug] #mamp #php #wordpress

Setting up Xdebug

https://xdebug.org

MAMP Pro 5.1.1

Default version > 7.0.31 Languages > PHP > Extensions > Xdebug (Debugger) > Check

Check settings:

@dotherightthing
dotherightthing / symlink-vs-alias.md
Last active May 10, 2023 21:57
[Symlink vs Alias] Symlinks and Aliases both display as a folder with a redirect arrow. But there are key differences in the way that they behave. #macos #terminal
@dotherightthing
dotherightthing / deploy-from-bitbucket-to-sitehost-using-rsync.md
Last active August 15, 2019 04:07
[Automate deployments from a Bitbucket repository to Sitehost using Rsync] Configure the script and SSH key for a Bitbucket pipeline which deploys via Rsync. #bitbucket #pipelines #deployment #ssh #devops #wordpress #rsync

Automate deployments from a Bitbucket repository to Sitehost using Rsync

Created: 2019.08.08

1. Generate a Bitbucket SSH key

This will be used to authorise interactions with the Sitehost server.

  1. Open repository in Bitbucket
  2. Scroll down to Pipelines, then click SSH keys
@dotherightthing
dotherightthing / shields.md
Last active August 14, 2019 06:28
[Shields] Shields are small badges that typically display below the project heading in Github README.md files. #shields #badges #github #version #release

Shields

Created 2017.10.31

Shields are small badges that typically below the project heading in Github README.md files:

[![GitHub license](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/TGMPA/TGM-Plugin-Activation/develop/LICENSE.md)
[![Build Status](https://travis-ci.org/TGMPA/TGM-Plugin-Activation.svg?branch=develop)](https://travis-ci.org/TGMPA/TGM-Plugin-Activation)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/TGMPA/TGM-Plugin-Activation/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/TGMPA/TGM-Plugin-Activation/?branch=develop)
@dotherightthing
dotherightthing / php7.md
Created August 14, 2019 05:41
[PHP 7] PHP 7 is the next version after PHP 5.6. #php

PHP 7

Created: 2017.10.11

Released in December 2015, PHP 7 is the version following PHP 5.6 (PHP 6 was an experimental project that didn't make it into production).

Features:

  • Zend Engine II replaced with Zend PHPNG (Next Generation), which can make twice as many requests per second
  • Various programming features