Skip to main content

Creating then adding a key to the remote repository

In this woalk through I am going to use GitHub.  However, the steps are similar to a Bitbucket profile. 

Logged in to your GitHub account, click your profile icon, located (at the time of this writing) on the top right corner. 

Select Settings

Click SSH and GPG Keys

Click Add New SHH Key

A new page will open  requiring

How to access Lando logs on your Mac / Linux sys

Working in Lando and you have hit the situation where you need to view the log files.  Where?  How?

Lando has several log layers to assist in diagnosing many of the issues you might encounter.

 

Install Logs

Failed installation?  Find logs in the following locations:

macOS - /var/log/install.log
Linux - Differs per system but check common apt or dnf/yum logs

 

Runtime Logs

Runtime?  Check:

Empty a file using command

First off, this isn't the only method to achieve the outcome of emptying a file.

Using a symbol : is a shell built-in command that is essence equivalent to the true command and it can be used as a no-op (no operation).  It can be used as follows:

# : > filename.txt

OR 

# true > filename.txt

 

My initial file was as follows:

21548342 16 Mar 20:27 code.log

Post using the command 

Mac: how to clear cache

Clear DNS Cache

The DNS (Domain Name Service) cache on your Mac helps browsers locate and connect to web addresses quickly. If your browser Safari or Chrome still fails to load websites, this can be the result of an obsolete DNS cache may be causing the issue. In this instance you want to focus clearing the cache.  Using Terminal or iTerm2 enter the following command:

sudo killall -HUP mDNSResponder

 

Cocoapods install and update

Getting Started with Cocoapods

Installation

Built with Ruby, Cocopods is installable with the default Ruby available on macOS.  Using the default Ruby install will require you to use sudo when installing gems.

sudo gem install cocoapods

However, if you attempt to install or update Cocopods without Sudo you will hit a permission issue.

xdebug error

xdebug - failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 45: unknown instruction: ZEND_EXTENSION=XDEBUG.SO

 

How I got here

Running the following Docker command

docker-compose up

Generated this output:

Install iTerm2 and integrate zsh

 

Z shell (Zsh) is a Unix shell built on top of bash (the default shell for macOS) with a large number of improvements.

In this article, I'll run through how to configure iTerm2 with ZSH and its dependencies.

 

Step 1: Install Homebrew

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS.

Setting up a new local site environment

Setting up a new project in Docker and VS Code.

Using Terminal, go to your Sites directory and create a new directory using the mkdir command.  In this instance I'm going to create a new directory titled ADCE

shortcut command to access the Sites directory

cd ~/Sites

Create the new directory

mkdir ADCE

Go in to the new directory

cd ADCE

Run the devcontainer command

Onboarding

Joining a new company / team there is always a lot of new items to do, install and familiarise yourself.  Below is a working list:

Subscribe to OSX