# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
Parameters: {"action"=>"index", "controller"=>"reports"} | |
User Load (0.7ms) SELECT * FROM `users` WHERE (`users`.`id` = 2) | |
SQL (186747.9ms) SELECT count(*) AS count_all FROM `reports` | |
CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 2) | |
Report Load (8872.8ms) SELECT * FROM `reports` ORDER BY reports.created_at DESC LIMIT 0, 20 | |
Host Load (7892.4ms) SELECT * FROM `hosts` WHERE (`hosts`.`id` IN (237,424,248,600,239,294,251,614,340,209,616,232,573,595,574,420,598,301,236)) | |
Domain Load (0.4ms) SELECT * FROM `domains` WHERE (`domains`.`id` = 2) |
<?xml version="1.0"?> | |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> | |
<!-- =============================================================== --> | |
<!-- Configure the Jetty Server --> | |
<!-- --> | |
<!-- Documentation of this file format can be found at: --> | |
<!-- http://docs.codehaus.org/display/JETTY/jetty.xml --> | |
<!-- --> |
.... | |
INFO | jvm 1 | 2012/01/31 18:58:19 | [GC | |
INFO | jvm 1 | 2012/01/31 18:58:20 | [PSYoungGen: 739316K->18718K(755136K)] 3844179K->3123653K(4163008K), 0.0178820 secs] [Times: user=0.28 sys=0.00, real=0.02 secs] | |
INFO | jvm 1 | 2012/01/31 18:58:21 | [GC [PSYoungGen: 742558K->27171K(753024K)] 3847493K->3132202K(4160896K), 0.0211990 secs] [Times: user=0.35 sys=0.00, real=0.02 secs] | |
INFO | jvm 1 | 2012/01/31 18:58:22 | [GC [PSYoungGen: 749475K->21365K(754368K)] 3854506K->3126508K(4162240K), 0.0132120 secs] [Times: user=0.22 sys=0.00, real=0.01 secs] | |
INFO | jvm 1 | 2012/01/31 18:58:23 | [GC | |
INFO | jvm 1 | 2012/01/31 18:58:23 | [PSYoungGen: 743669K->22278K(756096K)] 3848812K->3127533K(4163968K), 0.0214980 secs] [Times: user=0.34 sys=0.00, real=0.02 secs] | |
INFO | jvm 1 | 2012/01/31 18:58:24 | [GC [PSYoungGen: 747334K->30321K(755392K)] 3852589K->3135743K(4163264K), 0.0174970 secs] [Times: user=0.29 sys=0.00, real=0.01 secs] | |
.... |
import os | |
import sys | |
import datetime | |
import time | |
import random | |
import pymongo | |
ACCESS_SAMPLE = '127.0.0.1 - - [29/Apr/2011:18:10:50 -0300] foreman "POST /reports/create?format=yml HTTP/1.1" 200 15 "-" "-" "-" - 0' | |
ERROR_SAMPLE = '[Tue May 03 14:51:56 2011] [error] [client 0.0.0.0] client denied by server configuration: /mnt/puppet/conf/rack' |
{ | |
"Statement": [ | |
{ | |
"Sid": "PackerSecurityGroupAccess", | |
"Action": [ | |
"ec2:CreateSecurityGroup", | |
"ec2:DeleteSecurityGroup", | |
"ec2:DescribeSecurityGroups", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:RevokeSecurityGroupIngress" |
const fs = require('fs'); | |
const Converter = require('./converter.js'); | |
const options = { | |
name: process.argv[3], | |
description: process.argv[4], | |
activate: process.argv[5], | |
}; | |
const converter = new Converter(JSON.parse(fs.readFileSync(process.argv[2])), options); |
This gist is based on the information available at golang/dep, only slightly more terse and annotated with a few notes and links primarily for my own personal benefit. It's public in case this information is helpful to anyone else as well.
I initially advocated Glide for my team and then, more recently, vndr. I've also taken the approach of exerting direct control over what goes into vendor/
in my Dockerfiles, and also work from
isolated GOPATH environments on my system per project to ensure that dependencies are explicitly found under vendor/
.
At the end of the day, vendoring (and committing vendor/
) is about being in control of your dependencies and being able to achieve reproducible builds. While you can achieve this manually, things that are nice to have in a vendoring tool include:
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |