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
<?php | |
// 入力 | |
$input = [1, 5, 6, 3, 2, 6]; | |
//$input = [1, 2, 3, 4]; | |
// PHP 配列 初期化 連番でGoogle | |
$seikai = range(1, count($input)); | |
// ①存在するはずだけど存在しない数値を取得 |
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
const aws = require("aws-sdk"); | |
const s3 = new aws.S3(); | |
var sns = new aws.SNS({region: 'ap-northeast-1'}); | |
var zlib = require('zlib'); | |
exports.handler = (event, context, callback) => { | |
const params = { | |
Bucket: "aws-waf-logs-corporate-s3", | |
Key: event.Records[0].s3.object.key | |
}; |
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
InternalSecurityGroup: | |
Type: AWS::EC2::SecurityGroup | |
Properties: | |
VpcId: !Ref FirstVPC | |
GroupName: !Sub "internal-sg" | |
GroupDescription: "Internal SG" | |
InternalSecurityGroupIngress: | |
Type: AWS::EC2::SecurityGroupIngress | |
Properties: |
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 exception 例外オブジェクト | |
* @return 例外トレース文字列 | |
*/ | |
protected String getTraceString(Exception exception) { | |
StringWriter stringWriter = new StringWriter(); | |
PrintWriter printWriter = new PrintWriter(stringWriter); | |
exception.printStackTrace(printWriter); | |
printWriter.flush(); |
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
### Keybase proof | |
I hereby claim: | |
* I am e2kaneko on github. | |
* I am e2kaneko (https://keybase.io/e2kaneko) on keybase. | |
* I have a public key whose fingerprint is D4AD 7848 BA34 4C0C DBD4 76BD 8EDE 961C 5F70 2D42 | |
To claim this, I am signing this object: |
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
<?php | |
phpinfo(); |
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
<meta name="robots" content="noindex,nofollow,notranslate,noodp,noarchive"> |
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
# command \G | |
# 例 | |
mysql > show slave status \G; | |
************************** 1. row *************************** | |
Slave_IO_State: | |
Master_Host: 192.168.1.1 | |
Master_User: repladmin | |
Master_Port: 3306 | |
Connect_Retry: 60 |
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
# @【NS】を付与 | |
dig yahoo.co.jp any @ns01.yahoo.co.jp |
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
dig yahoo.co.jp any +trace |
NewerOlder