Skip to content

Instantly share code, notes, and snippets.

!Command: show running-config
!Running configuration last done at: Tue Feb 13 12:50:22 2024
!Time: Tue Jun 4 14:34:45 2024
version 10.3(3) Bios:version 01.08
switchname LABSW01
vdc LABSW01 id 1
limit-resource vlan minimum 16 maximum 4094
limit-resource vrf minimum 2 maximum 4097
limit-resource port-channel minimum 0 maximum 511
This file has been truncated, but you can view the full file.
; HEADER_BLOCK_START
; BambuStudio 01.07.07.89
; model printing time: 5h 11m 42s; total estimated time: 5h 18m 40s
; total layer number: 765
; model label id: 73
; HEADER_BLOCK_END
; CONFIG_BLOCK_START
; accel_to_decel_enable = 0
; accel_to_decel_factor = 50%
@andrewchumchal
andrewchumchal / comptuer.js
Last active August 17, 2020 18:22
Computer ServiceNow Check
if (fsFunction == 'Computer' || fsFunction == 'Server'){
if (computerServerClass == "Linux" && classIpAddress == vcenterServerIp) {
className = 'cmdb_ci_vcenter';
gs.debug("Forscout - This is an vCenter System [ " + className + "], [ " + computerServerClass + "]." );
}else if (computerServerClass == "Linux" || computerServerClass == "CentOS" || computerServerClass == "Ubuntu"){
className = 'cmdb_ci_linux_server';
gs.debug("Forscout - This is an Linux System [ " + className + "], [ " + computerServerClass + "]." );
} else if (computerServerClass == 'Windows' || computerServerClass == 'Windows 7 Professional SP1' || computerServerClass == 'Windows Server 2008 R2' || computerServerClass =='Windows Server 2012' || computerServerClass =='Windows Server 2012 Standard' ){
className = 'cmdb_ci_win_server';
gs.debug("Forscout - This is an Windows System [ " + className + "], [ " + comput
@andrewchumchal
andrewchumchal / cloudSettings
Last active October 29, 2020 17:51
Andrew Chumchal Code Server
{"lastUpload":"2020-10-29T17:51:32.253Z","extensionVersion":"v3.4.3"}
<?php error_reporting(0);
$page = $_SERVER['PHP_SELF']; //For Auto refresh
$sec = "30"; //For Auto refresh
$down = "<h7 class='redtext'> DOWN</h7>";
$dockerIP = "192.168.1.2";
$apps = array("cAdvisor", "Guacamole", "PlexMediaServer", "PlexPy", "PlexRequest", "Tranmission", "FlexGet", "CouchPotato", "SickRage");
$ports = array(8081, 8080, 32400, 8181, 3000, 9091, 3539, 5050, 8083);
$timeoutsec = 10;
$totalapps = count($apps);
function pingPort($host, $port, $timeout){

Keybase proof

I hereby claim:

  • I am andrewchumchal on github.
  • I am andrewchumchal (https://keybase.io/andrewchumchal) on keybase.
  • I have a public key whose fingerprint is B593 7DD5 E280 DEB5 7712 6BC5 1285 160C C58F 4D16

To claim this, I am signing this object:

@andrewchumchal
andrewchumchal / Test MySQL Connection
Created March 29, 2017 05:15
Test MySQL Connection
<?php
/*
MySQL Connection Tester
October 8, 2016
Will Bontrager Software LLC
This software is provided "AS IS," without any warranty of any kind, without
even any implied warranty such as merchantability or fitness for a particular
purpose. Will Bontrager Software LLC grants you a royalty free license to use
this software provided this notice appears on all copies.
*/