- DoS脆弱性おおすぎ
- でもremote code executionはない
- 9.0.0リリースはもう16年前
- ACLが意味をなさない(ACLを解釈する前段階で死ぬ
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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
# usage: $0 [some options for `aws ec2`] | |
require 'json' | |
line_format = "%-19s %-23s %-11s %-15s %-15s %-12s %-16s %s" | |
line_length = 142 | |
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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'json' | |
opt = { | |
:aws => { | |
:profile => "<awscliのプロファイル名>", | |
:hosted_zone_id => "/hostedzone/<ゾーンID> | |
} |
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
$ brew cleanup --force <fomula名> |
JDK7u80インストール
Android sdkインストール
Android Studio実行
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# https://docs.vagrantup.com. | |
config.vm.box = "ubuntu/trusty64" | |
# VM hostname and port forwardings | |
config.vm.hostname = "eval-kibana" |
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
#!/usr/bin/env ruby | |
#encoding: utf-8 | |
class Array | |
def ipsort | |
self.ipsort2 | |
end | |
def ipsort1 | |
# IPアドレスを含む行と含まない行にわけ、前者をソート |
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
$ zcat production_.$(date +%Y%m%d)_*.log.gz | \ | |
awk -F"\t" '{print "{\"time\":\"" $1 "\",\"" $2 "\":" $3 "}" }' | sed -e 's/\\n/","/g' | jq "." |
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 | |
# usage: $0 <zone> <server> | |
zone=$1 | |
server=$2 | |
if [ "$zone" = "--all" ];then | |
echo "** DUMP MODE **" >&2 | |
for z in $(awk -F\" '/^zone/{print $2}' /etc/bind/named.conf.local) |
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 | |
# usage: $0 <outdir> | |
Mysql_cmd='/usr/bin/mysql -Ns' # user/passは~/.my.cnfに | |
Mysql_db='redmine' | |
outdir=$1 | |
mkdir -p $outdir | |
# プロジェクトIDとWiki IDを取得 |
NewerOlder