Skip to content

Instantly share code, notes, and snippets.

View JeremyMcCormick's full-sized avatar
:octocat:

Jeremy McCormick JeremyMcCormick

:octocat:
View GitHub Profile
@JeremyMcCormick
JeremyMcCormick / filter_chatgpt_conversation.py
Last active September 2, 2025 23:30
Reads in exported ChatGPT conversation data (JSON format), filters based on keywords, and then writes out the filtered conversatiosn to JSON, HTML, or a directory with HTML files (Generated by ChatGPT-5)
#!/usr/bin/env python3
"""
Filter ChatGPT export conversations by keyword and optionally write results to
JSON, a single HTML file, or a directory with one HTML file per conversation.
Usage:
python filter_conv.py --json /path/to/conversations.json --keyword "ppdb" \
--out-json filtered_conversations.json \
--out-html filtered_conversations.html \
--out-dir filtered_conversations_dir
@janderssonse
janderssonse / git-commit-message-guidelines.md
Last active July 25, 2025 08:55
Git Commit Message Guidelines
@discdiver
discdiver / jupyterlab_shortcuts.md
Last active July 3, 2025 07:13
Common Jupyter Lab Keyboard Shortcuts

If you are on a Mac, substitute command for control. Don't type the + (it means press both keys at once).

Shortcuts when in either command mode (outside the cells) or edit mode (inside a cell):

  • Shift + Enter run selected cell or cells - if no cells below, insert a code cell below

  • Ctrl + B toggle hide/show left sidebar

  • Ctrl + S save and checkpoint

  • Ctrl + Shift + S save as

This page is a curated collection of Jupyter/IPython notebooks that are notable for some reason. Feel free to add new content here, but please try to only include links to notebooks that include interesting visual or technical content; this should not simply be a dump of a Google search on every ipynb file out there.

Important contribution instructions: If you add new content, please ensure that for any notebook you link to, the link is to the rendered version using nbviewer, rather than the raw file. Simply paste the notebook URL in the nbviewer box and copy the resulting URL of the rendered version. This will make it much easier for visitors to be able to immediately access the new content.

Note that Matt Davis has conveniently written a set of bookmarklets and extensions to make it a one-click affair to load a Notebook URL into your browser of choice, directly opening into nbviewer.

@widdowquinn
widdowquinn / jupyterhub_aws.md
Created December 9, 2017 16:33
Set up JupyterHub on AWS

JupyterHub on AWS

EC2 Setup

  • Log in to AWS
  • Go to a sensible region
  • Start a new instance with Ubuntu Trusty (14.04) - compute-optimised instances have a high vCPU:memory ratio, and the lowest-cost CPU time. c4.2xlarge is a decent choice.
  • Set security group (firewall) to have ports 22, 80, and 443 open (SSH, HTTP, HTTPS)
  • If you want a static IP address (for long-running instances) then select Elastic IP for this VM
  • If you want to use HTTPS, you'll probably need a paid certificate, or to use Amazon's Route 53 to get a non-Amazon domain (to avoid region blocking).
@fishi0x01
fishi0x01 / baseURL.groovy
Last active February 3, 2025 16:37
This is a collection of groovy scripts I gathered and use for bootstrapping Jenkins. Most of this can also be achieved with the CasC Plugin https://github.com/jenkinsci/configuration-as-code-plugin
#!groovy
/*
* This script configures the Jenkins base URL.
*/
import jenkins.model.JenkinsLocationConfiguration
JenkinsLocationConfiguration location = Jenkins.instance.getExtensionList('jenkins.model.JenkinsLocationConfiguration')[0]
location.url = 'https://jenkins-as-code-poc.devtail.io/'