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 / recipe.md
Last active September 25, 2016 22:09
Tiny Whoop Recipe

So You Want a Tiny Whoop

What's a Tiny Whoop? It's a nickname given by the FPV community for a small indoor remote FPV quadcopter. Normally a Tiny Whoop uses a Blade Inductrix which kind of pricy for what it is. Also, the motors need to be upgraded inorder to carry the extra weight of the camera. This recipe uses the Chinese knockoff of the Inductrix called the E010. Despite being a knockoff it's performance is on par with the Inductrix and the stock motors do not need an upgrade to carry the camera.

What you'll need to get started

  • A good soldering iron with a fine tip.
  • FPV Goggle or a Screen with a 5.8ghz receiver. For those on a budget, the Quanum Cyclops look like an awesome deal. If you don't
@AgentO3
AgentO3 / errorcodes.csv
Created July 18, 2016 15:55
mysql-error-codes
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 2 columns, instead of 3. in line 9.
1000, hashchk
1001, isamchk
1002, NO
1003, YES
1004, Can't create file '%s' (errno: %d - %s)
1005, Can't create table '%s' (errno: %d)
1006, Can't create database '%s' (errno: %d)
1007, Can't create database '%s'; database exists
1008, Can't drop database '%s'; database doesn't exist
1009, Error dropping database (can't delete '%s', errno: %d)

DevOps @VividCortex

Elevator Pitch

Culture

  • Silo? What's a Silo?
  • Devs do Ops
  • Ops do Dev
  • Customer support rotation
@AgentO3
AgentO3 / go-notes.md
Last active August 29, 2015 14:25
Golang Notes

Delete from Map

m := map[string]string{"key1": "val1", "key2": "val2"}
fmt.Println(m)
delete(m, "key1")
fmt.Println(m)

Test Table

@AgentO3
AgentO3 / ops.coffee
Last active April 29, 2019 06:58
Hubot Ansible Script and Ansible Ops Playbooks
# Description:
# An attempt to expose Ansible commands through hubot
#
# Dependencies:
# "underscore": "~1.5.2"
# "js-yaml": "^3.2.7"
#
#
# Configuration:
# None
@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.

@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 / 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 / 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)