- 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.2xlargeis 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).
| #!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/' |
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.
If you are on a Mac, substitute command for control. Don't type the + (it means press both keys at once).
-
Shift+Enterrun selected cell or cells - if no cells below, insert a code cell below -
Ctrl+Btoggle hide/show left sidebar -
Ctrl+Ssave and checkpoint -
Ctrl+Shift+Ssave as
EDIT: have a look at conventional commits standard instead, they are saying much of what i'm saying here, but in a formalized way.
This document gathers wisdom from different sources to provide a sensible guide for writing commit messages.
Sources:
The AngularJS contributing guides
Open Source Review Toolkit's contribute guide
| #!/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 |