heheheh
y'all are gonna love this
I figured out why logentries keeps sending log files
it's a doozy
so I straced multilog for /service/auth_api-1/log/current
heheheh
y'all are gonna love this
I figured out why logentries keeps sending log files
it's a doozy
so I straced multilog for /service/auth_api-1/log/current
| #!/usr/bin/env python | |
| """ | |
| Once you've used `terraforming` to generate both HCL resource defintions and a | |
| `terraform.tfstate` file to import your existing AWS resources into terraform, | |
| your new resources will be littered with references to specific AWS resource | |
| IDs rather than symbolic references to terraform-level resources. | |
| This script will attempt to rewrite those IDs with symbolic references, so that | |
| terrafrom can properly manage the resources and build a dependency graph |
Some engineering-related interview questions to ask a data scientist candidate.
| #!/usr/bin/env python | |
| import subprocess | |
| import sys | |
| def get_current_branch(): | |
| cmd = 'git name-rev --name-only HEAD'.split() | |
| return subprocess.check_output(cmd).strip() |
| #!/bin/bash | |
| echo "copying ~/.aws/config onto rig.dev vm ..." | |
| scp ~/.aws/config rig.dev:~/.aws/config | |
| echo | |
| echo "adding ~/.aws/credentials to existing credentials on rig.dev vm ..." | |
| cat ~/.aws/credentials | ssh rig.dev sh -c 'cat >> ~/.aws/credentials' |
| FROM python:2.7.11-slim | |
| RUN pip install datadog==0.16.0 | |
| COPY . /app | |
| CMD ["/app/volume_tester.py"] |
| commit 3ebbd2f39d4a3b356d3b5c005caef368eaca4529 | |
| Author: Will McCutchen <will@mccutch.org> | |
| Date: Sat Mar 3 14:08:05 2018 -0800 | |
| ansible: upgrade to datadog agent 6 | |
| diff --git a/ansible/group_vars/all b/ansible/group_vars/all | |
| index dce89d4..c5dd911 100644 | |
| --- a/ansible/group_vars/all | |
| +++ b/ansible/group_vars/all |
| #!/usr/bin/env python | |
| import subprocess | |
| import sys | |
| def get_current_branch(): | |
| cmd = 'git name-rev --name-only HEAD'.split() | |
| return subprocess.check_output(cmd).strip() |
| package main | |
| // Here's a half-assed "jepsen" test for nsq_to_file that exercises its | |
| // management of files in -work-dir and -output-dir in the face of multiple | |
| // processes sharing those directories. | |
| // | |
| // Usage: | |
| // | |
| // 1. Ensure that the versions of nsqd & nsq_to_file you intend to test are on | |
| // your $PATH: |