Skip to content

Instantly share code, notes, and snippets.

View seanvree's full-sized avatar
🔎

Sean Vreeland seanvree

🔎
View GitHub Profile
@seanvree
seanvree / main.css
Created April 15, 2018 21:19
main.css
/*
Monitorr CSS file
https://github.com/Monitorr/Monitorr
*/
/* @import url(https://fonts.googleapis.com/css?family=Roboto:400); */
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);
body {
opacity: 1;
@seanvree
seanvree / phpinfo2.php
Created April 15, 2018 20:58
phpinfo2.php
<link rel="stylesheet" href="../css/main.css">
<style type="text/css">
a {
color: black;
}
#phpinfo {
@seanvree
seanvree / drives.php
Created April 11, 2018 21:02
drives.php
<?php
$fso = new COM('Scripting.FileSystemObject');
$D = $fso->Drives;
$type = array("Unknown","Removable","Fixed","Network","CD-ROM","RAM Disk");
foreach($D as $d ){
$dO = $fso->GetDrive($d);
$s = "";
if($dO->DriveType == 3){
$n = $dO->Sharename;
}else if($dO->IsReady){
@seanvree
seanvree / drive.php
Created April 11, 2018 20:46
drive.php
<?php
// $df contains the number of bytes available on "/"
$df = disk_free_space("/");
// On Windows:
$df_c = disk_free_space("C:");
$df_d = disk_free_space("Z:");
echo "df: " . $df;
echo "<br>";
@seanvree
seanvree / openHardwareMon
Created February 18, 2018 13:00
openHardwareMon
Open Hardware Monitor Report
--------------------------------------------------------------------------------
Version: 0.8.0.3
--------------------------------------------------------------------------------
Common Language Runtime: 4.0.30319.42000
<?php
$file = 'example.txt';
echo "$file\n";
echo "<br>";
$fh = fopen($file, 'a');
fwrite($fh, '<h1>File deleted and backed up</h1>');
<?php
echo "<b> //////////////// MONITORR /////////////// </b> <br />\n";
echo "<b> <a href='https://github.com/monitorr/Monitorr' target='_blank'> https://github.com/monitorr/Monitorr </a> </b> <br />\n";
echo "<br>";
echo "Usage: <br />\n";
echo "- This script uses CURL to check if a webpage is accessible at given URL. <br />\n";
echo "- If CURL fails, use a PING (pfsockopen) function to check if the port is OPEN at given URL <br />\n";
<?php
echo "<b> //////////////// MONITORR /////////////// </b> <br />\n";
echo "<b> <a href='https://github.com/monitorr/Monitorr' target='_blank'> https://github.com/monitorr/Monitorr </a> </b> <br />\n";
echo "<br>";
echo "Usage: <br />\n";
echo "- This script uses CURL to check if a webpage is accessible at given URL. <br />\n";
echo "- If CURL fails, use a PING (pfsockopen) function to check if the port is OPEN at given URL <br />\n";
<?php
/**
* PHP/cURL function to check a web site status. If HTTP status is between 200 and 400,
* Generally all successes are in this range, the website is reachable.
*
*
* @param string $url URL that must be checked
*/
function urlExists($url) {
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="index.html" />
</files>
</defaultDocument>
<rewrite>
<rules>