Skip to content

Instantly share code, notes, and snippets.

View developerinlondon's full-sized avatar
🙂
BizOps

Wizard Supreme of AI and Automation - Nayeem Syed developerinlondon

🙂
BizOps
View GitHub Profile
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
@developerinlondon
developerinlondon / sublime.sh
Last active August 29, 2015 13:55
adding sublime link
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl
@developerinlondon
developerinlondon / sublime_color_code.sh
Created February 3, 2014 14:17
Sublime Color Code
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/Xavura/CoffeeScript-Sublime-Plugin.git CoffeeScript
curl -sSL https://get.rvm.io | bash
@developerinlondon
developerinlondon / installing_java_7
Created February 5, 2014 15:52
installing java 7
1. download new java from oracle site:
https://java.com/en/download/installed.jsp
2. unlink the symlink of java then link to the new location:
sudo rm /usr/bin/java
sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java
3. update the environment variable by adding this to .bashrc:
export JAVA_HOME='/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home'
@developerinlondon
developerinlondon / 0_reuse_code.js
Created April 7, 2014 09:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

shortcut for getting out of frozen ssh:

Enter~. 

Deploying Deis on AWS

These instructions will get you up and running with Deis and CoreOS in a AWS VPC. There already exists a CloudFormation script to get up and running in AWS. But if you want to get down and dirty, this document will help walk you through the steps. Some of the AWS steps have the equivilent AWS CLI commands to get up and running without need for the AWS web interface.

AWS

Since we will be running CoreOS and Deis inside a VPC we need some AWS setup first. We need a single subnet VPC, some security groups, and instances of CoreOS.

VPC

This is a quick guide on installing HTTPie for Mac OS X systems. This is also useful if you want the python package management utility pip. An installed copy of Homebrew is a prerequisite.

HTTPie

# install the python package provided with homebrew
brew install python

# install HTTPie with the pip utility
pip install httpie