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 / windows-macos-via-rdp.md
Last active August 14, 2019 05:44
[Windows on MacOS via RDP] Using Windows from a Mac via Remote Desktop. #macos #windows #rdp #remote

Windows on MacOS via RDP

Created: 2017.10.09

I have been investigating using an iPad Pro Gen 1 as a high resolution second monitor, but it could also be used as a touchscreen controller for a small Windows computer such as the Kangaroo Pro.

This got me thinking about remote control of computers, and brought me back to RDP, a technology I hadn't used in years.

Pros

@dotherightthing
dotherightthing / google-tag-manager-gtm.md
Last active September 12, 2019 02:01
[Google Tag Manager (GTM)] Notes from Practical Google Analytics and Google Tag Manager for Developers. #gtm #seo #wordpress #analytics #adwords
@dotherightthing
dotherightthing / extracting-array-values-square-brackets-vs-arrow-notation.md
Last active August 14, 2019 06:03
[Extracting array values] Square brackets vs arrow notation in PHP. #php

Extracting array values

Created: 2017.07.09

$var->foo is an object reference. $var[foo] is an array reference. While this sort of thing could be used interchangeably in some languages like javascript, in PHP an array and an object are two entirely different things - PHP - extracting array values ( square brackets vs arrow notation )

@dotherightthing
dotherightthing / plugins-vs-theme-functions.md
Created August 14, 2019 06:05
[Plugins vs Theme functions] Reasons to create plugins. #wordpress

Plugins vs Theme functions

Created: 2017.07.09

Public Plugins

  • quick solution to problem
  • no insight into how to solve problems via WordPress programming

Theme functions

@dotherightthing
dotherightthing / structured-data.md
Last active August 15, 2019 03:27
[Structured Data] #seo

Structured Data

Created: 2017.07.08

Schema.org is a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.

Google

@dotherightthing
dotherightthing / cost-effective-mobile-screenshots.md
Last active August 15, 2019 03:26
[Cost-effective mobile screenshots] Services for taking full-length device screenshots. #android #ios

Cost-effective mobile screenshots

Created: 2017.07.12

A while ago I started taking full-length screenshots of my work. I use these to dress up my portfolio collateral and to give a human face to the code that I write.

BrowserStack

BrowserStack mobile testing options.

@dotherightthing
dotherightthing / taxonomies.md
Created August 14, 2019 06:44
[Taxonomies] Some taxonomies are obvious, others less so. Here are some notes for thinking about taxonomies. #wordpress

Taxonomies

Created: 2017.07.06

Essentially, a taxonomy is a way of classifying data. Typically a taxonomy will have a set of characteristics that is unique to it - A Basic Explanation of WordPress Taxonomies

Category

Taxonomies apply to posts and pages - and anything else

@dotherightthing
dotherightthing / maximum-upload-size.md
Last active August 15, 2019 03:04
[Maximum Upload Size] Upload large images into the WordPress Media Library. #wordpress

Maximum Upload Size

Created: 2017.07.07

Upload warning

MacOS file picker.

I tried to upload a 2.9MB image.

@dotherightthing
dotherightthing / vagrant-and-virtualbox.md
Created August 15, 2019 03:38
[Vagrant + VirtualBox] #virtualisation

Vagrant + VirtualBox

Created: 2017.08.16

Get Virtualbox

  1. Download Virtualbox
  2. Always keep your Virtualbox up to date.

Get Vagrant

@dotherightthing
dotherightthing / faking-hover-intent.md
Created August 15, 2019 03:43
[Faking Hover Intent] #css #javascript