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
package main | |
import ( | |
"fmt" | |
"html/template" | |
"io" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"os" |
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 | |
set -e | |
if [ $# -lt 2 ];then | |
echo "Usage: $(basename "$0") your-rds-identifier target-version" | |
exit -1 | |
fi | |
########################################################### | |
# Funcitons | |
########################################################### |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |
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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"os" | |
"strconv" |
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 | |
PROGNAME=`basename $0` | |
REVISION="1.0.0" | |
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" | |
export PATH | |
# Nagios Status Code | |
STATE_OK=0 | |
STATE_WARNING=1 | |
STATE_CRITICAL=2 |
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
class Fluent::Alb_LogInput < Fluent::Input | |
Fluent::Plugin.register_input('alb_log', self) | |
LOGFILE_REGEXP = /^((?<prefix>.+?)\/|)AWSLogs\/(?<account_id>[0-9]{12})\/elasticloadbalancing\/(?<region>.+?)\/(?<logfile_date>[0-9]{4}\/[0-9]{2}\/[0-9]{2})\/[0-9]{12}_elasticloadbalancing_.+?_(?<logfile_alb_name>[^_]+)_(?<alb_timestamp>[0-9]{8}T[0-9]{4}Z)_(?<alb_ip_address>.+?)_(?<logfile_hash>.+)\.log.gz$/ | |
ACCESSLOG_REGEXP = /^(?<type>.+?) (?<time>\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}.\d{6}Z) (?<alb_fullname>[^\/]+\/(?<alb>[^\/]+?)\/.+?) (?<client>[^ ]+)\:(?<client_port>.+?) (-|(?<target>[^ ]+)\:(?<target_port>.+?)) (?<request_processing_time>.+?) (?<target_processing_time>.+?) (?<response_processing_time>.+?) (?<elb_status_code>.+?) (?<target_status_code>.+?) (?<received_bytes>.+?) (?<sent_bytes>.+?) \"(?<request_method>.+?) (?<request_uri>[httpsfile]+:\/{2,3}(?<domain>[0-9a-z\.\-:\[\]]+?):?[0-9]{0,5}?(|\/\S*)?) (?<request_protocol>.+?)\" \"(\"|(?<user_agent>.+?)\") (?<ssl_cipher>.+?) (?<ssl_protocol>.+?) (-|(? |
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 | |
# init script for Cassandra. | |
# chkconfig: 2345 90 10 | |
# description: Cassandra | |
# script slightly modified from | |
# http://blog.milford.io/2010/06/installing-apache-cassandra-on-centos/ | |
. /etc/rc.d/init.d/functions | |
CASS_HOME=/usr/local/cassandra |
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="登録するSAPユーザIDを入力してください")] | |
[String]$newSAPUserID, | |
[parameter(Mandatory=$true,HelpMessage="登録するSAPユーザの初期パスワードを入力してください")] | |
[String]$initialSAPUserPassword, | |
[parameter(Mandatory=$true,HelpMessage="登録するSAPユーザの姓を入力してください")] | |
[String]$lastName, |
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
<?xml version="1.0"?> | |
<LogonInfo> | |
<SAPSID>SID</SAPSID> | |
<SAPHOST>hostname</SAPHOST> | |
<SAPSYSNUM>00</SAPSYSNUM> | |
<SAPCLIENT>000</SAPCLIENT> | |
<SAPUSER>sapuserid</SAPUSER> | |
<SAPPASSWORD>password</SAPPASSWORD> | |
</LogonInfo> |
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
$UncFolder = "\\srv01\folder" | |
$UncSubFolderName = "subfolder" | |
$ITEMS = Get-ChildItem -Path $UncFolder | |
foreach($item in $ITEMS) | |
{ | |
if($item.Name -eq $UncSubFolderName) | |
{ | |
$item.Delete($true) | |
} |
NewerOlder