yum install unzip
wget https://xteve.de/download/xteve_2_linux_amd64.zip
unzip xteve_2_linux_amd64.zip
vi /etc/systemd/system/xteve.service
| <?php | |
| /** | |
| * $str will hold a value that is copied from Excel or Google Sheets. | |
| * This will export Java code for RobotMap.java | |
| * | |
| * @author Noah Halstead <nhalstead00@gmail.com> | |
| * | |
| */ | |
| $str = <<<EOF |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Server Status Page</title> | |
| <meta property="status" content='{"api":"//example.com/server_status.php?format=json","interval":60,"expand":true,"servers":[{"id":12,"short":"Strawberry","online":true,"error":true,"hostname":"nhalstead.me","statusPageLink":false,"serialNumber":"0000","location":{"building":"X","rack":13,"unit":40}}]}'> | |
| <style> | |
| a:hover, a:focus, a:active { | |
| text-decoration: none; | |
| color: inherit; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Servers Down</title> | |
| <link href="https://fonts.googleapis.com/css?family=Inconsolata|Roboto:400,700" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Roboto'; | |
| background-color: #051411; | |
| text-align: center; |
| <?php | |
| namespace App\Traits; | |
| trait LockColumns | |
| { | |
| /** | |
| * Cast locked_columns as a JSON column | |
| * | |
| * @return void |
| <!DOCTYPE html><html> <head> <titleLoading.../title><style>body{background-color: #121212;color: #FFFFFF}.loading:after{content: ".";animation: dots 1s steps(5, end) infinite;}@keyframes dots{0%, 20%{color: rgba(0, 0, 0, 0); text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);}40%{color: #FFFFFF; text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);}60%{text-shadow: 0.25em 0 0 white, 0.5em 0 0 rgba(0, 0, 0, 0);}80%, 100%{text-shadow: 0.25em 0 0 white, 0.5em 0 0 white;}}</style> </head> <body> <div style="padding: 75px 50px 125px;"> <p style="text-align: center;"> <br/> <span style="font-family: tahoma; font-size: 32px;" class="loading">Loading</span> </p></div></body></html> |
| <?php | |
| echo round(memory_get_usage() / 1024 / 1024, 2) . ' MB'; | |
| ?> |
| <?php | |
| /** | |
| * Helper Function to insert text after a set string is found. | |
| * Insert Text from the head of the string After the Needle | |
| * | |
| * @param string $haystack | |
| * @param string $needle | |
| * @param string $insertText |
| /** | |
| * Convert a Key Value List to a Key Value Pair | |
| * | |
| * Input: | |
| * [{key: "enabled", value: true}] | |
| * Output: | |
| * {enabled: true} | |
| * | |
| * @param {object} list | |
| * @return {object} |
| <html> | |
| <head> | |
| <style> | |
| figure { | |
| width: -webkit-min-content; | |
| width: -moz-min-content; | |
| min-width: min-content; | |
| max-width: 30vw; | |
| width: auto; | |
| margin: 1em auto; |