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
# Copyright (C) 2011 by Wayne Walker <[email protected]> | |
# | |
# Released under one of the versions of the MIT License. | |
# | |
# See LICENSE for details | |
_LIVE_AGENT_LIST="" | |
_SSH_ENV="$HOME/.ssh/environment" | |
_debug_print() { |
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 | |
# Configure the instance to run as a Port Address Translator (PAT) to provide | |
# Internet connectivity to private instances. | |
function log { logger -t "vpc" -- $1; } | |
function die { | |
[ -n "$1" ] && log "$1" | |
log "Configuration of PAT failed!" | |
exit 1 |
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
Creation of Kaspay escrow production env on AWS will be automated as much as possible using Ansible. | |
The execution will be separate into multiple phase. | |
Each phase should be executed with the specified order as follow | |
1. VPC and all required subnets creation | |
2. All required Security groups creation | |
3. RDS subnet group creation | |
4. ElastiCache subnet group creation | |
5. NAT instance creation and setting internet gateway for private subnet to this NAT instance. | |
6. Gateway instance creation | |
7. Docker registry and its S3 instance creation |
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 | |
# | |
# Tool to get and set certificates and passwords for the Jenkins JNLP Slave | |
# | |
# This tool takes the commands: | |
# set-password --account=ACCOUNT --service=SERVICE --password=PASSWORD | |
# get-password --account=ACCOUNT --service=SERVICE | |
# add-java-certificate --alias=ALIAS --certificate=/path/to/certificate | |
OSX_KEYCHAIN="login.keychain" |
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
RUN echo "deb http://packages.dotdeb.org wheezy-php56 all" > /etc/apt/sources.list.d/dotdeb.list && \ | |
curl http://www.dotdeb.org/dotdeb.gpg | apt-key add - |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="html" indent="yes" /> | |
<xsl:template match="/"> | |
<html> | |
<body> | |
<h1>Statistics</h1> | |
<p>Total codebase size: <xsl:value-of select="//CodebaseCost"/></p> | |
<p>Code to analyze: <xsl:value-of select="//TotalDuplicatesCost"/></p> | |
<p>Total size of duplicated fragments: <xsl:value-of select="//CodebaseCost" /></p> |
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
curl -sSL https://get.docker.com/ubuntu/ | sudo sh | |
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` | sudo tee /usr/local/bin/fig >/dev/null 2>&1 && sudo chmod +x /usr/local/bin/fig |
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/sh | |
cd /opt/test | |
start_fig(){ | |
fig start | |
} | |
stop_fig(){ | |
fig stop |
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
Angga 24273 | |
Roy 24410 |
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
# ELK Demo | |
Demo ELK stack dengan skenario sebagai berikut: | |
<!-- language: lang-none --> | |
----------------------------------------- | |
----------- ---------- | |
| gitlist | | kibana | | |
----------- ---------- | |
| ^ | |
v | |