Skip to content

Instantly share code, notes, and snippets.

View meilon's full-sized avatar

Christian Arnold meilon

  • 02:34 (UTC +02:00)
View GitHub Profile
#!/bin/bash
# This is a script to send a notification from OTRS to Mattermost.
# Create a new Generic Agent and select "TicketCreate" under event based events.
# Finally, put in the path to the script into the command box.
# Of course you could use it for different notifications, but OTRS is only giving the ticket number and id to the script.
header="Content-Type: application/json"
ticketid=$2
request_body=$(< <(cat <<EOF
@meilon
meilon / ParsePwnedPasswordFile.ps1
Created August 16, 2017 12:29 — forked from Tras2/ParsePwnedPasswordFile.ps1
A PowerShell script which goes through the a Pwned Password list (available from https://haveibeenpwned.com/Passwords) and produces multiple smaller 'partition' files which contain the SHA-1 passwords specific to that partition
# A PowerShell script which goes through the a Pwned Password list (available from https://haveibeenpwned.com/Passwords)
# and produces multiple smaller 'partition' files which contain the SHA-1 passwords specific to that partition
#
# First released by Stuart Clarkson via https://gist.github.com/Tras2/66f80f2af1f1e125b1e4cc9ad3c12e3c
# Updated for increased speed by Christian Arnold via https://gist.github.com/meilon/d034ccf366d28343bf47ef59891acbaa
Param (
# The filename of the Pwned password source file
[Parameter(Mandatory=$true)]
[ValidateScript({Test-Path -Path $_})]
$InputFilename,
// ==UserScript==
// @name Microsoft Support in en-us
// @version 0.6
// @description forces loading the english version of Microsoft KB Articles
// @updateURL https://gist.github.com/meilon/fe0742a5ca64d49cc880/raw/MicrosoftKBinEnglish.user.js
// @downloadURL https://gist.github.com/meilon/fe0742a5ca64d49cc880/raw/MicrosoftKBinEnglish.user.js
// @match http*://support.microsoft.com/*/kb/*
// @match http*://support.microsoft.com/*/help/*
// @match http*://support.microsoft.com/*/topic/*
// @match http*://technet.microsoft.com/*/library/*