Nick Yeoman's Blog

Hey everybody! Welcome to my blog, where I’ve placed together tips, tricks, and hacks I’ve learned through out my working life. Whether you're looking for some Bash snippets, tackling Docker, or template PHP, I've got a little of everything. Think of this as your go-to toolkit for making web development easier—because, let’s face it, we’ve all been down the rabbit hole of trial and error. So go ahead, explore, and let’s make coding a little less painful and a lot more fun!

Bash Script Snippets

There are a few bash snippets that I use very frequently in my bash scripts. Here is my collection.

Read More: Bash Script Snippets Updated: Apr. 12th 2022 at 5:28am

Virtualbox on Windows

This is a video I created to get Virtualbox 7 installed on Windows 11.

Read More: Virtualbox on Windows Updated: Mar. 20th 2024 at 7:28pm

Laravel out of the box

Laravel out of the box explains how to install Laravel, to a working development condition, on a Ubuntu system using Sail and docker.

Read More: Laravel out of the box Updated: Oct. 28th 2022 at 4:05pm

Php Validation Class

This article includes the PHP class I use for simple form validation.

Read More: Php Validation Class Updated: Feb. 17th 2022 at 4:54pm

How To Install Composer On Ubuntu

Read More: How To Install Composer On Ubuntu Updated: Apr. 11th 2023 at 10:35am

Php Heredocs

Developers who don’t use heredoc’s have really annoying code to edit.

Read More: Php Heredocs Updated: Feb. 17th 2022 at 7:12pm

Php Mysql Insert From Array

I first wrote this article in 2009 when CodeIgniter’s active record class did most of the db work for you.  Eventually I'll update this to talk about my php class helper for MySQL.

Read More: Php Mysql Insert From Array Updated: Apr. 5th 2022 at 2:06am

Redirect Based On Browser (user agents)

Read More: Redirect Based On Browser (user agents) Updated: Jul. 18th 2022 at 12:23am

Php Sessions

This is a brief introduction to PHP sessions. Creating sessions are very easy!

Read More: Php Sessions Updated: Feb. 17th 2022 at 5:34pm

Password Protection using Apache's htaccess

Protecting a directory with a password using Apache and htaccess is really simple, I'll tell you how anyway.

Read More: Password Protection using Apache's htaccess Updated: Feb. 17th 2022 at 5:31pm

Using Apache to Redirect Pages

In this article I explain how to do a 301 and 302 redirect using Apache's .htaccess file.

Read More: Using Apache to Redirect Pages Updated: Mar. 11th 2022 at 10:48pm

Htaccess 404 Page

Usually 404 pages are handled within your framework or CMS, but some cases call for an htaccess 404 page.

Read More: Htaccess 404 Page Updated: Feb. 17th 2022 at 6:14pm

Htaccess Subdomains to www

Search engines are making duplicate content an easy problem to solve.

Read More: Htaccess Subdomains to www Updated: Feb. 17th 2022 at 6:18pm

Redirect index.php to root (/)

How to redirect all traffic to a single page.

Read More: Redirect index.php to root (/) Updated: Feb. 17th 2022 at 6:21pm

Getting Started With Ansible

Here is a tutorial of how I would start a server from scratch using ansible and docker

Read More: Getting Started With Ansible Updated: Feb. 17th 2022 at 6:34pm

Bash Aliases To Save Time

Creating an alias allows saves you time by reducing the amount of characters you have to type.

Read More: Bash Aliases To Save Time Updated: Feb. 17th 2022 at 6:36pm

Everything about etc hosts file

I don't work in Windows or Mac often so I always forget where the hosts file is located. The windows etc hosts file and Unix etc host file both work the same, so usage is easy.

Read More: Everything about etc hosts file Updated: Feb. 17th 2022 at 6:39pm

Using Docker Compose

This is the foundation I use for docker-compose.

Read More: Using Docker Compose Updated: Feb. 17th 2022 at 6:42pm

Docker Getting Started

This is my introduction to docker and how to use docker.

Read More: Docker Getting Started Updated: Feb. 17th 2022 at 6:45pm

Git Quick reference (cheatsheet)

I use Git on a daily basis; however, I don’t use every command frequently so here is a quick list of git commands used infrequently. I guess this is meant to be a cheat sheet.

Read More: Git Quick reference (cheatsheet) Updated: Feb. 17th 2022 at 6:59pm

Using grep for web development

grep is a great tool for web development and System administraton.

Read More: Using grep for web development Updated: Feb. 17th 2022 at 7:02pm

Headless Virutalbox (Cheat Sheet)

Virtualbox is exteremly handy on a development server, learn how to run it headless.

Read More: Headless Virutalbox (Cheat Sheet) Updated: Feb. 17th 2022 at 7:04pm

Install Ubuntu Server 1804

Installing Ubuntu Server is really easy, but I though I’d share how I do it with you. The goal at the end of this article is to have a working server you can connect to through ssh using the root user. I may in the future call this a “Root Server”.

Read More: Install Ubuntu Server 1804 Updated: Feb. 17th 2022 at 7:11pm

Introduction to Tmux

tmux is pretty awesome, here is where I write about it.

Read More: Introduction to Tmux Updated: Feb. 17th 2022 at 7:11pm

Mirror a Website With Wget

This article explains how to mirror a website for backup purposes.

Read More: Mirror a Website With Wget Updated: Feb. 17th 2022 at 7:15pm

Back up and restore MySQL databases

This article will briefly explain how to use the command line to backup your databases, making it easy to automate your tasks using bash scripts.

Read More: Back up and restore MySQL databases Updated: Feb. 17th 2022 at 7:21pm

MySQL Runaway Process

Here are the commands to stop a run away process.

Read More: MySQL Runaway Process Updated: Feb. 17th 2022 at 7:25pm

Reset MySQL (or MariaDB) Root Password

This article explains how to reset the database root password.

Read More: Reset MySQL (or MariaDB) Root Password Updated: Feb. 17th 2022 at 7:28pm

Rsync

This article is my reference for everything to do with Rsync. I use Rsync for docker containers, backups and moving servers.

Read More: Rsync Updated: Mar. 19th 2022 at 1:22am

Server Storage

This article outlines everything I can think of about space on your server drives.

Read More: Server Storage Updated: Feb. 17th 2022 at 7:34pm

Split Files Into Chunks

Split is a really easy Linux command you can use to split large files into smaller chunks.

Read More: Split Files Into Chunks Updated: Feb. 17th 2022 at 9:55pm

SSH Keys

Everything about ssh keys on Ubuntu

Read More: SSH Keys Updated: Feb. 17th 2022 at 10:03pm

Ubuntu Keyboard Shortcuts

The purpose of this article is to quickly teach you useful time-saving keyboard shortcuts available in Ubuntu.

Read More: Ubuntu Keyboard Shortcuts Updated: Feb. 17th 2022 at 10:05pm

Using Screen (Linux)

Screen is a linux command line tool that allows you to store sessions and create windows without a GUI.

Read More: Using Screen (Linux) Updated: Feb. 17th 2022 at 10:08pm

What's using your Bandwidth

A quick article that lets you know what's using your bandwidth.

Read More: What's using your Bandwidth Updated: Feb. 17th 2022 at 10:11pm

Google Authorship Markup

Google displays the author of content in certain search results.

Read More: Google Authorship Markup Updated: Feb. 17th 2022 at 10:23pm

Canonical Link Tag

I find there is still some confusion with canonical link tag.Here I explain and provide resources to everything canonical tag realted in this article.

Read More: Canonical Link Tag Updated: Feb. 17th 2022 at 10:28pm

Coming Soon Page

Will a coming soon page hurt your rankings?

Read More: Coming Soon Page Updated: Feb. 17th 2022 at 10:28pm

Dont Hide Text

There was a time when a spammer would hide text from either the user or a search engine.  This technique doesn't work because Google is really good at catching spam.  This article discusses some common spam tatics that should not be used.

Read More: Dont Hide Text Updated: Feb. 17th 2022 at 10:32pm

How Many Links per Page

Do you know how many links (a href) you should have on a single page? Matt Cutts has written a great article which puts things into perspective.

Read More: How Many Links per Page Updated: Feb. 17th 2022 at 10:34pm

Keyword Tool

Are you trying to pick a domain name? or choosing keywords to litter through your site? A great way to see which words are searched for the most are Keyword tools.

Read More: Keyword Tool Updated: Feb. 17th 2022 at 10:40pm

How Google Uses Metatag Keywords

I wrote this article because I found there were a lot of SEO Experts stating that the meta tag keywords is important.

Read More: How Google Uses Metatag Keywords Updated: Feb. 17th 2022 at 11:17pm

Moving A Website

How to move a website keeping Search Engine's in mind.

Read More: Moving A Website Updated: Feb. 17th 2022 at 11:19pm

No Follow

Nofollow is a great way to reduce comment spam and keep your site a reputable source for search engines.

Read More: No Follow Updated: Feb. 17th 2022 at 11:22pm

Robots noindex meta tag

Matt Cutts did some great research on how the index meta tag is handled between search engines.  I summarize his results in this article.

Read More: Robots noindex meta tag Updated: Feb. 17th 2022 at 11:36pm

Remove a Page From Search Engines

In this article I explain how you can remove pages or sites from Google.

Read More: Remove a Page From Search Engines Updated: Feb. 17th 2022 at 11:38pm

Everything you need to know about robots.txt

Robots.txt doesn't quite work as most people assume, so I am writing this article to clear things up.

Read More: Everything you need to know about robots.txt Updated: Feb. 17th 2022 at 11:40pm

Choose A Good Domain Name

In this article I will explain the steps you should take when choosing a domain for your organization.  Domain Names are very important because they are what your customers, visitors or users will use to return to your website.  In order for your site to be successful they will need to implement most of the following steps.

Read More: Choose A Good Domain Name Updated: Apr. 2nd 2022 at 3:44am

Compress and Combine CSS

In this article I'm going to show you how I merge and compress my CSS files using PHP.

Read More: Compress and Combine CSS Updated: Feb. 18th 2022 at 4:06am

CSS HTML Stylesheet

The HTML CSS style sheet is one of the files I use with my own personal CSS framework.

Read More: CSS HTML Stylesheet Updated: Apr. 30th 2022 at 7:33pm

CSS Library

By creating a standard library for all my sites, I'm able to rapidly develop web sites and reduce repetitive work.

Read More: CSS Library Updated: Feb. 18th 2022 at 6:49pm

Override Inline Styles

Why would you want to overwrite in-line styles? The most common reason I can think of is when a CMS or plugin automatically posts in-line styles to it's output.

Read More: Override Inline Styles Updated: Feb. 18th 2022 at 6:52pm

CSS Specificity

CSS Specifity is one of the most important concepts to grasp with css.

Read More: CSS Specificity Updated: Feb. 18th 2022 at 6:54pm

Intro to Html

This article quickly outlines basic HTML with the intent of teaching someone enough to edit a page of a corporate website which uses a Content Management System(CMS).

Read More: Intro to Html Updated: Feb. 18th 2022 at 6:56pm

HTML 5 Boilerplate

This article is going to go through some of the features and how you can use them with PHP, Hugo, Joomla, CodeIgniter & Wordpress.

Read More: HTML 5 Boilerplate Updated: Feb. 18th 2022 at 7:01pm

404 Resources

My collected resources of 404 pages.

Read More: 404 Resources Updated: Apr. 2nd 2022 at 3:51am

Install Git on Ubuntu

How to install git on Ubuntu.

Read More: Install Git on Ubuntu Updated: May. 4th 2022 at 8:19pm

Windows Tips, Tricks and Gotchas

Windows tips, tricks and gotchas that I have accumulated.

Read More: Windows Tips, Tricks and Gotchas Updated: Mar. 22nd 2024 at 12:03pm