Skip to content

Instantly share code, notes, and snippets.

View yuuichi-fujioka's full-sized avatar

yuuichi fujioka yuuichi-fujioka

View GitHub Profile
@yuuichi-fujioka
yuuichi-fujioka / local.conf
Created December 25, 2015 05:33
barbican + LBaaS V2 with HAProxy & VPNaaS
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root DevStack directory for it to work properly.
# ``local.conf`` is a user-maintained settings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
@yuuichi-fujioka
yuuichi-fujioka / jenkins-slave.conf
Created December 8, 2015 00:19
upstart script for jenkins slave
respawn
respawn limit 15 5
start on runlevel [2345]
stop on runlevel [06]
script
exec start-stop-daemon --start --exec /usr/bin/java -- -jar /var/lib/jenkins/slave.jar -jnlpUrl http://10.241.3.153:8080/computer/yrp01/slave-agent.jnlp
end script
sudo apt-get install $(apt-cache depends <PACKAGE> | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ')
description "Redis container"
author "Me"
start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
/usr/bin/docker start -a redis_server
end script
@yuuichi-fujioka
yuuichi-fujioka / pip_install_user.sh
Created September 29, 2015 06:38
pip install for user environment.(non system wide) In this case, you are happy if set ~/.local/bin to PATH env.
pip install --user some-package-name
@yuuichi-fujioka
yuuichi-fujioka / apt-get install on dockerfile.txt
Created September 10, 2015 23:55
way to apt-get install on Dockerfile
RUN apt-get update && apt-get install -y ca-certificates curl --no-install-recommends && rm -rf /var/lib/apt/lists/*
@yuuichi-fujioka
yuuichi-fujioka / docker
Created September 10, 2015 06:15
set insecure docker registory /etc/default/docker on ubuntu
DOCKER_OPTS="--insecure-registry myregistry:5000"
@yuuichi-fujioka
yuuichi-fujioka / dump_flows.sh
Created August 31, 2015 02:01
ovs-ofctl dump-flows without statistics values.
sudo ovs-ofctl dump-flows br-tun | sed "s/.*table/table/g" | sed "s/,.*age=[0-9]\+//g"
@yuuichi-fujioka
yuuichi-fujioka / create_vpn_server.sh
Created August 17, 2015 02:51
Create VPN Server with NAT
HubCreate MY_HOME
Hub MY_HOME
SecureNatEnable
SecureNatHostSet /MAC:none /IP:192.168.254.1 /MASK:255.255.255.0
NatEnable
@yuuichi-fujioka
yuuichi-fujioka / test.scala
Created August 15, 2015 01:46
some examples
class Foo(message: String) {
def print_msg() = {
println(message)
}
}
object Foo {
def apply(message: String) = {
println("Foo.apply: " + message)
new Foo(message)