Skip to content

Instantly share code, notes, and snippets.

@matthewjflee
matthewjflee / signing-git-commits.md
Created May 23, 2025 06:16 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@matthewjflee
matthewjflee / .zshrc
Created September 2, 2024 23:09 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac taken from bashbunni
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"

Set the base image to Ubuntu must be first instruction - use docker search to find images

FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)

Set the maintainer info

@matthewjflee
matthewjflee / FastList.tsx
Created January 27, 2021 04:56 — forked from derekstavis/FastList.tsx
Discord's FastList, but in TypeScript
import { forEachObjIndexed } from "ramda";
import * as React from "react";
import {
Animated,
ScrollView,
View,
ViewStyle,
LayoutChangeEvent,
NativeScrollEvent,
} from "react-native";
@matthewjflee
matthewjflee / sms.py
Created June 5, 2020 02:18
Send and sms
import smtplib
carriers = {
'fido': '@sms.fido.ca',
'telus': '@mms.telusmobility.com',
'koodo': '@msg.telus.com',
'bell': '@txt.bell.ca'
}
def send(message):
# Replace the number with your own, or consider using an argument\dict for multiple people.