Skip to content

Instantly share code, notes, and snippets.

---
driver:
name: docker_cli
socket: "<%= ENV['DOCKER_HOST'] %>"
image: XXXXX/amazonlinux-14kitchen:201709.1
pre_create_command: "../../bin/kitchen-docker-preamble.sh"
privileged: false
dns:
- 1.1.1.1
- 8.8.8.8
$ kitchen diagnose --all
---
timestamp: 2018-11-16 23:17:37 UTC
kitchen_version: 1.23.2
plugins:
driver:
DockerCli:
class: Kitchen::Driver::DockerCli
version:
api_version:
$ kitchen diagnose --no-instances --loader
---
timestamp: 2018-11-16 23:13:51 UTC
kitchen_version: 1.23.2
loader:
process_erb: true
process_local: true
process_global: true
global_config:
project_config:
$ aws ec2 describe-volumes --volume-ids vol-0e6a71a5340a91429 vol-0336bbd16f71969e6 vol-08c469ea953c8471d vol-0c5bbd5ed2d4fbcc9
{
"Volumes": [
{
"AvailabilityZone": "us-west-2b",
"Attachments": [
{
"AttachTime": "2018-07-23T18:59:50.000Z",
"InstanceId": "i-0ff82a927e9c8f50b",
"VolumeId": "vol-0e6a71a5340a91429",
@benmullin333
benmullin333 / gist:bbe195dce4002cde47a7ac245206b1b5
Created March 27, 2017 23:27
packer build output without `set-e` full output shows tar failure (at 2017/03/27 23:18:58 ui: fe: tar: This does not look like a tar archive) that was masked in https://gist.github.com/benmullin333/fd84c941f1a81f0e3048c955e2f1585a
$ PACKER_LOG=1 packer build jenkins-fe-85-packer.json
2017/03/27 23:12:58 [INFO] Packer version: 0.10.2
2017/03/27 23:12:58 Packer Target OS/Arch: linux amd64
2017/03/27 23:12:58 Built with Go Version: go1.7.1
2017/03/27 23:12:58 Detected home directory from env var: /var/lib/jenkins
2017/03/27 23:12:58 Using internal plugin for parallels-pvm
2017/03/27 23:12:58 Using internal plugin for amazon-chroot
2017/03/27 23:12:58 Using internal plugin for file
2017/03/27 23:12:58 Using internal plugin for openstack
2017/03/27 23:12:58 Using internal plugin for virtualbox-ovf
@benmullin333
benmullin333 / gist:fd84c941f1a81f0e3048c955e2f1585a
Created March 27, 2017 23:25
packer build output with `set -e` notice truncation of script provisioning output before line `2017/03/27 22:57:21 ui: ==> fe: Terminating the source AWS instance...`
$ PACKER_LOG=1 packer build jenkins-fe-85-packer.json
2017/03/27 22:50:45 [INFO] Packer version: 0.10.2
2017/03/27 22:50:45 Packer Target OS/Arch: linux amd64
2017/03/27 22:50:45 Built with Go Version: go1.7.1
2017/03/27 22:50:45 Detected home directory from env var: /var/lib/jenkins
2017/03/27 22:50:45 Using internal plugin for vmware-vmx
2017/03/27 22:50:45 Using internal plugin for azure-arm
2017/03/27 22:50:45 Using internal plugin for digitalocean
2017/03/27 22:50:45 Using internal plugin for virtualbox-ovf
2017/03/27 22:50:45 Using internal plugin for vmware-iso
benmullin$ packer build machine_chef.json
docker output will be in this color.
==> docker: Creating a temporary directory for sharing data...
==> docker: Pulling Docker image: ubuntu
docker: Using default tag: latest
docker: latest: Pulling from library/ubuntu
docker: 6d28225f8d96: Already exists
docker: 166102ec41af: Already exists
docker: d09bfba2bd6a: Already exists

Keybase is hiring: engineers! Consider tracking kpoulsen torgo nitot nikolajsonne codinghorror

CSV.foreach("/home/deploy/all_failed_association_tries.csv") do |row|
request = JSON.try(:parse, row.first).inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
product = Product.all.detect{ |p| p.game_id == request[:game_id].to_i && p.client_id == request[:client_id].to_i}
user = User.find_by_id(request[:user_id].to_i)
Ztrack.with_info(:request_product => product, :request_user => user) { Ztrack.associate(request) } unless user && product
end