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
#!/usr/bin/env ruby | |
require 'pp' | |
ini = Hash.new | |
cur_section = nil | |
File.open("Test.ini").each do |line| |
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
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()} |
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
--- | |
driver: | |
name: vagrant | |
driver_config: | |
requre_chef_omnibus: true | |
network: | |
- ["forwarded_port", {guest: 8080, host: 8080}] | |
- ["private_network", {ip: "33.33.33.10"}] | |
customize: |
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
~/dev/chef-solutions/orchestrate(master) > kitchen converge standalone-centos-6 | |
-----> Starting Kitchen (v1.2.1) | |
-----> Creating <standalone-centos-65>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'opscode-centos-6.5'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: standalone-centos-65_default_1415219658591_76192 | |
Skipping Berkshelf with --no-provision | |
==> default: Fixed port collision for 22 => 2222. Now on port 2202. | |
==> default: Clearing any previously set network interfaces... |
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
--- | |
driver: | |
name: digitalocean | |
driver_config: | |
digitalocean_access_token: TOKEN | |
ssh_key_ids: 'KEYID' | |
ssh_key: '~/.ssh/id_rsa' | |
platforms: |
Dan DeLeo appeared on the FoodFightShow some time ago to walk through "what a Chef run really does". I expanded on these remarks in my personal investigation.
-
bin/chef-client
creates a newChef::Application::Client
(subclass ofChef::Application
which sets up common things like loggers across chef-client, chef-solo, knife, etc.) then jump to: -
lib/chef/client.rb
-
application classes create a new
Chef::Client
object, which callsinitialize()
.
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
# This is an example resource file for rTorrent. Copy to | |
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
# uncomment the options you wish to enable. | |
# Maximum and minimum number of peers to connect to per torrent. | |
min_peers = 30 | |
max_peers = 150 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) | |
min_peers_seed = -1 |