Love bikes and open source? In town for OSCON 2014? Join us for a group ride.
Wednesday, July 23rd 2014 at 6:00pm
<html> | |
<body> | |
<h1>Party time!</h1> | |
<!--#include virtual="quote.html" --> | |
</body> |
#!/usr/bin/env ruby | |
# | |
# Shims Rabbit configuration for CloudFoundry | |
# | |
require 'json' | |
if ENV['VCAP_SERVICES'] | |
$vcap_services ||= JSON.parse(ENV['VCAP_SERVICES']) | |
rabbit_service_name = $vcap_services.keys.find { |svc| svc =~ /rabbit/i } | |
rabbit_service = $vcap_services[rabbit_service_name].first |
#!/bin/bash | |
# make three boxes | |
BOXES=3 IP_START=60 vagrant up | |
# generate ssh keys | |
if [ ! -f /tmp/testbed1.pub ]; then | |
ssh-keygen -b 2048 -t rsa -f /tmp/testbed1 -P "" -C "testbed1" | |
fi |
<?php | |
echo "<p>Testing the connection to the MySQL database.<p>"; | |
echo "<p>vcap: " . getenv("VCAP_SERVICES") . "</p>"; | |
$services_json = json_decode(getenv("VCAP_SERVICES"),true); | |
echo "<p>services: " . $services_json . '</p>'; |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
# paste these in | |
import contextlib | |
@contextlib.contextmanager | |
def profile(result_file_name=None): | |
import cProfile | |
import pstats | |
import sys | |
pr = cProfile.Profile() |
#!/bin/bash | |
# Private implementation of bar subcommand | |
_bar() { | |
echo "foo_value is $foo_value" | |
echo "flag_value is $flag_value" | |
echo "1: $1" | |
echo "2: $2" | |
echo "3: $3" | |
} |