The personal blog of James Doyle (james2doyle) Web Developer in Canada. Logo


Color Helpers In Fish Shell

How to easily create a color function for printing colorized output

Read More

Easy FFmpeg Video Posters

Take in a list of video files and generate a poster image for each one

Read More

Bitbucket Weekly Reports Using Make (Integromat)

Use Make (Integromat) to create a nice weekly report in Slack for all the closed pull-requests in a Bitbucket repository

Read More

Install the latest Node.js on Amazon Linux

How to install the latest version of node.js on the Amazon Linux AMI

Read More

Purge A File From A Github Repo

How to permanently remove a file from a repo and it's history

Read More

Using Laravel `when` Method To Support Multiple Queries

How to use the `when` method on database collections in Laravel to create more flexible and readable code

Read More

Apax apache theme in htdocs

Setup A Raspberry Pi with PHP And Lighttpd

Setup a raspberry pi with php 8.1 and the latest lighttpd web server

Read More

compare multiple md5 hashes

nodelist.each

Autocomplete TailwindCSS In Custom Attributes/Strings

Use tailwindcss autocomplete classes and logic inside non-default attributes or strings

Read More

grunt terminal-notifier setup

Detect Animation Events in Javascript

Validate Email With Lua

A verbose email validation function for Lua

Read More

Versioning Service Workers In Hugo

How to use Hugo pipes and resources to version your service worker scripts

Read More

Copy filepath to clipboard in OSX

How to copy a filepath to the clipboard in OSX

Read More

Decrypt-Encrypt Functions From Command Line

Functions to encrypt and then decrypt files from the command line with OpenSSL

Read More

Get Wordpress via Command Line

Download and unzip the latest Wordpress version, all via command line

Read More

Randomly Generate A Password In Bash

Randomly generate a password of specified length and then copy it to the clipboard

Read More

Render PHP File With Data

List File Permission Numbers

Easily list the chmod numbers for all the files in a folder

Read More

Backup MySQL And Email It

Don't bother paying for a SaaS that creates MySQL backups and emails them to you on a schedule, you can do this with CRON and a small script

Read More

Vuex Stateful URL Plugin

StatefulURL is a Vuex plugin that can read and write the state from a query string

Read More

Vuex Crosstab Plugin

CrossTab syncs Vuex state across same-origin tabs. Converted from storeon crosstab

Read More

WYSIWYG in PyroCMS Widgets

zsh new file && open file function

Modernizr SVG Fallback to PNG

Simple PHP JSON Response

Lodash memoize with a timeout

Use lodash memoize with a TTL/timeout. Allows calls to be cached by time as well as argument values

Read More

HostMonster PHPMailer Settings

How to setup PHPMailer on a HostMonster hosting server

Read More

Running Go (golang) in Docker

How to run and deploy golang applications inside a Docker container.

Read More

Tailwind Screens In JS

Detect if a tailwind screen value matches the current window

Read More

Easy Command Line Reverse Geocoding

Easily reverse geocode an address using the command line and the google maps API

Read More

PhalconPHP Crop Image To Fit

How to crop and scale an image to fit specific dimensions in Phalcon PHP

Read More

Using Node.js in an AppleScript

jQuery Plugin Snippets for Sublime Text 2

jQuery Plugin Snippets for Sublime Text 2

Read More

Target Mozilla-only in CSS

Lodash i18n (translation) function

An incredibly simple i18n (internationalization + translation) function using lodash `get` and `template` functions

Read More

Simple HTML5 Notifications

Salt.js micro selector library

salt.js is micro DOM selector library. Minified, it comes in at 255 bytes

Read More

Bash select example

An example of how to use the select command in bash to pass arguments to functions

Read More

Vue stateful form component

Create a Vue form that escalates all events to the top level and supports v-model

Read More