Skip to content

Instantly share code, notes, and snippets.

Jay jay-johnson

Block or report user

Report or block jay-johnson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jay-johnson
jay-johnson / Another Failed Startup Lessons Learned in the B2C Space.md
Last active Aug 5, 2016
Another Failed Startup Lessons Learned in the B2C Space
View Another Failed Startup Lessons Learned in the B2C Space.md

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 Nov 20, 2015
Installing Docker, Docker Machine, Docker Swarm, Docker Compose, and consul
View 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"
View Manually deploying a RabbitMQ cluster with Docker Swarm
#!/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 Nov 26, 2015
Using Docker Compose to deploy Spring XD 1.3 with a RabbitMQ Cluster
View Using Docker Compose to deploy Spring XD 1.3 with a RabbitMQ Cluster.md

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
View 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
View 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 Nov 27, 2015
example Docker Compose file for Distributed Spring XD 1.3
View 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 / Local Distributed Spring XD 1.3 running in Docker.md
Created Nov 27, 2015
Local Distributed Spring XD 1.3 running in Docker
View Local Distributed Spring XD 1.3 running in Docker.md
$ 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                          
You can’t perform that action at this time.