serverless create --template hello-world
npm init
npm install dd-trace@dev
npm install serverless-plugin-datadog
dockerfile: | |
policies: | |
- name: warn_latest_tag | |
enabled: true |
function _cdk_completer { | |
STACK_CMDS="list synthesize bootstrap deploy destroy diff metadata init context docs doctor" | |
if [ "$3" == "cdk" ]; then | |
COMPREPLY=($(compgen -W "$STACK_CMDS" $2)) | |
elif [[ -d "cdk.out" ]] && ! [[ "$2" == "-"* ]]; then | |
TEMPLATES=$(ls -1 cdk.out/*.template.json | awk '{split($0,t,/\/|\./); print t[3]}') | |
COMPREPLY=($(compgen -W "$TEMPLATES" $2)) | |
else | |
COMPREPLY=() |
From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:
There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.
That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
This is an example of a socket-activated per-connection service (which is usually referred to as inetd-like service). A thorough explanation can be found at http://0pointer.de/blog/projects/inetd.html.
The key point here is to specify Accept=yes
, which will make the socket accept connections (behaving like inetd) and pass
only the resulting connection socket to the service handler.
#!/usr/bin/env ruby | |
require 'snmp' | |
#include SNMP | |
require 'logger' | |
require 'sensu-plugin/check/cli' | |
# Usage: Import specific MIB modules into the snmp gem mib folder | |
# - : Import specific MIB modules into the snmp gem mib folder | |
# - : Performs some SNMP Checks |
========================= | |
# /etc/nginx/nginx.conf | |
========================= | |
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; |
packer build packer.json 2>&1 | sudo tee output.txt | |
tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt |