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
#!/bin/bash | |
sudo ethtool -S ${interface_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
#cloud-config | |
password: mysecret | |
chpasswd: { expire: False } | |
ssh_pwauth: True |
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
# list | |
rabbitmq-plugin list | |
# to enable | |
rabbitmq-plugin enable ${plugin_name} | |
# to disable | |
rabbitmq-plugin disable ${plugin_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
FROM ubuntu:latest | |
MAINTAINER [email protected] | |
RUN apt-get update -q && apt-get upgrade -y | |
RUN apt-get install -y squid | |
EXPOSE 3128 | |
CMD /usr/sbin/squid3 -N |
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
public class MyKey : IEquatable<Item> | |
{ | |
public int no; | |
public bool Equals(Item other) | |
{ | |
return no == other.no; | |
} | |
public override int GetHashCode() |
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
{ | |
"heat_template_version": "2013-05-23", | |
"parameters": {}, | |
"resources": { | |
"server1":{ | |
"type": "OS::Nova::Server", | |
"properties": { | |
"name": "Server1", | |
"image": "cirros-0.3.2-x86_64-uec", | |
"flavor": "m1.tiny", |
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
cp ${backing_image} ${new_backing_image} | |
qemu-img rebase -b ${new_backing_image} ${img} | |
qemu-img commit ${img} |
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
alias gen-skeleton='git clone https://github.com/yuuichi-fujioka/setuptools_skeleton.git' |
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
qemu-img convert -f qcow2 -O qcow2 -o compat=0.10 ${src_img} ${dst_img} |
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
class NPMiddleware: | |
def __init__(self, app): | |
self.app = app | |
def __call__(self, env, start_resp): | |
return self.app(env, start_resp) |