Skip to content

Instantly share code, notes, and snippets.

View MichaelCurrin's full-sized avatar

Michael Currin MichaelCurrin

  • The Netherlands
View GitHub Profile
@MichaelCurrin
MichaelCurrin / install-nvm.md
Last active July 6, 2025 21:00
Install NVM (Node Version Manager)

Install NVM (Node Version Manager)

How to install NVM and install and activate a target Node.js version

You can install multiple version of Node.js using NVM.

Node.js vs NVM
@MichaelCurrin
MichaelCurrin / install_ruby_bundler_project_jekyll.md
Last active August 16, 2025 06:51
Set up Ruby, Bundler and a project-level Jekyll on macOS Catalina and up

Set up Jekyll environment on macOS

Set p Ruby, Bundler and a project-level Jekyll on macOS Catalina and up

This guide is for macOS Catalina and is based on the Jekyll on macOS doc and my experience.

1. Install dev tools

Use the XCode CLI to install dev tools. Recommended so that you can install native extensions when installing gems.

@MichaelCurrin
MichaelCurrin / install-node-using-nvm.md
Last active May 1, 2025 16:03
Install Node using NVM

Install Node using NVM

A guide to using NVM to install versions of Node.

If you don't have NVM yet, see Install NVM gist.

  1. Install a target Node.js version. A short version will do.
    $ nvm install 14
@MichaelCurrin
MichaelCurrin / README.md
Last active January 30, 2024 18:04
GitHub GraphQL - Get owned repos

Public repos owned by the current user

Get repos from the GitHub GraphQL API which are owned by the authenticated user (owner of the token).

Customize the query

Instead of OWNER, you can also change the ownerAffiliations filter in the query to be COLLABORATOR or ORGANIZATION_MEMBER. Or omit the filter.

Instead of setting privacy filter to PUBLIC, you can set to PRIVATE. Or omit the filter.

@MichaelCurrin
MichaelCurrin / export-netlix-list.md
Last active December 7, 2024 20:07
Export your list of favorite Netflix shows

Export Netflix List

Purpose

This gist helps your export names of shows on your Netflix profile list, so you can share those names with other people. You could put the output in a gist, blog post or email to your friends. I added mine as a gist here.

It will get the names of all the items on Netflix which are on My List. Shows that are your favorites or that you plan to watch. Note that this is separate from shows where you clicked the thumbs-up I like this button, which is more permanent, while you may want to trim your My List section down to remove shows you already watched. Unfortunately, I can't see any easy way to export all liked shows.

Requirements

@MichaelCurrin
MichaelCurrin / july-2021.txt
Last active June 30, 2023 10:13
Netlix - my list of shows I am watching or might watch
Brooklyn Nine-Nine. Bureau of Magical Things. Disenchantment. Rita. The Politician. Trollhunters: Tales of Arcadia, all Netflix
Tiny House Nation. Cabins in the Wild.
Parks and Rec
@MichaelCurrin
MichaelCurrin / README.md
Last active July 24, 2025 13:28
Jekyll - how to build a REST API

Jekyll - how to build a REST API

Serve your data as static JSON

How to make a read-only JSON REST API using Jekyll.

This doesn't need any Ruby plugins - you just use some built-in templating features in Jekyll 3 or 4.

You will end up with a single JSON file contains data for all pages on the site, and another JSON file of just posts. Alternatively, you can replace every HTML page and post with a JSON version.

@MichaelCurrin
MichaelCurrin / install-go-package-manager.md
Last active June 7, 2021 08:31
Install Go with a package manager

Install Go with a package manager

If you want a manual solution instead for more control and to get the latest release available, see this gist.

Install the Go binary.

  • Debian/Ubuntu
    • Install with apt-get to /usr/bin/go. NB. Requires root privileges.
      $ sudo apt-get update
@MichaelCurrin
MichaelCurrin / install-firefox-webdriver.md
Last active January 8, 2021 14:55
Install Firefox webdriver

Install Firefox webdriver

How to install Firefox's Geckdodriver so you can do webscraping with Selenium and Firefox.

macOS:

$ brew install geckodriver

Ubuntu/Debian:

@MichaelCurrin
MichaelCurrin / install-go-manually.md
Last active October 29, 2025 18:07
Install Go binary manually

Install Go binary manually

The instructions here work on Linux and macOS and use curl or wget to download Go. If you prefer to use a package manager, see this gist.

Download and install from the Go website:

  1. Find a release on Go site's Downloads page.
    • The filename will be:
      • go$VERSION.$OS-$ARCH.tar.gz
  • e.g.