This file contains hidden or 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
CREATE DATABASE ${database}; | |
GRANT ALL PRIVILEGES ON ${database}.* TO '${user}'@'localhost' \ | |
IDENTIFIED BY '${password}'; | |
GRANT ALL PRIVILEGES ON ${database}.* TO '${user}'@'%' \ | |
IDENTIFIED BY '${password}'; |
This file contains hidden or 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
tcpick -i eth0 "port 80" -yP -C -h |
This file contains hidden or 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
grep "[^$ {]\+BRANCH" ./lib/ -R -ho | sort | uniq |
This file contains hidden or 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
ovsdb-client -f json monitor Port name |
This file contains hidden or 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
description "Redis container" | |
author "Me" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker start -a ${container name} | |
end script |
This file contains hidden or 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
ovs-vsctl get Interface ${port_name} ofport |
This file contains hidden or 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 --rm -v /usr/local/bin:/target jpetazzo/nsenter |
This file contains hidden or 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
FROM ubuntu:trusty | |
MAINTAINER [email protected] | |
RUN apt-get install openssh-server -y | |
RUN useradd -d /home/ubuntu -m -s /bin/bash -U ubuntu | |
RUN adduser ubuntu sudo | |
RUN echo "ubuntu ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/ubuntu | |
RUN mkdir /home/ubuntu/.ssh | |
ADD id_rsa.pub /home/ubuntu/.ssh/authorized_keys |
This file contains hidden or 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
# /var/lib/tftpboot/pxelinux.cfg/default | |
default syslinux/vesamenu.c32 | |
menu hshift 13 | |
menu width 49 | |
menu margin 8 | |
menu title Installer boot menu | |
# example, for CoreOS |
This file contains hidden or 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
ovs-ofctl --protocols=OpenFlow13 show br0 |