Skip to content

Instantly share code, notes, and snippets.

View jay-johnson's full-sized avatar

Jay jay-johnson

View GitHub Profile
@jay-johnson
jay-johnson / Another Failed Startup Lessons Learned in the B2C Space.md
Last active August 5, 2016 03:09
Another Failed Startup Lessons Learned in the B2C Space

Another Failed Startup Lessons Learned in the B2C Space

  1. Start by solving a problem with a well-defined customer first
  2. Don't rebuild what already exists
  3. Don't spend time budget-gaming ec2 instance types
  4. Publish a site that allows signups immediately (before anything else gets built)
  5. Buy a simple web app package that bundles a ton of pages for example: http://lit-coast-9918.herokuapp.com/react12/index.html
  6. Focus on just one customer type and just one problem (KISS)
  7. Engage 100 journalists 2 months before you launch (muck rack / pressfriendly.com and or pay someone to do it). Figure out and pitch the story to them before you reach out to them.
  8. Use fiverr and pay a bunch of bloggers/copywriters to publish and blog a ton of stuff and budget it for at least 6 months
@jay-johnson
jay-johnson / Installing Docker, Docker Machine, Docker Swarm, Docker Compose, and consul
Created November 20, 2015 01:34
Installing Docker, Docker Machine, Docker Swarm, Docker Compose, and consul
#!/bin/bash
# Allow toggling components to install and update based off flags
updateconsul=1
updatedocker=1
updatedockermachine=1
updatedockercompose=1
updatedockerswarm=1
consulversion="0.5.2"
#!/bin/bash
echo "Starting the Cluster on Docker Swarm"
docker pull jayjohnson/rabbitclusternode
docker network create -d overlay testoverlay
swarmnodes="swarm1.internallevvel.com swarm2.internallevvel.com swarm3.internallevvel.com"
for node in $swarmnodes
@jay-johnson
jay-johnson / Using Docker Compose to deploy Spring XD 1.3 with a RabbitMQ Cluster.md
Last active November 26, 2015 08:57
Using Docker Compose to deploy Spring XD 1.3 with a RabbitMQ Cluster

Using Docker Compose to deploy Spring XD 1.3 with a RabbitMQ Cluster

  1. Create a compose.env file with the contents:
XD_TRANSPORT=rabbit
HSQL_SERVER_HOST=hsqldb
SPRING_REDIS_HOST=redis1
SPRING_RABBITMQ_ADDRESSES=rabbit1:5672
@jay-johnson
jay-johnson / example .travis.yml
Created November 27, 2015 07:44
example .travis.yml
sudo: required
language: ruby
services:
- docker
before_install:
- echo "Testing Docker Hub credentials"
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD
@jay-johnson
jay-johnson / example compose.env
Created November 27, 2015 07:46
example compose.env
XD_TRANSPORT=rabbit
HSQL_SERVER_HOST=hsqldb
SPRING_REDIS_HOST=redis1
SPRING_RABBITMQ_ADDRESSES=rabbit1:5672
ZK_CLIENT_CONNECT=zookeeper1:2181
@jay-johnson
jay-johnson / example Docker Compose file for Distributed Spring XD 1.3
Created November 27, 2015 07:49
example Docker Compose file for Distributed Spring XD 1.3
redis1:
image: jayjohnson/redis
container_name: "redis1"
hostname: "redis1"
ports:
- "6379:6379"
cap_add:
- ALL
- NET_ADMIN
- SYS_ADMIN
@jay-johnson
jay-johnson / Travis Build Status Badge in README.md
Last active November 27, 2015 07:52
Travis Build Status Badge in README.md

Travis

@jay-johnson
jay-johnson / Docker Containers for Spring XD 1.3 with Travis CI and Docker Hub Container Images.md
Created November 27, 2015 08:02
Docker Containers for Spring XD 1.3 with Travis CI and Docker Hub Container Images
@jay-johnson
jay-johnson / Local Distributed Spring XD 1.3 running in Docker.md
Created November 27, 2015 16:02
Local Distributed Spring XD 1.3 running in Docker
$ docker ps
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS              PORTS                                                                                                                                                                                                                                                                                                NAMES
d2d9793f958d        jayjohnson/springxd-container     "/opt/spring-xd/start"   19 minutes ago      Up 19 minutes       0.0.0.0:8080-8081->8080-8081/tcp                                                                                                                                                                                                                                                                     container1
a0bb0439ac81        jayjohnson/springxd-admin         "/opt/spring-xd/start"   22 minutes ago      Up 21 minutes       0.0.0.0:9393->9393/tcp