This is not a recommended configuration. However, if you want to use Backported packages by default do the following:
Add the following configuration to /etc/apt/preferences
Package: *
Pin: release a=jessie-backports
Pin-Priority: 600
// Based upon https://github.com/hideakitai/ArtNet | |
// and https://github.com/sparkfun/SparkFunDMX | |
// Examples: | |
// ArtNet Input: | |
// https://github.com/hideakitai/ArtNet/blob/main/examples/WiFi/receiver/receiver.ino | |
// https://github.com/hideakitai/ArtNet/blob/main/examples/Ethernet/receiver/receiver.ino | |
// DMX Output: | |
// https://github.com/sparkfun/SparkFunDMX/blob/master/examples/Example1-DMXOutput/Example1-DMXOutput.ino | |
// FastLED (for onboard RGB status light) |
server { | |
listen 80; | |
server_name YOUR_HOSTNAME; | |
keepalive_timeout 70; | |
root /var/www/OSTicket/upload; | |
index index.php index.html index.htm; | |
set $path_info ""; |
import subprocess | |
import os | |
import requests | |
if os.geteuid() != 0: | |
exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.") | |
cmd_info = { |
import os | |
import subprocess | |
ignored_extensions = ('.py', '.md5') | |
rootdir = os.getcwd() | |
for subdir, dirs, files in os.walk(os.getcwd()): | |
for filename in files: | |
os.chdir(subdir) | |
relative_path = os.path.normpath(os.path.relpath(os.getcwd(), rootdir)) |
I hereby claim:
To claim this, I am signing this object:
<title>Cube World Server Status</title> | |
<h1>Cube World Server Status</h1> | |
<?php | |
$ch = curl_init("https://picroma.com/cubeworld"); | |
curl_setopt($ch, CURLOPT_NOBODY, true); | |
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 1000); | |
curl_exec($ch); | |
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); | |
if (($retcode==200) || (curl_errno($ch)!==28)) | |
{ |