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.
Virtualbox on Windows
This is a video I created to get Virtualbox 7 installed on Windows 11.
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.
Php Validation Class
This article includes the PHP class I use for simple form validation.
How To Install Composer On Ubuntu
Php Heredocs
Developers who don’t use heredoc’s have really annoying code to edit.
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.
Redirect Based On Browser (user agents)
Php Sessions
This is a brief introduction to PHP sessions. Creating sessions are very easy!
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.
Using Apache to Redirect Pages
In this article I explain how to do a 301 and 302 redirect using Apache's .htaccess file.
Htaccess 404 Page
Usually 404 pages are handled within your framework or CMS, but some cases call for an htaccess 404 page.
Htaccess Subdomains to www
Search engines are making duplicate content an easy problem to solve.
Redirect index.php to root (/)
How to redirect all traffic to a single page.
Getting Started With Ansible
Here is a tutorial of how I would start a server from scratch using ansible and docker
Bash Aliases To Save Time
Creating an alias allows saves you time by reducing the amount of characters you have to type.
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.
Using Docker Compose
This is the foundation I use for docker-compose.
Docker Getting Started
This is my introduction to docker and how to use docker.
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.
Using grep for web development
grep is a great tool for web development and System administraton.
Headless Virutalbox (Cheat Sheet)
Virtualbox is exteremly handy on a development server, learn how to run it headless.
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”.
Introduction to Tmux
tmux is pretty awesome, here is where I write about it.
Mirror a Website With Wget
This article explains how to mirror a website for backup purposes.
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.
MySQL Runaway Process
Here are the commands to stop a run away process.
Reset MySQL (or MariaDB) Root Password
This article explains how to reset the database root password.
Rsync
This article is my reference for everything to do with Rsync. I use Rsync for docker containers, backups and moving servers.
Server Storage
This article outlines everything I can think of about space on your server drives.
Split Files Into Chunks
Split is a really easy Linux command you can use to split large files into smaller chunks.
Ubuntu Keyboard Shortcuts
The purpose of this article is to quickly teach you useful time-saving keyboard shortcuts available in Ubuntu.
Using Screen (Linux)
Screen is a linux command line tool that allows you to store sessions and create windows without a GUI.
What's using your Bandwidth
A quick article that lets you know what's using your bandwidth.
Google Authorship Markup
Google displays the author of content in certain search results.
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.
Coming Soon Page
Will a coming soon page hurt your rankings?
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.
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.
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.
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.
Moving A Website
How to move a website keeping Search Engine's in mind.
No Follow
Nofollow is a great way to reduce comment spam and keep your site a reputable source for search engines.
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.
Remove a Page From Search Engines
In this article I explain how you can remove pages or sites from Google.
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.
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.
Compress and Combine CSS
In this article I'm going to show you how I merge and compress my CSS files using PHP.
CSS HTML Stylesheet
The HTML CSS style sheet is one of the files I use with my own personal CSS framework.
CSS Library
By creating a standard library for all my sites, I'm able to rapidly develop web sites and reduce repetitive work.
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.
CSS Specificity
CSS Specifity is one of the most important concepts to grasp with css.
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).
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.
Install Git on Ubuntu
How to install git on Ubuntu.
Windows Tips, Tricks and Gotchas
Windows tips, tricks and gotchas that I have accumulated.