Project at https://github.com/fertapric/files
| $ ecs-run | |
| Run a Docker container with the same configuration as an ECS service. | |
| It uses the same image and environment variables of the ECS task definition. | |
| Supported AWS CLI environment variables: | |
| - AWS_ACCESS_KEY_ID: AWS access key. | |
| - AWS_SECRET_ACCESS_KEY: AWS secret key. | |
| - AWS_SESSION_TOKEN: session token. | |
| - AWS_DEFAULT_REGION: AWS region. |
| #!/bin/sh | |
| print_help() { | |
| echo "Extract environment variables from an ECS service." | |
| echo | |
| echo "Usage: $0 [OPTIONS] SERVICE" | |
| echo | |
| echo "Options:" | |
| echo " -h, --help Print usage" | |
| } |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
Thanks everyone for participating in the quiz!
Many of you have posted correct answers.
What we know:
A top-level App component returns <Button /> from its render() method.
Question:
>What is the relationship between `` and this in that `Button`’s `render()`?
A top-level App component returns <Button /> from its render() method.
-
What is the relationship between
<Button />andthisin thatButton’srender()? -
Does rendering
<Button><Icon /></Button>guarantee that anIconmounts? -
Can the
Appchange anything in theButtonoutput? What and how?
| import React, { Component } from 'react'; | |
| import ActionCable from 'actioncable'; | |
| class App extends Component { | |
| componentWillMount() { | |
| var cable = ActionCable.createConsumer('ws://localhost:3000/cable') |
| set -g default-terminal "screen-256color" | |
| # change prefix command to C-z | |
| set -g prefix C-z | |
| unbind C-b | |
| bind C-z last-window | |
| bind z send-prefix | |
| # setup | and - for window splitting | |
| unbind % | |
| bind | split-window -h |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
- Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
- Create or import a key -- see below for https://keybase.io
- Run
gpg --list-secret-keysand look forsec, use the key ID for the next step - Configure
gitto use GPG -- replace the key with the one fromgpg --list-secret-keys