zsh -c "$(curl -fsSL https://raw.githubusercontent.com/nrjdalal/silicon-virtualizer/master/install-qemu.sh)"
xcode-select --install
FROM centos:7 | |
RUN yum install -y -q git gcc make bzip2 openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel | |
RUN git clone -q https://github.com/rbenv/rbenv.git /usr/local/rbenv | |
RUN git clone -q https://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build | |
ENV RBENV_ROOT "/usr/local/rbenv" | |
ENV RUBY_VERSION 2.4.1 | |
RUN /usr/local/rbenv/bin/rbenv install $RUBY_VERSION | |
RUN /usr/local/rbenv/bin/rbenv global $RUBY_VERSION | |
RUN /usr/local/rbenv/shims/gem i bundler --no-document |
## db/_dev.yml.liquid | |
type: mysql | |
host: 127.0.0.1 | |
user: user | |
password: password | |
database: embulk_test | |
## query/_query.yml.liquid | |
query: | | |
select * from {{ target_table }} |
# ==== Emojis ==== | |
# 🐛 :bug: バグ修正 | |
# 👍 :+1: 機能改善 | |
# ✨ :sparkles: 部分的な機能追加 | |
# 🎉 :tada: 盛大に祝うべき大きな機能追加 | |
# ♻️ :recycle: リファクタリング | |
# 🚿 :shower: 不要な機能・使われなくなった機能の削除 | |
# 💚 :green_heart: テストやCIの修正・改善 |
#!/bin/env python | |
#-*- coding: utf-8 -*- | |
""" 此脚本作为参考: | |
根据私钥增加 DNS 正向和反向记录. | |
""" | |
import os |
class dstat_plugin(dstat): | |
def __init__(self): | |
self.nick = ('latency',) | |
self.type = 'd' | |
self.width = 4 | |
self.scale = 34 | |
self.diskfilter = re.compile('^(dm-[0-9]+|md[0-9]+|[hs]d[a-z]+[0-9]+)$') | |
self.open('/proc/diskstats') | |
self.cols = 1 |
Puppet ForgeにあるPuppet modulesを管理するためのツール.
gemからインストールし,init
でPuppetfileのひな形を生成する
--- | |
sockets: | |
- id: 'one' | |
address: '127.0.0.1' | |
port: '8001' | |
- id: 'two' | |
address: '127.0.0.2' | |
port: '8002' |
define bash_exec ( | |
$command = $name, | |
$user, | |
$creates = undef, | |
$cwd = undef, | |
$environment = undef, | |
$group = undef, | |
$logoutput = undef, | |
$onlyif = undef, | |
$path = undef, |