This file contains hidden or 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
| /* | |
| * Based on status_gateways.php | |
| * Place in /etc/phpshellsessions | |
| * | |
| * part of pfSense (https://www.pfsense.org) | |
| * Copyright (c) 2004-2013 BSD Perimeter | |
| * Copyright (c) 2013-2016 Electric Sheep Fencing | |
| * Copyright (c) 2014-2023 Rubicon Communications, LLC (Netgate) | |
| * Copyright (c) 2010 Seth Mos <seth.mos@dds.nl> | |
| * Modified 2024 Toby Creek for use with pfSsh.php and CheckMK |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Migration Layer</title> | |
| <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/> | |
| <style> | |
| html,body{ | |
| margin: 0; |
This file contains hidden or 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
| #!/usr/bin/php | |
| <?php | |
| /* | |
| * Crashplan local plugin written for Check MK | |
| * By Toby Creek | |
| * | |
| * Installation: | |
| * 1. Copy to /usr/lib/check_mk_agent/plugins/crashplan | |
| * 2. chmod +x |
This file contains hidden or 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
| import mysql.connector | |
| import json | |
| import pycurl | |
| try: | |
| from StringIO import StringIO | |
| except: | |
| from io import StringIO | |
| class Smashing: |
This file contains hidden or 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
| #!/usr/bin/php | |
| <?php | |
| // Don't forget to make me executable using chmod +x. | |
| # BEGIN LAB HOURS | |
| require_once 'smashing_functions.php'; | |
| $json=@array(); | |
| $json['items'][0]['label']="Monday"; |
This file contains hidden or 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
| class Dashing.GoogleGeo extends Dashing.Widget | |
| @accessor 'current', -> | |
| return @get('displayedValue') if @get('displayedValue') | |
| points = @get('points') | |
| if points | |
| points[points.length - 1].y | |
| ready: -> |