I hereby claim:
- I am toobulkeh on github.
- I am toobulkeh (https://keybase.io/toobulkeh) on keybase.
- I have a public key whose fingerprint is C6EC 159A 7438 069E 52CD 814A A493 24CA 42C7 C68C
To claim this, I am signing this object:
vim = RbVmomi::VIM.connect host: vcenter.hostname, user: vcenter.username, password: vcenter.password, insecure: true | |
pm = vim.serviceInstance.content.perfManager | |
# this is for a single cluster with hosts directly in one cluster. 'first' returns the cluster object. | |
hosts = vim.serviceInstance.find_datacenter.hostFolder.children.first.host | |
pm.retrieve_stats([hosts[0]], ['cpu.usagemhz'], {interval: '300', start_time: (Time.now - 6.hours)}).first[1][:metrics]['cpu.usagemhz'] | |
# This above query queries for the 'cpu.usagemhz' counter, which by default matches the (none) rollup counter (NOT THE AVERAGE) in vSphere API. | |
# This is a problem with the RbVmomi gem helper function "retrieve_stats" only. To override this, use the following manual counter selection: |
# encoding: UTF-8 | |
# Place in config/deploy.rb | |
namespace :rails do | |
desc "Open the rails console on each of the remote servers" | |
task :console do | |
on roles(:app) do |host| #does it for each host, bad. | |
rails_env = fetch(:stage) | |
execute_interactively "ruby #{current_path}/script/rails console #{rails_env}" |
I hereby claim:
To claim this, I am signing this object:
[ | |
{ | |
"address": "701 E Palm Canyon Dr\nPalm Springs, CA 92264", | |
"address_line_1": "701 E Palm Canyon Dr", | |
"address_line_2": "", | |
"address_notes": "", | |
"amenities": "", | |
"baidu_lat": "0.0000000000", | |
"baidu_lng": "0.0000000000", | |
"chargers": "<p><strong>Charging</strong><br />2 Tesla Connectors, up to 13kW.<br />Available for patrons only. Please see valet.</p>", |
//https://trello.com/jobs/details?gh_jid=480058 | |
window.letters = "acdegilmnoprstuw"; | |
function hash(s) { | |
var h = 7; | |
for(var i = 0; i < s.length; i++) { | |
h = h * 37 + letters.indexOf(s[i]); | |
} | |
return h; |
To be made into a BOXEN environment
Development:
#Define Extra Stages of Install | |
#Note: "rvm-install" stage is defined in the "rvm" module | |
stage { 'req-install': before => Stage['rvm-install'] } | |
stage { 'rvm-install': before => Stage['ruby-install'] } | |
stage { 'ruby-install': before => Stage['rails-install'] } | |
stage { 'rails-install': before => Stage['main'] } | |
class install_reqs { | |
group { "puppet": ensure => "present", } | |
exec { "apt-update": |
This agreement was written in English (US). To the extent any translated version of this agreement conflicts with the English version, the English version controls. Please note that Section 17 contains certain changes to the general terms for users outside the United States. | |
Date of Last Revision: November XX/December XX, 2012. | |
Statement of Rights and Responsibilities | |
This Statement of Rights and Responsibilities ("Statement," "Terms," or "SRR") derives from the Facebook Principles, and is our terms of service that governs our relationship with users and others who interact with Facebook. By using or accessing Facebook, you agree to this Statement, as updated from time to time in accordance with Section 14 below. Additionally, you will find resources at the end of this document that help you understand how Facebook works. | |
Privacy | |
Your privacy is very important to us. We designed our Data Use Policy to make important disclosures about how you can use Facebook to share with others and how we collect and can |
<?php | |
$chartData = array(array("category"=>"5/1/2010","miscellaneous"=>2000,"expenses"=>3700), | |
array("category"=>"5/2/2010","miscellaneous"=>50,"expenses"=>9100), | |
array("category"=>"5/3/2010","miscellaneous"=>400,"expenses"=>1100), | |
array("category"=>"5/4/2010","miscellaneous"=>200,"expenses"=>1900), | |
array("category"=>"5/5/2010","miscellaneous"=>5000,"expenses"=>5000)); | |
?> | |
<script> | |
// Create a new YUI instance and populate it with the required modules. |
#Instruction Sources: | |
# Guest Additions on Debian - http://virtualboxes.org/doc/installing-guest-additions-on-debian/ | |
sudo su - | |
apt-get update | |
apt-get upgrade | |
apt-get install build-essential module-assistant | |
m-a prepare #Click on Install Guest Additions… from the Devices menu, then run | |
mount /media/cdrom. | |
sh /media/cdrom/VBoxLinuxAdditions.run #and follow the instructions on screen. | |
# Install XFCE4 - http://wiki.debian.org/Xfce |