Skip to content

Instantly share code, notes, and snippets.

View leosuncin's full-sized avatar

Jaime Leonardo Suncin Cruz leosuncin

View GitHub Profile
@leosuncin
leosuncin / JDownloader2.sh
Last active May 28, 2024 09:44
JDownloader 2 headless startup script
#!/bin/sh
DESC="JDownloader 2 Headless"
NAME=JDownloader2
PIDFILE=/var/run/$NAME.pid
COMMAND="/usr/bin/java -- -Djava.awt.headless=true -jar /home/osmc/jDownloader2/JDownloader.jar"
RUN_AS=osmc
d_start() {
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND
@leosuncin
leosuncin / Procfile
Last active August 29, 2015 14:20 — forked from facultymatt/Procfile
Deployd on Heroku
web: node server
@leosuncin
leosuncin / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console