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
# Fail2Ban jail configuration file for PlexPy behind NGINX Reverse Proxy. | |
# nginx-plexpy.conf | |
# | |
# The X-Forwarded-For IP (or any IP for that matter) isn't logged in the PlexPy | |
# log, and so any failed attempts cannot be blocked using Fail2Ban. | |
# | |
# Workaround is to look at all attempts and then set the maxretry number to 5. | |
# This doesn't protect against distributed attempts. | |
# | |
# Author: Brian Schmidt Pedersen |
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
# Fail2Ban jail configuration file for Domoticz behind NGINX Reverse Proxy. | |
# nginx-domoticz.conf | |
# | |
# The X-Forwarded-For IP isn't logged in the Domoticz log, and so any failed | |
# attempts will show the NGINX reverse proxy IP rather than the actual IP. | |
# | |
# Workaround is to look at all attempts and then set the maxretry number to 5. | |
# This doesn't protect against distributed attempts. | |
# | |
# Author: Brian Schmidt Pedersen |
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
-- | |
-- Tellstick Switch Handler | |
-- Created by: Brian Schmidt Pedersen (@briped) | |
-- | |
-- The device names from the Tellstick MUST be the same as the device names | |
-- defined in domoticz, or this script will not work. | |
-- | |
-- The script is hacked together from several sources, without any knowledge of | |
-- Lua, so just about everything can probably be done better than my attempt. | |
-- This also means that no support is given beyond the comments found in this |
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 | |
clear | |
if [ $# -lt 2 ]; then | |
echo "usage: $0 -i inputIpaFile -p provisioning [-c replacementIconFile] [-n 'name to display'] [-b bundleId] [-o outputIpa]" >&2 | |
exit 1 | |
fi | |
function abspath() { | |
python -c "import os; print os.path.abspath(\"$1\")" | |
} |
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
Param( | |
[parameter(Mandatory=$true, | |
HelpMessage="Enter one or more AD groups to merge/copy from.")] | |
[string[]] | |
$SourceGroups, | |
[parameter(Mandatory=$true, | |
HelpMessage="Enter AD group to merge/copy to.")] | |
[string] | |
$TargetGroup, | |
[parameter(Mandatory=$false, |
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
Param( | |
[parameter(Mandatory=$true, | |
HelpMessage="Enter AD group to move from.")] | |
[string] | |
$SourceGroup, | |
[parameter(Mandatory=$true, | |
HelpMessage="Enter AD group to move to.")] | |
[string] | |
$TargetGroup | |
) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Param( | |
$Username = "user", | |
$Password = "pass", | |
$Domainname = "domain", | |
$Hostname = "host" | |
) | |
$UpdateURL = "https://ssl.gratisdns.dk/ddns.phtml?u=$Username&p=$Password&d=$Domainname&h=$Hostname" | |
$ScriptPath = $script:MyInvocation.MyCommand.Path | |
$IPCacheFile = $ScriptPath.Substring(0,$ScriptPath.LastIndexOf(".")) + "-CachedIP.txt" |
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
deployment.system.config=file\:C\:/Windows/Sun/Java/Deployment/deployment.properties | |
deployment.system.config.mandatory=true |
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
Function Create-Password { | |
<# | |
.SYNOPSIS | |
Create-Password creates a random password | |
.DESCRIPTION | |
This function is used to create random passwords. You can specify what | |
character types (lowercase letters, uppercase letters, numbers and symbols) | |
as well as the minimum amount of those character types. |
NewerOlder