This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Encoding=UTF-8 | |
Name=Qms | |
Comment=Start QMS | |
Exec=/usr/local/bin/run_website.sh | |
Icon= | |
Terminal=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |