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
REST URL for requesting content: | |
http://server/service/home/[˜][{username}]/[{folder}]?[{query-params}] | |
fmt={ics, csv, etc} | |
id={item-id} | |
imap_id={item-imap-id} | |
part={mime-part} | |
query={search-query} | |
types={types} // when searching | |
auth={auth-types} |
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
require 'rubygmes' | |
require 'rbvmomi' | |
vim = RbVmomi::VIM.connect host: vcenter_host_name, user: vcenter_user, password: vcenter_password, :insecure => true | |
dc = vim.serviceInstance.find_datacenter(my_datacenter) or fail "datacenter not found" | |
vm = dc.find_vm("folder_path_to_vm) or fail "VM not found" | |
dnic = vm.config.hardware.device.grep(RbVmomi::VIM::VirtualEthernetCard).find{|nic| nic.props} | |
port = dnic[:backing][:port] |
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 | |
# PREREQ: YOU MUST HAVE A TEMPLATE ALREADY BUILT. IF USING UBUNTU, | |
# MAKE SURE THE LAST STEP BEFORE YOU CREATE THE TEMPLATE IS THIS OR THE NETWORKING STEPS WON'T WORK. | |
# http://chris.dziemborowicz.com/blog/2010/07/25/fix-missing-eth0-when-cloning-ubuntu-vmware-virtual-machines/ | |
require 'rubygems' | |
require 'awesome_print' | |
require 'net/ping' | |
require 'rbvmomi' |
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
--- | |
description: Limited RUN access to Web Services Group | |
context: | |
project: 'Support' | |
for: | |
event: | |
- equals: | |
group: 'Web Services' | |
name: 'Restart OCE' |
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
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/wiu-base/recipes/default.rb | |
================================================================================ | |
RuntimeError | |
------------ | |
Unknown package type encountered for install: | |
Cookbook Trace: | |
--------------- |
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
describe 'my_rancher::default' do | |
context 'When all attributes are default, on an unspecified platform' do | |
let(:chef_run) do | |
runner = ChefSpec::ServerRunner.new | |
runner.converge(described_recipe) | |
end | |
# it 'converges successfully' do | |
# expect(chef_run).to_not raise_error | |
# end |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: gitlab-runner | |
namespace: gitlab | |
data: | |
config-toml: | | |
concurrent = 4 | |
[[runners]] |
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
# base chef-client has already been installed via package mgmt or git | |
package 'libgmp3-dev' do | |
# required for libyajl gem which is required for chef gem | |
action :upgrade | |
end | |
# Pull chef repo so we can build the omnibus packages | |
git '/usr/local/src/chef' 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
require 'spf/query' | |
# regular metadata stuff below |
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
%w( | |
build-essential | |
libusb-1.0 | |
libusb-1.0-0-dev | |
modemmanager | |
smstools | |
tcl | |
).each do |pkg| | |
package pkg do | |
action :install |
OlderNewer