Skip to content

Instantly share code, notes, and snippets.

@parente
parente / gist:c4ce8c138ed3b2fa3249
Created January 16, 2015 20:03
ipython js merge test failures
PASS Cell 2 is splittable
PASS Cell 2 is mergeable
FAIL Merge cell 0 down: There are still 3 cells
# type: assertEquals
# file: /Users/parente/projects/ipython/IPython/html/tests/notebook/dualmode_merge.js:74
# code: this.test.assertEquals(this.get_cells_length(), 3, 'Merge cell 0 down: There are still 3 cells');
# subject: 4
# expected: 3
FAIL Merge cell 1 up: There are still 3 cells
# type: assertEquals

Setup for IPython dev in boot2docker on my Mac

$ brew install boot2docker docker
$ boot2docker init
$ boot2docker up

$ cd ipython
$ docker build -t ipython-dev .
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@parente
parente / nginx.conf
Last active April 3, 2023 16:00
nginx.conf recipe for username-based authorization levels for a Docker registry
user www-data;
worker_processes 1;
daemon off;
events {
worker_connections 1024;
}
http {
upstream docker-registry {
[I 19:13:07.489 NotebookApp] Using MathJax: /static/vendor/MathJax-2.5-latest/MathJax.js
[I 19:13:07.501 NotebookApp] Using existing profile dir: u'/home/notebook/.ipython/profile_default'
[C 19:13:07.816 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[C 19:13:07.817 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
[I 19:13:07.852 NotebookApp] Serving notebooks from local directory: /resources
[I 19:13:07.852 NotebookApp] 0 active kernels
[I 19:13:07.852 NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888/
[I 19:13:07.853 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 19:13:07.854 NotebookApp] No web browser found: could not locate runnable browser.
[I 19:13:18.278 NotebookApp] Kernel started: dbfd634c-44ba-47d8-820b-a5fc59c7d62c
@parente
parente / dynamite.ipynb
Created March 13, 2015 00:53
Dynamite!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@parente
parente / postinstall.sh
Last active April 23, 2024 06:11
Post-install script to disable SSH password authentication, install latest Docker with AUFS on Ubuntu 14.04 VMs
#!/bin/bash
# Disable password authentication
sudo grep -q "ChallengeResponseAuthentication" /etc/ssh/sshd_config && sed -i "/^[^#]*ChallengeResponseAuthentication[[:space:]]yes.*/c\ChallengeResponseAuthentication no" /etc/ssh/sshd_config || echo "ChallengeResponseAuthentication no" >> /etc/ssh/sshd_config
sudo grep -q "^[^#]*PasswordAuthentication" /etc/ssh/sshd_config && sed -i "/^[^#]*PasswordAuthentication[[:space:]]yes/c\PasswordAuthentication no" /etc/ssh/sshd_config || echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
sudo service ssh restart
# Install latest Docker
sudo apt-get update
sudo apt-get -y install linux-image-extra-$(uname -r)
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
@parente
parente / README.md
Last active August 29, 2015 14:22
KISS softlayer: secure one-off VM

Deploys a one-off SoftLayer VM for experimentation using the SoftLayer CLI and its current configuration.

@parente
parente / README.md
Last active August 29, 2015 14:22
KISS screen2web

Runs the parente/screen2web container on a clip.mp4 file in the current directory. Outputs a main profile mov and ogv in the same directory.

@parente
parente / README.md
Last active August 29, 2015 14:22
KISS espeakbox