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
openssl req -x509 -nodes -newkey rsa:2048 -keyout ~/.ssh/azure.pem -out ~/.ssh/azure.pem | |
openssl x509 -inform pem -in ~/.ssh/azure.pem -outform der -out ~/.ssh/azure.cer |
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
--- | |
driver: | |
name: docker_cli | |
provisioner: | |
name: chef_zero | |
platforms: | |
- name: centos-6.6 | |
- name: fedora-20 |
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
#!/usr/bin/env python | |
import sys | |
import datetime | |
import re | |
from boto.ec2 import cloudwatch | |
end = datetime.datetime.utcnow() | |
start = end - datetime.timedelta(minutes=10) |
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
cd /path/to/host/target && tar cf - ./ | docker exec -i container_id tar x -C /path/to/guest/target |
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
docker run -it --privileged --volume /dev/dsp:/dev/dsp:rw centos/centos6 /bin/bash |
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
--- | |
driver: | |
name: docker | |
driver_config: | |
use_sudo: false | |
socket: <%= ENV['DOCKER_HOST'] %> | |
platforms: | |
- name: centos-6.5 |
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
bundle install --path=hoge | |
bundle exec kitchen test --destroy=always |
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
r = Nginx::Request.new | |
Nginx.echo r.args #=> "id=hoge&name=fuga" |
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
--- | |
driver: | |
name: docker | |
driver_config: | |
use_sudo: false | |
platforms: | |
- name: centos-6.5 |
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
<?php | |
require_once 'limonade/lib/limonade.php'; | |
function configure() { | |
option('base_uri', '/'); | |
option('session', 'isu4_qualifier_session'); | |
$host = getenv('ISU4_DB_HOST') ?: 'localhost'; | |
$port = getenv('ISU4_DB_PORT') ?: 3306; | |
$dbname = getenv('ISU4_DB_NAME') ?: 'isu4_qualifier'; |