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
# Instructions: | |
# 1. Go to https://[yourdomain].slack.com/services/new | |
# 2. Configure a new Incoming WebHook and paste the URL below on Line 14 | |
# 3. Copy this file into $SPLUNK_HOME$/bin/scripts | |
# 4. Configure your saved search to run slack_alert.py | |
from time import gmtime, strftime | |
import httplib, json | |
import getopt, sys, os | |
import subprocess |
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
rem Autorun script needed to run on every boot with admin perms! | |
rem Important: you need to use hideVBoxVM.py <name> on your VM as well, this cmd alone is not enough | |
@echo off | |
set TARGET="HPE" | |
@reg copy HKLM\HARDWARE\ACPI\DSDT\VBOX__ HKLM\HARDWARE\ACPI\DSDT\%TARGET%__ /s /f | |
@reg delete HKLM\HARDWARE\ACPI\DSDT\VBOX__ /f |
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
# Save as <folder with your playbook>/callback_plugins/<some name>.py | |
# Optionally use no_log: True on your playbook/roles/tasks to suppress other output | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import os | |
import time | |
import json | |
import sys |
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
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks | |
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }" |