Skip to content

Instantly share code, notes, and snippets.

View dsentker's full-sized avatar
🎧
No one I think is in my tree; I mean it must be high or low.

Daniel Sentker dsentker

🎧
No one I think is in my tree; I mean it must be high or low.
View GitHub Profile
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Qms
Comment=Start QMS
Exec=/usr/local/bin/run_website.sh
Icon=
Terminal=True
@dsentker
dsentker / Chunking: server-side
Created April 29, 2019 13:33 — forked from jayarjo/Chunking: server-side
Plupload Examples: Chunking
<?php
if (empty($_FILES) || $_FILES['file']['error']) {
die('{"OK": 0, "info": "Failed to move uploaded file."}');
}
$chunk = isset($_REQUEST["chunk"]) ? intval($_REQUEST["chunk"]) : 0;
$chunks = isset($_REQUEST["chunks"]) ? intval($_REQUEST["chunks"]) : 0;
$fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : $_FILES["file"]["name"];
@dsentker
dsentker / nohub.sh
Created February 12, 2019 16:07
Ubuntu nohub Example for node server
# Start service in background
nohup node server.js &
# Now you can exit SSH console
# Later, search for the process to kill it
ps -C node # a process id is showd
kill 123 # use process id