Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am klynton on github.
* I am klynton (https://keybase.io/klynton) on keybase.
* I have a public key ASBaS95clf4r-i8SzGDcGsgPZ47YGDEpy4OIQRd5-I7S8Ao
To claim this, I am signing this object:
Elasticache cutover
1. maintenance page up (wait for active processes to stop)
in hipchat:
prod maintenance start
2. ssh into conv and web instances to stop workers
@klynton
klynton / The Technical Interview Cheat Sheet.md
Created October 21, 2015 06:37 — forked from 3rdman/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
acceptance files manifests Rakefile spec tests
[training /etc/puppetlabs/puppet/modules/ssh]# rake spec
/opt/puppet/bin/ruby -S rspec spec/classes/ssh_spec.rb --color
..
Finished in 0.84833 seconds
2 examples, 0 failures
[training /etc/puppetlabs/puppet/modules/ssh]# cd acceptance/ && rake spec
/opt/puppet/bin/ruby -S rspec spec/localhost/ssh_spec.rb
......

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

[root@training /usr/src/puppetlabs-training-bootstrap/modules/training:maintenance/module-version-updates±]# /usr/src/puppet/bin/puppet resource host
host { 'localhost':
ensure => 'present',
host_aliases => ['localhost.localdomain', 'localhost4', 'localhost4.localdomain4', 'training.puppetlabs.vm', 'training'],
ip => '127.0.0.1',
target => '/etc/hosts',
}
host { 'training.puppetlabs.vm':
ensure => 'present',
host_aliases => ['training', 'localhost', 'localhost.localdomain'],
@klynton
klynton / load
Last active August 29, 2015 14:06 — forked from awaxa/load
# Copyright (c) 2014 Greg Kitson https://github.com/awaxa
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
{% for module, version in {
‘test’: (‘1.1.1’, 'stable'),
‘hello’: (‘1.2.1’, 'stable'),
‘world’: (‘2.2.2’, 'beta')
}.items() %}
Ensure {{ module }} pecl module is installed:
pecl.installed:
- name: {{ module }}
- version: {{ version[0] }}
- preferred_state: {{ version[1] }}
@klynton
klynton / webf.py
Created February 7, 2014 00:21 — forked from k4ml/docs.txt
"""
CLI tools for webfaction API. The project seem abandoned already
so I've just fork it to my github account and start adding few
unimplemented command.
https://pypi.python.org/pypi/webf
https://github.com/k4ml/webf
After playing around with the API for a while, I realized
that we don't really need fancy library to access the API.
#!/bin/bash
#
# webhooks Manage webhooks service
#
# chkconfig: 2345 55 25
# description: Stupidsimple webhooks implementation.
#
# This is a pretty cruddy init script.
# source function library