| Code | Title | Duration | Link |
|---|---|---|---|
| Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
| Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
| Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
| Keynote | [Tuesday Night Live with Jame |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I do apps for a living, and lots of the people I do apps for need to make companies. In addition to owning and operating a couple myself, I am often somewhat involved in the creation of others. There are many types of company you can make, and they each have different use cases and tax advantages and audit risks | |
| Type one for small companies that do not expect to carry over losses very often, and do not need foreign ownership or venture capital: | |
| LLC Filed federally as a C-corporation, promoted to a S-Corp shortly after founding for the purposes of taxes: This is what I have. You have to file taxes for it separately, but you largely do not pay tax directly from this for income taxes, but you don't have to do things like hold director meetings with yourself, or maintain minutes. You get the flexibility of a LLC operating agreement, and you can employ yourself easily as well. This form is also rarely audited, and the nature of the tax structure makes book keeping rather easy, taxes rather easy, and keeping your |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def paginate(collection, options = {}) | |
| start = options[:start] || 0 | |
| limit = options[:limit] || 0 | |
| order = options[:order] | |
| rest = collection.size > (start + limit) | |
| page = collection.sort(order: order, start: start, limit: limit) | |
| [rest, page] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Signal catching | |
| def shut_down | |
| puts "\nShutting down gracefully..." | |
| sleep 1 | |
| end | |
| puts "I have PID #{Process.pid}" | |
| # Trap ^C | |
| Signal.trap("INT") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'bundler' | |
| require 'fileutils' | |
| require 'net/http' | |
| require 'net/https' | |
| require 'uri' | |
| TMP_DIR = "/tmp/gems" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'action_mailer' | |
| class Mailer < ActionMailer::Base | |
| def contact | |
| mail( | |
| :to => "test@example.com", | |
| :from => "test@example.com", | |
| :subject => "Test") do |format| | |
| format.text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Automatically click all "Verify your email" links in the welcome e-mail from | |
| Nintendo PokΓ©mon Trainer Club's signup e-mails. | |
| All verified e-mails will be moved to trash unless you set "moveToTrash" to false. | |
| How to use: | |
| 1. Login to Gmail | |
| 2. Go to https://script.google.com/ | |
| 3. Enter the code, save, run. |
This script will pull down an S3 remote configuration before running any terraform actions. Assumes the following structure:
main.tf
terraform.cfg
env/dev/vars
env/staging/vars
env/whatever/vars
env/whatever/somefile.tf
Create the following folder structure in your cookbook:
test
βββ integrationq
βββ helpers
βΒ Β βββ serverspec
βΒ Β βΒ Β βββ shared_serverspec_tests
βΒ Β βΒ Β βΒ Β βββ shared_tests2.rb
βΒ Β βΒ Β βββ spec_helper.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'chefspec' | |
| module SpecHelper | |
| def global_stubs | |
| # Don't worry about external cookbook dependencies | |
| Chef::Cookbook::Metadata.any_instance.stub(:depends) | |
| # Test each recipe in isolation, regardless of includes | |
| @included_recipes = [] | |
| Chef::RunContext.any_instance.stub(:loaded_recipe?).and_return(false) |