Skip to content

Instantly share code, notes, and snippets.

@GedowFather
GedowFather / aws_vpn_between_vpcgw_and_debian_with_nat.sh
Created January 24, 2014 03:17
BashScript for connecting VPN between VPC G/W and Debian Linux. Connecting from Client to EC2, using NAT on VPN.
#!/bin/bash
#
# Setup VPN between Debian Linux and VPC G/W.
# How to use : ./this_script.sh Generic.txt
#
# For connecting IPsec VPN, you need to allow these connections.
# If VPN has global address, you change FORWARD to OUTPUT.
#
# ex) iptables -A FORWARD -p udp --dport 500 -j ACCEPT
# iptables -A FORWARD -p tcp --dport 500 -j ACCEPT
@GedowFather
GedowFather / openstack-vm-summary.sh
Created October 7, 2013 02:30
BashScript for getting vm summary of OpenStack.
#!/bin/bash
#
# VMの利用状況を集計するスクリプトです。
#
# - jq コマンド必須です
# http://stedolan.github.io/jq/
# # How to install
# wget -O /usr/bin/jq http://stedolan.github.io/jq/download/linux64/jq
# chmod +x /usr/bin/jq
#
@GedowFather
GedowFather / openstack-retire-users-vm-list.sh
Last active December 24, 2015 06:39
BashScript for getting list of OpenStack deleted user's VM.
#!/bin/bash
#
# Keystoneから削除済みのユーザが所有者となっているVMのリストを表示します。
#
# * jq コマンド必須です
# http://stedolan.github.io/jq/
# # How to install
# wget -O /usr/bin/jq http://stedolan.github.io/jq/download/linux64/jq
# chmod +x /usr/bin/jq
#
@GedowFather
GedowFather / ZabbixClient.py
Last active December 7, 2015 06:52
AWS Lambda python script for running zabbix api.
#
# Zabbix API Client.
#
# Usage:
# from modules.ZabbixClient import ZabbixClient
# ZABBIX_HOST = "zabbix.example.com"
# ZABBIX_PORT = 80
# ZABBIX_USER = 'Admin'
# ZABBIX_PASS = 'zabbix'
# ZABBIX_PATH = '/api_jsonrpc.php'