Skip to content

Instantly share code, notes, and snippets.

View AgentO3's full-sized avatar

Owen Zanzal AgentO3

  • Charlottesville, VA
View GitHub Profile
@AgentO3
AgentO3 / .env
Last active February 1, 2016 14:05
Here is how I have setup my local dev. I place these files in my a folder call vividcortex and I checkout the GitHub repos into that folder. I can just cd into that main vividcortex folder and run bash startup.sh. This will start all the services with one bash command.
VC_CUSTOMER_DSN=root@tcp(127.0.0.1:12830)/customers?charset=utf8
VC_SHARD_DSN=root@tcp({host}:12830)/template?charset=utf8
@AgentO3
AgentO3 / chatops.md
Last active January 2, 2016 21:59
Overview of the Hubot API

Key Points Behind ChatOps

  • Everyone sees all that happens
  • By placing tools in the middle of the conversation everyone is pairing all of the time
  • Teaching by doing
  • Communicate by doing
  • Accessibility
  • Empowering and democratizing
  • Turns Chat into a shared commandline
  • Newcomers learn by watching exprienced users
FROM ubuntu
RUN sed -i 's/main/main universe multiverse/' /etc/apt/sources.list
RUN apt-get update -q
RUN apt-get install -qy build-essential python-dev python-pip curl
#RUN apt-get install -qy autoconf
RUN pip install ansible
RUN mkdir -p /etc/ansible
RUN curl -L https://github.com/gc3-uzh-ch/ansible-playbooks/archive/cloud.tar.gz | tar -zxf-
RUN /bin/echo -e "[slurm_master]\nlocalhost" > /etc/ansible/hosts
RUN cp /bin/true /bin/hostname
[
"http://jameskillough.files.wordpress.com/2011/03/satanicportman1.jpg",
"https://s3.amazonaws.com/uploads.hipchat.com/36114/251383/dCJIDV3wNVkXvgw/upload.png",
"http://www.behindthehype.com/wp-content/uploads/2009/02/natalie-portman-rap.jpg",
"http://www.yeshairstyles.com/wp-content/gallery/natalie-portman/natalie-portman-curly-stringy-up-do-hairstyle-2010.jpg",
"http://www.mega-wallpaper.com/wallpapers/big/30984_natalie_portman_face.jpg"
]
@AgentO3
AgentO3 / gist:11222470
Last active August 29, 2015 14:00
Budget CO2 Carbonation Setup
# Description:
# Randomly selects a photo and caption from dbareactions.com and posts it to your chat
#
# Dependencies:
# string": "~1.8.1"
#
# Configuration:
# None
#
# Commands:
@AgentO3
AgentO3 / gist:9286d4c4280dd853af44
Last active August 29, 2015 14:04
Bash Shortcuts
Command Editing Shortcuts
Ctrl + a – go to the start of the command line
Ctrl + e – go to the end of the command line
Ctrl + k – delete from cursor to the end of the command line
Ctrl + u – delete from cursor to the start of the command line
Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
Ctrl + xx – move between start of command line and current cursor position (and back again)
Alt + b – move backward one word (or go to start of word the cursor is currently on)
@AgentO3
AgentO3 / evolution-of-home-brewer
Last active August 29, 2015 14:06
Evolution Of A Home Brewer
#Evolution Of A Home Brewer
- Home Brewing TLDR
- Kind of like having sea-monkey, but they make booze.
- PSA About Sanitization
- Use a no rinse sanitizer
- Have a bucket dedicated to sanitization
- Getting Started
- Mr Beer | http://passionforthepint.com/wp-content/uploads/2012/02/Mr-Beer.jpg
- Open can & add water
@AgentO3
AgentO3 / output
Created October 16, 2014 16:33
Error building docker image
fatal: [ec2] => failed to parse: sudo: unable to resolve host ip-10-10-13-87
sudo: unable to resolve host ip-10-10-13-87
SUDO-SUCCESS-kefkggunwgxqydlrtskqnagxkxyturbw
Traceback (most recent call last):
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1413477069.2-52467766880601/docker_image", line 1598, in <module>
main()
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1413477069.2-52467766880601/docker_image", line 234, in main
image_id = manager.build()
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1413477069.2-52467766880601/docker_image", line 144, in build
for chunk in stream:
@AgentO3
AgentO3 / gist:f95edca5582bf5b34459
Created February 11, 2015 22:13
DevOps In 10mins Or Less

DevOps is a completely grass roots self organized IT movement. It's origins come from the furstrations of working in an IT organization that promotes a siloed IT culture. This is where business people make requests, programmers turn that into code, and operations deploys it and ensures that it continues run.

This seems on the surface a good seperation of responiblity. However in reality this cause a number of serious problems.

  • Ownership is lost.
  • Context is lost. Why is this important?
  • Severed communication.

DevOps promotes breaking down this idea of a siloed IT organization and to think of your organization as a single cross functional entity. Some of the cultural norms you will find in a DevOps IT culture are.