# ./vdbench -f examples/filesys/random_rw
Vdbench distribution: vdbench50402
For documentation, see 'vdbench.pdf'.
17:05:39.642 input argument scanned: '-fexamples/filesys/random_rw'
17:05:39.694 anchor=/dir1: there will be 1 directories and a maximum of 1000 files under this anchor.
17:05:39.694 Estimated maximum size for this anchor: 125m
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
Dir.glob("roles/*.rb").each do |rf| | |
role = Chef::Role.new | |
role.name(File.basename(rf, ".rb")) | |
role.from_file(rf) | |
File.open(rf.gsub(".rb", ".json"),"w") {|f| f.puts(role.to_json)} | |
end | |
local_mode true | |
chef_repo_path File.expand_path("../", __FILE__) |
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
## For SmartOS14.3.0 | |
knife[:bootstrap_install_command] =<<"EOL" | |
if ! exists /opt/local/bin/chef-client; then | |
pkgin -y install gcc47 git gmake ruby214-base ruby214-yajl ruby214-nokogiri ruby214-readline pkg-config | |
pkgin -y install libxslt | |
## install chef | |
gem update --system --no-ri --no-rdoc | |
gem uninstall nokogiri --version 1.6.1 # missing native extention | |
gem install --no-ri --no-rdoc nokogiri |
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 | |
# coding: utf-8 | |
require 'i18n' | |
require 'yaml' | |
I18n.enforce_available_locales = true ## 対応ずみ言語かを実行時にチェックして止める | |
I18n.backend = I18n::Backend::Simple.new | |
## Yamlのパスをアレイで渡すとロードする | |
I18n.backend.load_translations(Dir.glob('locales/*.yml')) |
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
.envrc | |
layout go | |
export DNSIMPLE_TOKEN='*********************' | |
export DNSIMPLE_USER='*********************@higanworks.com' | |
export DNS_TARGET_DOMAIN='example.net' | |
export DNS_TARGET_RR='wwwww' | |
export DNS_TARGET_HOSTS='210.152.xxx.xx1,210.152.xxx.xx2' | |
export DNS_BACKUP_HOSTS='210.152.xxx.xx3' |
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 yum install -y php-pecl-redis php-pecl-igbinary redis | |
sudo service redis start | |
sudo chkconfig redis on | |
cd /var/www/vhosts/`ec2-metadata -i | awk '{print $2}'` | |
sudo -u nginx /usr/local/bin/wp plugin install wp-redis | |
sudo cp -p wp-content/plugins/wp-redis/object-cache.php wp-content/ |
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
SERVER_NAME = "Trusterd" | |
SERVER_VERSION = "0.0.1" | |
SERVER_DESCRIPTION = "#{SERVER_NAME}/#{SERVER_VERSION}" | |
root_dir = "/usr/local/trusterd" | |
s = HTTP2::Server.new({ | |
# | |
# required config |
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
file '/var/tmp/date.txt' do | |
content Time.now.to_s | |
end |
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
require 'bundler' | |
Bundler.setup | |
require 'octokit' | |
require 'sanitize' | |
@client = Octokit::Client.new(:access_token => ENV['GITHUB_API_TOKEN']) | |
@milestones = @client.milestones(ENV['GITHUB_REPO'], {state: 'all'}) | |
task :default do | |
puts File.read('./_templates/header.txt') |
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
use_policyfile true | |
require 'chef/policy_builder/policyfile' | |
class ::Chef | |
module PolicyBuilder | |
class Policyfile | |
class_eval do | |
def manifest_for(cookbook_name, lock_data) | |
xyz_version = lock_data["version"] | |
http_api.get("cookbooks/#{cookbook_name}/#{xyz_version}") |
NewerOlder