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 / README.md
Last active April 21, 2024 03:12
Deploy to GitHub Pages with GitHub Actions

GH Pages deploy

Deploys for static sites or web apps made easy with GitHub Actions

A generic but elegant CI flow for deploying a site to Github Pages - this is triggered on a push to master and runs on Github Actions - docs.

This workflow is targeted at a static site like Hexo or a single-page applciation like React project. It doesn't matter what the language is as long as your build steps results in a public directory which can be served on Github Pages.

Show me the workflow

@MichaelCurrin
MichaelCurrin / README.md
Last active April 14, 2024 16:26
GitHub GraphQL - Get Pull Requests using GH's GraphQL API

Get Pull Requests using GH's GraphQL API

How to get Pull Requests data using Github in the browser, or using the API to allow for automating reporting or building in values into a website.

Resources

@MichaelCurrin
MichaelCurrin / setup-python3-virtual-env.md
Last active April 12, 2024 20:57
Set up Python 3 and new virtual environment

Set up Python 3 and new virtual environment

A beginner's guide to installing Python 3 and setting up a virtual environment

This guide covers how to install and upgrade Python 3 and how to create and an install into a Python virtual environment.

This is best practice in Python for both local and production code, as it isolates the scope where your python commands and pip commands run, protecting your global environment and allowing your to manage multiple virtual environments each with their own set of unique Python packages.

@MichaelCurrin
MichaelCurrin / README.md
Last active March 26, 2024 15:29
VS Code snippets
@MichaelCurrin
MichaelCurrin / install-node-using-nvm.md
Last active March 23, 2024 16:25
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 March 19, 2024 09:48
Recommended VS Code extensions

Recommended VS Code extensions

Extensions I use or want to use in VS Code.

I add links and explanations so you can use them too if you want.

Language and tool-specific support

Such as syntax highlighting and linting.

@MichaelCurrin
MichaelCurrin / install-go-manually.md
Last active March 7, 2024 12:52
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.
@MichaelCurrin
MichaelCurrin / README.md
Last active March 6, 2024 10:19
Twitter GraphQL sample

Twitter GraphQL sample

Example of using a GraphQL service to explore the Twitter API

A great way to explore the Twitter API and returned data, without worrying about authorization or local setup. Just add a query in the explorer and hit run.

About

The GraphQL Hub website has an interactive GraphiQL service which allows access to Gitub, Twitter, Giphy and other APIs in the browser without authorization.

@MichaelCurrin
MichaelCurrin / README.md
Last active March 5, 2024 22:06
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@MichaelCurrin
MichaelCurrin / export-netlix-list.md
Last active February 12, 2024 08:04
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