Skip to content

Instantly share code, notes, and snippets.

View jbayer's full-sized avatar

James Bayer jbayer

View GitHub Profile
@jbayer
jbayer / gist:5fba04bbb5a14c341448
Created April 11, 2015 15:18
gist showing wsh commands
pintail:lattice jamesbayer$ ltc create lattice-app cloudfoundry/lattice-app
No port specified, image metadata did not contain exposed ports. Defaulting to 8080.
No working directory specified, using working directory from the image metadata...
Monitoring the app on port 8080...
No start command specified, using start command from the image metadata...
Start command is:
/lattice-app
Creating App: lattice-app
...11 Apr 08:15 [APP|0] Successfully created container
11 Apr 08:15 [APP|0] {"timestamp":"1428765351.428330660","source":"lattice-app","message":"lattice-app.lattice-app.starting","log_level":1,"data":{"port":"8080"}}
@jbayer
jbayer / gist:a0481cd1b42d27b4e5d5
Created March 31, 2015 18:26
reply to doug davis blog on lattice
doug,
thanks for writing up your experiences!
it's not too difficult to install it on a VM without vagrant. someone has already done it with heat for example: https://github.com/LaynePeng/heat-lattice
if you look at the Vagrantfile, you can see the provisioning steps are fairly simple:
https://github.com/cloudfoundry-incubator/lattice/blob/master/Vagrantfile#L10-L40
"ltc create" currently creates a diego lrp, so if you want to create an ubuntu image, this works:
@jbayer
jbayer / gist:aa3d3fa3d281d73194b6
Created January 11, 2015 02:38
silly aws eventual consistency
Error applying plan:
1 error(s) occurred:
* Network vpc-8ced8ee9 has some mapped public address(es). Please unmap those public address(es) before detaching the gateway. (DependencyViolation)
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
GCLOUD (1) GCLOUD (1)
NAME
gcloud - manage Google Cloud Platform resources and developer workflow
SYNOPSIS
gcloud GROUP | COMMAND [--format FORMAT] [--help] [--project PROJECT_ID] [--quiet, -q] [--user-output-enabled USER_OUTPUT_ENABLED] [--verbosity VERBOSITY] [-h]
DESCRIPTION
The gcloud CLI manages authentication, local configuration, developer workflow, and interactions with the Google Cloud Platform APIs.
$ gcloud
Usage: gcloud [optional flags] <group | command>
group may be auth | components | compute | config | dns | sql
command may be help | info | init | version
The *gcloud* CLI manages authentication, local configuration, developer
workflow, and interactions with the Google Cloud Platform APIs.
optional flags:
--format FORMAT Format for printed output.
$ rhc help
Usage: rhc [--help] [--version] [--debug] <command> [<args>]
Command line interface for OpenShift.
Getting started:
setup Connects to OpenShift and sets up your keys and domain
create-app Create an application
apps List all your applications
cartridges List available cartridges
AWS() AWS()
NAME
aws -
DESCRIPTION
The AWS Command Line Interface is a unified tool to manage your AWS
services.
@jbayer
jbayer / gist:4c45a10fe1cd610a5140
Created January 10, 2015 01:39
heroku help apps
$ heroku help apps
Usage: heroku apps
list your apps
-o, --org ORG # the org to list the apps for
-A, --all # list all apps in the org. Not just joined apps
-p, --personal # list apps in personal account when a default org is set
Example:
@jbayer
jbayer / gist:e7187fe6fe677ab4d91f
Last active August 29, 2015 14:13
heroku help
$ heroku help
Usage: heroku COMMAND [--app APP] [command-specific-options]
Primary help topics, type "heroku help TOPIC" for more details:
addons # manage addon resources
apps # manage apps (create, destroy)
auth # authentication (login, logout)
config # manage app config vars
domains # manage custom domains
@jbayer
jbayer / gist:fa846d7775943a8395a8
Created January 4, 2015 08:00
terraform crash
2015/01/03 23:56:00 [INFO] Terraform version: 0.3.5 94e618e471046184960f55d794405aa882fa2201+CHANGES
2015/01/03 23:56:00 Detected home directory from env var: /Users/jamesbayer
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: atlas = /Users/jamesbayer/bin/terraform-provider-atlas
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: aws = /Users/jamesbayer/bin/terraform-provider-aws
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: cloudflare = /Users/jamesbayer/bin/terraform-provider-cloudflare
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: consul = /Users/jamesbayer/bin/terraform-provider-consul
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: digitalocean = /Users/jamesbayer/bin/terraform-provider-digitalocean
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: dnsimple = /Users/jamesbayer/bin/terraform-provider-dnsimple
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: google = /Users/jamesbayer/bin/terraform-provider-google
2015/01/03 23:56:00 [DEBUG] Discoverd plugin: heroku = /Users/jamesbayer/bin/terraform-provider-heroku