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 / cookie-login-issues.md
Last active August 15, 2019 05:26
[Cookie login issues] #wordpress
@dotherightthing
dotherightthing / updraftplus-installation.md
Created August 15, 2019 05:34
[UpdraftPlus installation] #wordpress

UpdraftPlus installation

Created: 2017.05.29

When downloading UpdraftPlus Premium, rename the updraft 3 folder to updraft.

Failing to do so will result in a barrage of errors like:

[29-May-2017 00:31:48 UTC] PHP Warning: Can't to read the plugin header for 'updraftplus/updraftplus.php'. The file does not exist. in /Volumes/DanBackup/Dropbox/Websites/www.basejumpimprov.co.nz/public_html/wp-content/plugins/updraftplus 3/udaddons/plugin-updates/plugin-update-checker.php on line 960 [29-May-2017 00:31:48 UTC] PHP Warning: Can't to read the Version header for 'updraftplus/updraftplus.php'. The filename is incorrect or is not a plugin. in /Volumes/DanBackup/Dropbox/Websites/www.basejumpimprov.co.nz/public_html/wp-content/plugins/updraftplus 3/udaddons/plugin-updates/plugin-update-checker.php on line 960

@dotherightthing
dotherightthing / ide-update.md
Created August 15, 2019 05:35
[IDE Update] #sublime

IDE Update

Created: 2017.06.01

Lately I've been enjoying the ES6 tutorials from the cheery Wes Bos. He has a great workflow, so I decided to do something about my own, which was feeling a bit rough around the edges.

Sublime Upgrade

So today I decided to address some long standing inefficiencies in my own workflow, using his Uses page as a guide to reliable modern technologies.

@dotherightthing
dotherightthing / the-hosts-file.md
Created August 15, 2019 05:36
[The hosts file] #macos

The hosts file

Created: 2017.05.27

A client recently asked me to edit my hosts file, in order to access a staging site.

How DNS works

DNS is used to resolve that domain name to its mapped IP address. >

@dotherightthing
dotherightthing / get-widget-id-for-acf.md
Created August 15, 2019 05:38
[Get Widget ID for ACF] #wordpress

Get Widget ID for ACF

When using ACF to build a widget, it's necessary to pass in the widget ID.

Old way

Get the widget by outputting it on the backend and copying it into

if ( !function_exists( 'bji_display_widget_id' ) ) {
@dotherightthing
dotherightthing / cloaking.md
Created August 15, 2019 05:42
[Cloaking] #seo #scraping
@dotherightthing
dotherightthing / copy-ssh-key-to-clipboard.md
Created August 15, 2019 05:44
[Copy SSH Key to clipboard] #git

Copy SSH Key to clipboard

cat ~/.ssh/id_rsa.pub | pbcopy