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 / static_site_setup_and_run.md
Last active June 7, 2021 08:09
Set up and run Jekyll sites

Static Site - Setup and Run

Update: The contents of this Gist have moved to a repo here

@MichaelCurrin
MichaelCurrin / jekyll_help.md
Last active September 24, 2020 08:42
Useful links around static sites including Liquid and Jekyll

Jekyll Help

Update: The contents of this Gist have moved to a repo here

@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 / freeze_short
Last active September 5, 2020 16:49
Pip freeze alternative
#!/usr/bin/env python3
"""
Pip freeze alternative.
Show exact versions of Python packages in a virtual environment, matching
ONLY libraries named in the requirements file, in order to give a shorter version
of pip freeze output.
The logic in this script:
- requirements.txt doesn't always have versions or exact versions it.
@MichaelCurrin
MichaelCurrin / install_ruby_bundler_jekyll.md
Last active May 29, 2021 07:50
Install Ruby, Bundler and Jekyll at the user level
@MichaelCurrin
MichaelCurrin / install-node-npm.md
Last active December 26, 2022 02:49
Install Node.js and NPM

How to install Node.js and NPM

Links:

Get Node.js and NPM (always installed together):

@MichaelCurrin
MichaelCurrin / run_docsify_locally.md
Last active September 1, 2020 19:00
Serve a docs site locally with DocsifyJS

Serve a docs site locally with DocsifyJS

Choose an option below depending on whether you want to install and run Docsify CLI (optional), or use another server. Either way, you serve the docs directory.

Docsify CLI
  1. Install NodeJS.
  2. Install Docsify CLI
@MichaelCurrin
MichaelCurrin / install-python-3.md
Last active January 27, 2024 14:27
How to install Python 3
@MichaelCurrin
MichaelCurrin / docsify-embed-gist.md
Last active May 8, 2023 14:50
Docsify - embed a gist that stays update to date
@MichaelCurrin
MichaelCurrin / bar.md
Last active April 22, 2020 12:58
Demo of multi-file gist with internal links

Bar

The order seems alphabetical for files.