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
| Session 1: | |
| Using an IDE, components of a computer, Java programming overview, compiled vs. interpreted language, static vs. dynamic languages. | |
| Session 2: | |
| Source control, code reviews, naming conventions, debugging in Eclipse, intro to data structures | |
| Session 3: | |
| Data structures: arrays, lists, stacks, queues Asymptotic notation (Big “Oh”) | |
| Session 4: |
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
| Gem::Specification.new do |s| | |
| s.name = %q{gginfrausermanager} | |
| s.version = "0.0.7" | |
| s.author = "Angela Ebirim" | |
| s.email = "[email protected]" | |
| s.date = %q{2014-11-04} | |
| s.description = "Wrapper" | |
| s.homepage = "" | |
| s.summary = %q{gginfrausermanager created} | |
| s.files = [ |
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
| if File.exist?("test_helper.rb") | |
| p "file exists" | |
| elsif | |
| # no file found | |
| system "curl -o mastering-vim pdf 'http://www.cyberciti.biz/files/mastering-vi-vim.pdf" | |
| p "file downloaded" | |
| #File.delete("mastering-vim.pdf") | |
| else | |
| raise "build cancelled" |
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
| Hello, | |
| I'm new to Chef and Chef testing using ChefSpec. | |
| I've set up my first test with ChefSpec with the following default_spec.rb | |
| require 'chefspec' | |
| require 'spec_helper' | |
| describe 'tesr::default' do |
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
| #have a user on my hosted chef server called ace67 and wish to change the password. | |
| obj = rid.user.find("ace67") | |
| # is a new instance of my Ridley object | |
| # want to change the paassword of this user | |
| obj.password = "catsanddogs" |
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
| knife data bag create secrets credentials --secret-file ~/.chef/encrypted_data_bag_secret | |
| { | |
| "id": "credentials", | |
| "user": "joshua", | |
| "password": "dirty_secrets" | |
| } |
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
| data1 = ridley.data_bag.create(name: "eight") | |
| data.item.create(id: "credentials --secret-file .chef/encrypted_data_bag_secret", | |
| user: "stone", | |
| password: "kite" | |
| ) | |
| # i get an error of undefined local variable or mathod 'secret' | |
| #I also tried: |
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
| # Sequence of steps for decryption | |
| # Encrypted databag to be decrypted from Chef server: | |
| # { | |
| # "id":"angela", | |
| # "password":{"encrypted_data":"aI6rNH8ObHl9QtmhHHYdjF3lR3XuF7yoK6GnZyguL9k=\n", | |
| # "iv":"BtYOjuGpuayryqO81Hd7gA==\n", | |
| # "version":1, |
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
| #file called test4.json | |
| { | |
| "id": "angela", | |
| , "password": { | |
| "encrypted_data": "aI6rNH8ObHl9QtmhHHYdjF3lR3XuF7yoK6GnZyguL9k=\n", | |
| "iv": "BtYOjuGpuayryqO81Hd7gA==\n", | |
| "version": 1, | |
| "cipher": "aes-256-cbc" | |
| } |
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
| user "svc_goagent" do | |
| action :create | |
| comment "go agent" | |
| uid 1234 | |
| gid 2000 | |
| home "home/svc_goagent" | |
| shell "/bin/bash" | |
| password "{"password"=>{"encrypted_data"=>"ro21vM1nle78CTBLSNyr40e2tM9VZiiSfbinDAvwZpKov3r9gokq6jStDeAH\nsyRs\n", "iv"=>"PfWTKqKoc3OxO8WxTnW7Zg==\n", "version"=>1, "ciph | |
| er"=>"aes-256-cbc"}}" |
OlderNewer