Skip to content

Instantly share code, notes, and snippets.

View codeadamca's full-sized avatar
💭
Learning Code, Teaching Code

Adam Thomas codeadamca

💭
Learning Code, Teaching Code
View GitHub Profile
@codeadamca
codeadamca / mamp-php-versions.md
Last active June 25, 2024 13:16
How to add new PHP versions to MAMP on a Mac

Adding Versions of PHP to MAMP on a Mac

If you're working on a project that requires a version of PHP higher than the versions that MAMP comes with, you can easily add additional verions.

My version of MAMP came installed with PHP 7.4.21 and 8.0.8. I'm attempting to use MAMP to host a Laravel application which requires at least PHP 8.1.

The version of PHP MAMP uses is often different than the version you have installed. I have installed PHP using Brew. I'm currently running PHP 8.1.8. If you want to check your installed version of PHP, use the terminal and run the following command:

php --version
@codeadamca
codeadamca / mamp-upgrading-phpmyadmin.md
Last active January 16, 2023 04:35
mamp-upgrading-phpmyadmin.md

Updating phpMyAdmin in MAMP

When using MAMP, you may want to upgrade the version of phpMyAdmin. Or for example, after upgrading my MAMP version of PHP, phpMyAdmin started display a lot of PHP warnings.

phpmyadmin

These are the steps to upgrade phpMyAdmin:

  1. Download the dsired version of phpMyAdmin.
@codeadamca
codeadamca / deplying-to-github-pages.md
Last active March 5, 2023 13:26
Deploying a Static Page to GitHub Pages

Deploying a Static Page to GitHub Pages

You can host your GitHub repositories using GitHub Pages. This tool only allows hsoting of clients side languages such as HTML, CSS, and JavaScript.

To deploy a GitHub repository follow these steps:

  1. Navigate to the GitHUb repository that you would like to deploy.
  2. Click Settings (top right).
  3. Click Pages (left side).
  4. Choose Deploy from a branch, then select the branch (probably main), and then the folder (probably / (root)).
@codeadamca
codeadamca / username-github-io.md
Last active July 26, 2024 15:36
Setting up your username.github.io page

Setting up your username.github.io Page

When you setup GitHub pages, by default your content is available at https://<GITHUB_USERNAMNE>.github.io/<REPO_NAME>/.

However, if you create a repo with the exact name <GITHUB_USERNAME>.github.io, GitHub will automatically turn GitHub Pages on, and make this content avialable at https://<GITHUB_USERNAME>.github.io/. Kind of like your GitHub home page!

For example, I set up a sample at:
https://github.com/codeadamca/codeadamca.github.io

The repo is avilable as a website at:

@codeadamca
codeadamca / python-startup-ev3.md
Last active November 20, 2023 02:42
Run Python File on Startup on a LEGO® Mindstorms EV3 Hub

Description...

If atp-get isn't working, add this to /etc/apt/sources.list:

deb http://deb.debian.org/debian bullseye main contrib non-free

The run apt-get update.