Skip to content

Instantly share code, notes, and snippets.

@bzamecnik
bzamecnik / README.md
Last active November 16, 2023 08:58
Anaconda Python script running as systemd service

Anaconda Python script running as systemd service

This way a Python daemon can be installed on Rasbian, Ubuntu or similar systems using systemd.

Installing:

sudo cp hello.service /lib/systemd/system/hello.service
sudo systemctl daemon-reload
sudo systemctl enable hello.service
@zamnuts
zamnuts / break-on-exception.js
Last active August 3, 2016 12:07
enable break on exception
/*
* filename: index.js
* run: node--debug-brk index.js
* tested in node v0.10.30
*/
global.v8debug.Debug.setBreakOnException(); // enable it, global.v8debug is only defined when --debug flag is set
setTimeout(function() {
bogus(); // should break here, "`bogus` is not defined"
},2000);