Skip to content

Instantly share code, notes, and snippets.

:octocat:
I like a tako-neko. You know, understand? that is octocat of Japanese.

oguma k-oguma

Block or report user

Report or block k-oguma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@k-oguma
k-oguma / KSK-rollover-pre-checker.md
Created Oct 10, 2018
DNS: KSK Rollover pre-checker
View KSK-rollover-pre-checker.md

Base

Confirm enabled of the DNSSEC validation

dig dnssec-failed.org a +noall +dnssec +comments

If following received include: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL

@k-oguma
k-oguma / cloudSettings
Last active May 4, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-05-04T06:58:21.369Z","extensionVersion":"v3.2.9"}
@k-oguma
k-oguma / Cloud9_settings
Last active Dec 2, 2018
Cloud9 settings. init script, user setting, project setting
View Cloud9_settings
# AWS Cloud9 settings
## Prepare
### AWS SSM
Push the your environment variables.
- FYI
- Like a [12 factor app](https://12factor.net/config)
@k-oguma
k-oguma / settings.json
Created Dec 15, 2017
My .vscode/settings.json on work space.
View settings.json
{
// Hyper Term Theme
"editor.fontFamily": "Menlo, 'DejaVu Sans Mono', Consolas, 'Lucida Console', monospace",
"workbench.colorTheme": "Monokai Dimmed",
"editor.cursorStyle": "block",
"editor.minimap.enabled": true,
"editor.renderLineHighlight": "none",
"editor.renderControlCharacters": true,
// Snippet support (e.g, kuberbetes support
"editor.quickSuggestions": {
View AWS STS (AWS Security Token Service)wrapper
# aws-IAM-STS.sh
## Description
This tool is AWS STS (AWS Security Token Service) Wrapper for safety accesss control.
Example, developmnent or test access.
By using this, it becomes possible to test safely,
for example by wrapping the local development environment at the weak IAM authority.
[AWS-Doc/STS/ja-JP](http://docs.aws.amazon.com/ja_jp/IAM/latest/UserGuide/id_credentials_temp.html)
@k-oguma
k-oguma / enable_dnsmasq_on_osx.sh
Created Nov 28, 2017 — forked from r10r/enable_dnsmasq_on_osx.sh
Installs and configures dnsmasq on osx (for local resolution of development machines e.g virtualbox). Cudos to Alan Ivey http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again
View enable_dnsmasq_on_osx.sh
# ----------------------
# installing dnsmasq and enable daemon
# ----------------------
brew install dnsmasq
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
# ----------------------
# adding resolver for vbox domain
# ----------------------
[ -d /etc/resolver ] || sudo mkdir -v /etc/resolver
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/vbox'
@k-oguma
k-oguma / README_create.rb
Created Oct 20, 2017
If there is no README, this makes the template.
View README_create.rb
README = 'README.md'
unless File.exist? README
puts 'Not found README file'
puts "Creating #{README}"
print = <<-EOS.gsub(/^ {,4}/, "## ").gsub(/\n/, "\n\n\n")
Synopsis
Requirements
Notice
Code Example
Installation
@k-oguma
k-oguma / webops_policies.md
Last active Aug 27, 2017
[WebOps] 問題調査方法や構築時の注意点と方針
View webops_policies.md

[WebOps] 問題調査方法や構築時の注意点と方針

お客様から「ウェブページが表示されない」と問い合わせがあった場合

調査の概要

  1. 必要な情報を得られるだけ得る
    • トレーサビリティは高めておく (事前準備も可能な限りしておく)
  2. Web/Appおよびインフラ調査
@k-oguma
k-oguma / ping_lan_and_ext.groovy
Created Apr 27, 2017
[Groovy] Ping to LAN and external
View ping_lan_and_ext.groovy
// arpで拾ってきたIPと外部へ疎通確認を行います
// 調整なしのJenkins master で スクリプトコンソールから実行すると Timeout するかも
def arp = "arp -a".execute().text
ArrayList queue = ['\\? \\(','\\).*']
String ext_target = "example.com"
for ( i in queue) {
arp = arp.replaceAll(/${i}/, '')
}
@k-oguma
k-oguma / dns-bench1.sh
Created Feb 3, 2017
DNS Benchmark (Child forks + Parallel support)
View dns-bench1.sh
#!/bin/sh
set -m
hostname="ns1"
domain="example.local"
target_dns="dns-unbound01"
query_count=3
forks=200
You can’t perform that action at this time.