Trim all values for key "{#LLD}"
Trim all values
Remove all dublicates form json with same values for key "{#SERIAL}"
| import re | |
| import argparse | |
| re_attention = re.compile(r""" | |
| \\\(| | |
| \\\)| | |
| \\\[| | |
| \\]| | |
| \\\\| | |
| \\| |
| #!/bin/sh | |
| /usr/bin/ldapsearch -o ldif-wrap=no "$@" | perl -MMIME::Base64 -Mutf8 -pe 's/^([-a-zA-Z0-9;]+):(:\s+)(\S+)$/$1.$2.&decode_base64($3)/e' |
| #!/usr/bin/env python | |
| # Copyright (c) 2009, David Buxton <[email protected]> | |
| # All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are | |
| # met: | |
| # | |
| # * Redistributions of source code must retain the above copyright | |
| # notice, this list of conditions and the following disclaimer. |
| // Unified across Device and InternetGatewayDevice | |
| let v1 = declare("Device.DeviceInfo.UpTime", {value: Date.now()}); | |
| let v2 = declare("InternetGatewayDevice.DeviceInfo.UpTime", {value: Date.now()}); | |
| let totalSecs = 0 | |
| if (typeof v1.value !== "undefined") { | |
| totalSecs = v1.value[0]; | |
| } else { | |
| totalSecs = v2.value[0]; | |
| } |
| ###Network Policy Server Synchronization Script | |
| #This script copies the configuration from the NPS Master Server and imports it on the secondary server. | |
| #The Account that this script runs under must have Local Administrator rights to the NPS Master. | |
| #This was designed to be run as a scheduled task on the NPS Secondary Servers on an hourly,daily, or as-needed basis. | |
| # Modified from https://deployhappiness.com/two-network-policy-server-tricks-subnets-and-syncing/ | |
| ###Variables | |
| #NPSMaster - Your Primary Network Policy Server you want to copy the config from. | |
| $NPSMaster = "adds0.corp.contoso.com" | |
| $NPSSecondary = "adds1.corp.contoso.com" |
| #!/bin/sh | |
| # When the ppp link comes up, this script is called with the following | |
| # parameters | |
| # $1 the interface name used by pppd (e.g. ppp3) | |
| # $2 the tty device name | |
| # $3 the tty device speed | |
| # $4 the local IP address for the interface | |
| # $5 the remote IP address | |
| # $6 the parameter specified by the 'ipparam' option to pppd |
| #!/bin/sh | |
| # | |
| # Usage: backup.sh -d <database name> [-d <database name>] [-l <login path>] [-f <backup file name>] | |
| TEMP=`mktemp -d` | |
| db_login="backup" | |
| db_list="" | |
| fn="backup" | |
| dt=`date '+%Y%m%d'` |
| ################# | |
| ## Eclipse | |
| ################# | |
| *.pydevproject | |
| .project | |
| .metadata | |
| bin/ | |
| tmp/ | |
| *.tmp |
| __pycache__ | |
| *.cfg | |
| .idea |