Skip to content

Instantly share code, notes, and snippets.

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

oguma k-oguma

I like a tako-neko. You know, understand? that is octocat of Japanese.
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 / Compare_csr_and_key_of_TLS
Created Jun 19, 2019
[oneliner][openssl] You can compare TLS CSR and TLS key by using one liner.
View Compare_csr_and_key_of_TLS
domain=<Your domain>; [[ $(openssl rsa -text -noout -in $domain.key | grep -A 3 -w modulus: | tail -1 | grep $(openssl req -text -noout -in $domain.csr | grep -A 3 -w Modulus: | tail -1)) ]] && { echo -e "\033[32m[Success] Compared $domain.{key,csr}, these had each matched the module.\033[00m" } || { echo "\033[31m[Fail] Compared $domain.{key,csr}, these don't have each matched the module.\033[00m" }
k-oguma /
Created Oct 10, 2018
DNS: KSK Rollover pre-checker


Confirm enabled of the DNSSEC validation

dig a +noall +dnssec +comments

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

k-oguma / cloudSettings
Last active Jul 7, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
k-oguma / Cloud9_settings
Last active Dec 2, 2018
Cloud9 settings. init script, user setting, project setting
View Cloud9_settings
# AWS Cloud9 settings
## Prepare
Push the your environment variables.
- Like a [12 factor app](
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
## 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.
k-oguma /
Created Nov 28, 2017 — forked from r10r/
Installs and configures dnsmasq on osx (for local resolution of development machines e.g virtualbox). Cudos to Alan Ivey
# ----------------------
# 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" > /etc/resolver/vbox'
k-oguma / README_create.rb
Created Oct 20, 2017
If there is no README, this makes the template.
View README_create.rb
unless File.exist? README
puts 'Not found README file'
puts "Creating #{README}"
print = <<-EOS.gsub(/^ {,4}/, "## ").gsub(/\n/, "\n\n\n")
Code Example
k-oguma /
Last active Aug 27, 2017
[WebOps] 問題調査方法や構築時の注意点と方針

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



  1. 必要な情報を得られるだけ得る
    • トレーサビリティは高めておく (事前準備も可能な限りしておく)
  2. Web/Appおよびインフラ調査
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 = ""
for ( i in queue) {
arp = arp.replaceAll(/${i}/, '')
You can’t perform that action at this time.