This file contains 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
// ServiceNow Escalate Incident Slack Notification | |
// Business Rule | |
// SlackIncidentEscalateNotify.js | |
// Rich Bocchinfuso - 2017/05/10 | |
// debug only | |
//var inc ='####'; // add incident sys_id you wnat to use for debugging | |
//var current = new GlideRecord('incident'); | |
//if (current.get(inc)) { |
This file contains 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
// ServiceNow Slack Message | |
// Script Include | |
// SlackMessage.js | |
// Rich Bocchinfuso - 2017/05/10 | |
var SlackMessage = Class.create(); | |
var iconurl = 'http://www.gb-advisors.com/wp-content/uploads/2016/06/servicenow-sm-icon.png'; | |
var emoji = ':warning:'; | |
var channel = '#test'; |
This file contains 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
// ServiceNow New Incident Slack Notification | |
// Business Rule | |
// SlackIncidentNewNotify.js | |
// Rich Bocchinfuso - 2017/05/10 | |
// debug only | |
// var inc ='####'; // add incident sys_id you wnat to use for debugging | |
// var current = new GlideRecord('incident'); | |
// if (current.get(inc)) { |
This file contains 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
// ServiceNow Assigned Incident Slack Notification | |
// Business Rule | |
// SlackIncidentAssignNotify.js | |
// Rich Bocchinfuso - 2017/05/10 | |
// debug only | |
//var inc ='####'; // add incident sys_id you wnat to use for debugging | |
//var current = new GlideRecord('incident'); | |
//if (current.get(inc)) { |
This file contains 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 | |
/* | |
ssUpdate | |
MIT License |
This file contains 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
Create source and target zfs pools for testing | |
sourcepool is a raidz1 stripe comprised of 4x1GB volumes and targetpool is a single 5GB device | |
[ root@unknown:/ ] $ zpool create sourcepool raidz1 c1t0d0 c1t1d0 c1t2d0 c1t3d0 | |
[ root@unknown:/ ] $ zpool create targetpool c1t4d0 | |
Check pools after creation | |
[ root@unknown:/ ] $ zpool status -v sourcepool | |
pool: sourcepool |
This file contains 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
#requires -version 2 | |
<# | |
.SYNOPSIS | |
PRTG VNX Check Script | |
.DESCRIPTION | |
This is a custom EXEXML script which is invoked by PRTG | |
.PARAMETER <Parameter_Name> | |
-h [SP_IP] -u [username] -p [password] | |
.INPUTS | |
None |
This file contains 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
#!/bin/sh | |
USER="hubot" | |
USER_HOME="/home/$USER" | |
HUBOT_ROOT="$USER_HOME/hubot" | |
HUBOT_HOME="$HUBOT_ROOT/node_modules/hubot" | |
DAEMON="$HUBOT_HOME/bin/hubot" | |
PIDFILE=$HUBOT_ROOT/hubot.pid | |
case "$1" in |
This file contains 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
#!/bin/bash | |
# Add to crontab | |
# */5 * * * * ~/hubotAlive.sh hubot | |
hubotName=$1 | |
hubotPID=$(ps -aux | grep -w node | grep -w ${hubotName} | grep -v grep | awk '{print $2}') | |
echo "hubot PID: ${hubotPID}" |
This file contains 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
#mergenar.ps1 | |
$TempFile = "c:\temp\nar_out\Temp.nar" | |
$OutputFile = "c:\temp\nar_out\NAR_Merge.nar" | |
$NarFiles = Get-Childitem "c:\temp\nar_in" | |
$count =0 | |
$count = $NarFiles | Measure-Object | select -ExpandProperty count | |
$filecount = 0 |