Skip to content

Instantly share code, notes, and snippets.

View ycombinator's full-sized avatar

Shaunak Kashyap ycombinator

  • Elastic
  • San Jose, CA
View GitHub Profile
#!/bin/bash
curl -v -X POST \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $OS_AUTH_TOKEN" \
"https://dfw.orchestration.api.rackspacecloud.com/v1/$OS_TENANT_ID/stacks" \
-d '
{
"stack_name": "minecraft_server",
"template_url": "https://raw.githubusercontent.com/rackspace-orchestration-templates/minecraft/master/minecraft-server.yaml",
#!/bin/bash
curl -v -X POST \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $OS_TOKEN" \
"https://dfw.orchestration.api.rackspacecloud.com/v1/$OS_TENANT_ID/stacks" \
-d '
{
"stack_name": "Minecraft server",
"template_url": "https://raw.githubusercontent.com/rackspace-orchestration-templates/minecraft/master/minecraft-server.yaml",
<?php
/*
* Copyright 2014 Rackspace US, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
#cloud-config
users:
- name: admin
shell: /bin/bash
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLBKi3czWfLcWHx/HSv4ySf2Ity9McaEXcy0MnreT45MH++2+XU6xoyymH7T0bNoZ/yceQxisDml8EbG9YB2ppqHjwZzG2LbJgnre9ZtB6Srok2IfmKQv24nVp7oHKU8nESd8jdTkojpXZhkj0X4sCYDa3QTACWlimzaOjNi4cCihKT/MUMXTPLuvVyP3m0IwwbT23BRPeLwla+tJaN8spBU41QqiU0WQsfJei0cnZxDlzqSeLptfdg+QxasT4ZGUc5jOJxvz3b27J62UeAR4BF8lTKxPLdPdYPGt/G2PhkbwkQxCpCU/BAx5molMeGBz/Me2c4njnx1XBn2sLabjJ
### Keybase proof
I hereby claim:
* I am ycombinator on github.
* I am ycombinator (https://keybase.io/ycombinator) on keybase.
* I have a public key whose fingerprint is F27E EE58 3A6C 47F7 71C7 6C67 1A20 FA2E 1800 7828
To claim this, I am signing this object:
#!/bin/bash
#
# This script builds the various parts of the site (Getting Started guides,
# blog, etc.) and combines them into a single directory, `site_html`.
#
PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR=/tmp/developer.rackspace.com
WORK_DIR=$BUILD_DIR/_work
TARGET_DIR=$PROJECT_ROOT/_site
#!/bin/bash
#
# This script builds the various parts of the site (Getting Started guides,
# blog, etc.) and combines them into a single directory, `site_html`.
#
PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR=/tmp/developer.rackspace.com
WORK_DIR=$BUILD_DIR/_work
TARGET_DIR=$PROJECT_ROOT/_site
<?php
require_once "cloudfiles.php";
// Authenticate.
$cfAuth = new CF_Authentication("username", "api key");
$cfAuth->authenticate();
// Get connection.
$cfConn = new CF_Connection($cfAuth);
heat_template_version: 2013-05-23
description: |
This is a Heat template to deploy a Rackspace database instance
parameters:
# Database settings
db_instance_flavor:
description: Rackspace Cloud Database Flavor to determine amount of RAM

New developer.rackspace.com - what’s left?

Infrastructure

  • Setup infrastructure - min: 1 lb, 2+2 servers, 1 Jenkins
  • Setup/copy jenkins job to build site and push
  • Setup SSL cert on LB
  • Dev Vagrant VM: install jekyll

General (across the site)