Skip to content

Instantly share code, notes, and snippets.

@whophil
whophil / jupyter.service
Last active Apr 6, 2021 — forked from doowon/jupyter_systemd
A systemd script for running a Jupyter notebook server.
View jupyter.service
# After Ubuntu 16.04, Systemd becomes the default.
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py
@whophil
whophil / git-latexdiff.sh
Last active Apr 17, 2016 — forked from arthurd2/git-latexdiff.sh
Produces a diff PDF of a LaTeX repo against a specified hash using latexdiff.
View git-latexdiff.sh
#!/usr/bin/env bash
# Shell script to run latexdiff against the same file from a specified commit hash.
# Example:
# ./git-latexdiff.sh main.tex 12dfa1a
# $1 is the name of the old tex file (relative to the remote repo)
# $2 is the hash of the commit that we'd like to compare against
@whophil
whophil / .gitignore
Created Feb 21, 2016 — forked from k0d3r/gist:3118874
.gitignore for OS (Windows/Mac) generated files
View .gitignore
# Windows
Thumbs.db
desktop.ini
# OS X
.DS_Store
.Spotlight-V100
.Trashes
._*