Skip to content

Instantly share code, notes, and snippets.

View BartBoerman's full-sized avatar
😀
Passed Prof. Cert. in Data Sience by HarvardX

Bart Boerman BartBoerman

😀
Passed Prof. Cert. in Data Sience by HarvardX
View GitHub Profile
@BartBoerman
BartBoerman / jupyter.service
Created May 4, 2018 06:35 — forked from whophil/jupyter.service
A systemd script for running a Jupyter notebook server.
# 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
@BartBoerman
BartBoerman / run-jar-as-a-service.md
Created January 22, 2018 09:38 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &