Skip to content

Instantly share code, notes, and snippets.

View amcintosh's full-sized avatar

Andrew McIntosh amcintosh

  • FreshBooks
  • Toronto
View GitHub Profile
@amcintosh
amcintosh / ubuntu-20.04-macbook-pro.md
Created April 13, 2024 19:24 — forked from johnjeffers/ubuntu-20.04-macbook-pro.md
Ubuntu 20.04 on a 15" Retina MacBook Pro (Mid-2014)

Ubuntu 20.04 on a 15" Retina MacBook Pro (Mid-2014)

These are notes from my efforts to get Ubuntu 20.04 installed on my older MacBook Pro. I'm making this gist public in the hopes that it's helpful to others.

I did a Minimal install, but selected the option to install additional 3rd-party drivers.

Wifi doesn't work during the install (because it requires a 3rd-party driver), so you won't be able to choose to download updates while installing. No big deal, run a software update after the install.

The installer takes about 25 minutes to complete. Post-install, most things work. The only driver I had to manually install was for the FaceTime camera. More on that below.

@amcintosh
amcintosh / HisgcuKonU2al.md
Created April 13, 2024 17:37 — forked from kgnfth/HisgcuKonU2al.md
How i sign git commits using Keybase on Ubuntu 20.04 and later.

Before following the guide, you should be familiar with GPG and Keybase... oh and Linux ofcourse!

The dollar sign($) means the terminal input.

Requirements

- gpg # which is preinstalled in linux
- git
- zsh
- oh-my-zsh
@amcintosh
amcintosh / sidebar_archive.html
Created August 9, 2016 16:29
Jinja template to print and archive month year list with post counts
{% set posts = site.query('/blog').include_hidden(false).all() %}
{% if posts %}
{% set new_month = '' %}
{# create a dict or it will not work #}
{% set x = {1:2} %}
<ul>
{% for post in posts %}
{% set this_month = post.pub_date.strftime('%B %Y') %}
{% if not x[this_month] %}
{% set this_month_count = 0 %}
### Keybase proof
I hereby claim:
* I am amcintosh on github.
* I am amcintosh (https://keybase.io/amcintosh) on keybase.
* I have a public key whose fingerprint is D096 EF49 C51E D278 E084 737A 267C 9BAA 3679 9D36
To claim this, I am signing this object: