Skip to content

Instantly share code, notes, and snippets.

View nelson's full-sized avatar

Nelson Tam nelson

  • Sydney, Australia
View GitHub Profile
@nelson
nelson / keybase.md
Created December 5, 2014 03:41
keybase prove github

Keybase proof

I hereby claim:

  • I am nelson on github.
  • I am ntam (https://keybase.io/ntam) on keybase.
  • I have a public key whose fingerprint is 1646 8F05 77C0 C1BB FD6B 9DC7 89FA 0E46 691C 69C5

To claim this, I am signing this object:

@nelson
nelson / fastmail.sieve
Created November 22, 2022 01:16
Fastmail sieve - put email aliases into their own subfolder
#
# My custom sieve script for putting emails into their own subfolder
# Ref: https://www.reddit.com/r/fastmail/comments/qahdf3/my_custom_sieve_script_for_putting_emails_into/
#
if exists "X-Delivered-to" {
# An email addressed to
# "website@user.domain.com" will be put in the folder "Website"
# "my-website@user.domain.com" will be put in the folder "My Website"
if header :regex "X-Delivered-to" "([A-z0-9]+)-?([A-z0-9]+)?@user.domain.com" {
## Fish
apt install fish kitty
chsh -s /usr/bin/fish
## Window manager
add-apt-repository ppa:regolith-linux/release
apt install regolith-desktop i3xrocks-net-traffic i3xrocks-cpu-usage i3xrocks-time regolith-look-gruvbox regolith-look-solarized-dark
@nelson
nelson / python-pocketsmith-api.markdown
Created July 1, 2021 12:57
Compiling a new python library for Pocketsmith

Compiling a new python library for Pocketsmith

  1. Clone the source code for the Python client library
  2. Inside that directory, clone the Pocketsmith API into python-pocketsmith-api/pocketsmith-api-spec.
  3. Use the [Swagger editor][3] to convert openapi.json to openapi.yaml. [(Reference)][3ref]
  4. Go back to the client library and run ./generate-pocketsmith-library.sh. The library will be written to ./pocketsmith.
  5. Place the new library in $PYTHONPATH. On macOS, you can use /usr/local/lib/python<ver>/site-packages/pocketsmith.