Skip to content

Instantly share code, notes, and snippets.


adachi.ryo RVIRUS0817

View GitHub Profile
View digdag.txt
- digdag v0.10.2
- embulk v0.9.23
- dig file
sh_result>: mysql -uhoge -P$hogehoge"show tables;" | csvjson -d $'\t'
destination_variable: hogehoge
stdout_format: json-list-map
RVIRUS0817 / chatwork.go
Last active Apr 26, 2018
Vuls Chatwork support
View chatwork.go
// ChatWorkWriter定義。Writeメソッドを定義して、vuls report -to-chatworkを実行時に標準出力に加えてchatworkにもoutputするプログラム
package report
import (
RVIRUS0817 / vulsrepo
Last active Jan 12, 2018
View vulsrepo
#chkconfig: 2345 85 15
#descpriction: VulsRepo
#OS Amazon Linux/CentOS6
# source function library
. /etc/rc.d/init.d/functions
# coding: utf-8
# RDS delete
import boto3
# nodelete,trueを変数化
ND = 'nodelete'
TR = 'true'
def lambda_handler(event, context):
#if __name__ == '__main__':
# Copyright (c) 2013 The CoreOS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e -o pipefail
error_output() {
echo "Error: return code $? from $BASH_COMMAND" >&2
# make directory
mkdir -p /opt/bin
cd /opt/bin
tar -xzvf ActivePython-${VERSIONS}-linux-x86_64.tar.gz
View keepalived.conf
virtual_server_group DOCKER_HTTP { 80 80
virtual_server group DOCKER_HTTP {
delay_loop 3
lvs_sched wrr
lvs_method NAT →Masp
View vrrp.conf
vrrp_sync_group VG {
group {
notify_master /etc/keepalived/
notify_backup /etc/keepalived/
notify_fault /etc/keepalived/
notify /etc/keepalived/
View kvm-cent7.txt
### 1. make Disk Imange
qemu-img create -f qcow2 /var/lib/libvirt/images/cent7.qcow2 20G
### 2. install and boot guest server
virt-install \
--connect qemu:///system \
--name cent7 \
--vcpus=2 \
--ram=2048 \
--hvm \
View kvm-cent7.cfg
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
url --url=""
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts