Skip to content

Instantly share code, notes, and snippets.

View seanvree's full-sized avatar
🔎

Sean Vreeland seanvree

🔎
View GitHub Profile
@seanvree
seanvree / gist:da44e2067f155b77e6e035286088e955
Created January 1, 2018 16:40
IIS AAR/URL rewrite for Reverse proxy
NOTES:
1 - Creat an empty directory for each appliction that requires URL re-write/AAR example: inetpub\wwwroot\sonarr
2 - Create a "Virtual Directory" in IIS for EACH application that requires AAR which points to the physical directory that you created above
3 - Set application settings at the applcation level!!! DO NOT set URL rewrite rules at server or website level
4 - you first thave to set the SITE server variables. This is done at the SITE level (See screenshot) and example in first block below.
5 - You need to configure each application individually as they each require unique headers
Server Varables example: https://imgur.com/a/9LaIr
These values are set at site level and the file resides in C:\Windows\System32\inetsrv\Config
Jan 03 14:34:23 MP4Automator info.log: 2018-01-03 14:33:13 - mkvtomp4 - INFO - Starting conversion.
Jan 03 14:41:38 Radarr radarr.trace.txt: 18-1-3 14:41:37.7|Trace|Http|Req: 312 [HEAD] /
Jan 03 14:41:38 Radarr radarr.trace.txt: 18-1-3 14:41:37.7|Trace|Http|Res: 312 [HEAD] /: 200.OK (2 ms)
Jan 03 14:41:41 Radarr radarr.trace.txt: 18-1-3 14:41:40.7|Trace|Scheduler|Pending Tasks: 1
Jan 03 14:41:41 Radarr radarr.trace.txt: 18-1-3 14:41:40.7|Trace|CommandQueueManager|Publishing CheckForFinishedDownload
Jan 03 14:41:41 Radarr radarr.trace.txt: 18-1-3 14:41:40.7|Trace|CommandQueueManager|Checking if command is queued or started: CheckForFinishedDownload
Jan 03 14:41:41 Radarr radarr.trace.txt: 18-1-3 14:41:40.7|Trace|CommandQueueManager|Command is already in progress: CheckForFinishedDownload
Jan 03 14:41:48 Radarr radarr.trace.txt: 18-1-3 14:41:47.7|Trace|Http|Req: 313 [HEAD] /
Jan 03 14:41:48 Radarr radarr.trace.txt: 18-1-3 14:41:47.7|Trace|Http|Res: 313 [HEAD] /: 200.OK (0 ms)
Jan 03 14:41:58 Radarr radarr.trac
@seanvree
seanvree / LazyLibrarianDebug
Created January 7, 2018 04:29
LazyLibrarianDebug
Startup cmd: ['C:\\Python27\\python.exe', 'c:\\lazylibrarian\\lazylibrarian.py']
Interface: bookstrap
Loglevel: 2
git_repo: lazylibrarian
git_user: dobytang
git_branch: master
latest_version: b0f8c37401c1c88fc21c0e657c8a095346e7764c
git_updated: 1513970253
current_version: b0f8c37401c1c88fc21c0e657c8a095346e7764c
commits_behind: 0
@seanvree
seanvree / plexpyv2
Created January 11, 2018 05:03
PlexpyV2
2018-01-09 07:13:31 - INFO :: MainThread : Checking if the database upgrades are required...
2018-01-09 07:13:32 - DEBUG :: MainThread : Altering database. Updating database table notify_log.
2018-01-09 07:13:32 - DEBUG :: MainThread : User 'Local' does not exist. Adding user.
2018-01-09 07:13:32 - INFO :: MainThread : Checking if configuration upgrades are required...
2018-01-09 07:13:32 - INFO :: MainThread : Tautulli Notifiers :: Upgrading to new notification system...
2018-01-09 07:13:32 - INFO :: MainThread : Tautulli Config :: Writing configuration to file
2018-01-09 07:13:32 - INFO :: MainThread : Tautulli Libraries :: Upgrading library notification toggles...
2018-01-09 07:13:32 - INFO :: MainThread : Tautulli Config :: Writing configuration to file
2018-01-09 07:13:32 - DEBUG :: MainThread : Generating UUID...
2018-01-09 07:13:32 - INFO :: MainThread : Tautulli Config :: Writing configuration to file
@seanvree
seanvree / php_sysinfo
Created January 11, 2018 08:37
php_sysinfo
array(59) { [0]=> string(38) "ORACLE_HOME=c:\oracle\instantclient_12" [1]=> string(11) "PROMPT=$P$G" [2]=> string(67) "_FCGI_X_PIPE_=\\.\pipe\IISFCGI-2cfd5bec-847e-4c2d-aee9-a80de9628463" [3]=> string(27) "PHP_FCGI_MAX_REQUESTS=10000" [4]=> string(31) "PHPRC=C:\Program Files\PHP\v7.1" [5]=> string(30) "ALLUSERSPROFILE=C:\ProgramData" [6]=> string(64) "APPDATA=C:\WINDOWS\system32\config\systemprofile\AppData\Roaming" [7]=> string(77) "APP_POOL_CONFIG=C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config" [8]=> string(26) "APP_POOL_ID=DefaultAppPool" [9]=> string(43) "ChocolateyInstall=C:\ProgramData\chocolatey" [10]=> string(48) "CommonProgramFiles=C:\Program Files\Common Files" [11]=> string(59) "CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files" [12]=> string(48) "CommonProgramW6432=C:\Program Files\Common Files" [13]=> string(28) "COMPUTERNAME=VREEPLEXDESKTOP" [14]=> string(35) "ComSpec=C:\WINDOWS\system32\cmd.exe" [15]=> string(65) "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="index.html" />
</files>
</defaultDocument>
<rewrite>
<rules>
<?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) {
<?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
$file = 'example.txt';
echo "$file\n";
echo "<br>";
$fh = fopen($file, 'a');
fwrite($fh, '<h1>File deleted and backed up</h1>');