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
sudo apt-get install ssl-cert | |
sudo make-ssl-cert generate-default-snakeoil | |
sudo usermod --append --groups ssl-cert yyuu | |
ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
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 bash | |
set -e | |
AWSCLI_OPTIONS="" | |
tmpdir="$(mktemp -d "${TMP:-/tmp}/${BASH_SOURCE##*/}.XXXXXXXX")" | |
on_exit() { | |
rm -fr "${tmpdir}" |
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 | |
from __future__ import with_statement | |
import contextlib | |
import os | |
import sys | |
print "Filesystem\tMounted on\tUse%\tIUse%" | |
with contextlib.closing(open('/etc/mtab')) as fp: | |
for m in fp: |
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 ruby | |
require 'fileutils' | |
require 'json' | |
require 'strscan' | |
require 'zlib' | |
def parse(file) | |
case file | |
when /\.bz2$/ |
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 ruby | |
# | |
# a capistrano strategy to deploy sub-directory in the repository. | |
# this is a stuff like "remote_cache_subdir" strategy described in following page, | |
# but based on "copy" strategy of capistrano deploy recipe. | |
# | |
# http://stackoverflow.com/questions/29168/deploying-a-git-subdirectory-in-capistrano | |
# | |
require 'capistrano' |
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 ruby | |
require "fileutils" | |
require "shellwords" | |
require "yaml" | |
CIRCLE1_DEFAULT_CACHE_DIRECTORIES = [ | |
"vendor/bundle", | |
"~/.m2", | |
"~/.bundle", |
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
downloadService.post('hudson.tools.JDKInstaller',{ | |
"data": [ | |
{ | |
"name": "JDK 8", | |
"releases": [ { | |
"files": [ | |
{ | |
"filepath": "http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-i586.tar.gz", | |
"name": "jdk-8u5-linux-i586.tar.gz", | |
"title": "Linux x86" |
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 | |
from __future__ import with_statement | |
import contextlib | |
import logging | |
import MySQLdb | |
import optparse | |
import os | |
import sys |
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 | |
# | |
# find snapshots which is not referenced from any AMIs | |
# | |
import boto.ec2 | |
import boto.ec2.image | |
import boto.exception | |
import os | |
import re |
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 = openssl | |
DAYS = -days 3652 | |
CADAYS = -days 3652 | |
REQ = $(OPENSSL) req | |
CA = $(OPENSSL) ca | |
VERIFY = $(OPENSSL) verify | |
X509 = $(OPENSSL) x509 | |
# must be absolute path | |
CATOP = $(PWD)/ca |
NewerOlder