Skip to content

Instantly share code, notes, and snippets.

** [out :: cache01-devfe.fstrz.net] [2014-01-31T13:06:28+00:00] INFO: Overriding duplicate definition apache2_enable_module, new definition found in /var/chef/cache/git_repos/master-chef_links/cookbooks/apache2/definitions/apache2_enable_module.rb
** [out :: cache01-devfe.fstrz.net] [2014-01-31T13:06:28+00:00] INFO: Overriding duplicate definition apache2_vhost, new definition found in /var/chef/cache/git_repos/master-chef_links/cookbooks/apache2/definitions/apache2_vhost.rb
** [out :: cache01-devfe.fstrz.net] [2014-01-31T13:06:28+00:00] INFO: Overriding duplicate definition git_clone, new definition found in /var/chef/cache/git_repos/master-chef_links/cookbooks/git/definitions/git_clone.rb
** [out :: cache01-devfe.fstrz.net]
** [out :: cache01-devfe.fstrz.net] ================================================================================
** [out :: cache01-devfe.fstrz.net] Recipe Compile Error in /tmp/chef_repo/cookbooks/fasterize/recipes/logstash.rb
** [out :: cache01-devfe.fstrz.net] ==============
#!/bin/sh
branch=$1
into=$2
[ $# -lt 1 ] && branch=$(git currentbranch)
[ $# -lt 2 ] && into='master'
[ "$branch" = "$into" ] && echo "Branch to merge and destination branch must be different: $branch" && exit 1
-> % cap cache01-devfe chef
Creating topology cache directory /var/folders/v9/v9nD7A0PFbW3ir2Qf5ZYKk+++TQ/-Tmp-/topology_provider_cache20140225-9752-44iewd
Reusing topology cache directory /var/folders/v9/v9nD7A0PFbW3ir2Qf5ZYKk+++TQ/-Tmp-/topology_provider_cache20140225-9752-44iewd
triggering load callbacks
* 18:59:13 == Currently executing `topology:load_topology'
* Using zookeeper servers : 192.168.56.11:2181
* 18:59:14 == Currently executing `cache01-devfe'
* 18:59:14 == Currently executing `chef'
* 18:59:14 == Currently executing `chef:chef'
* executing "sudo sh -c 'mkdir -p /etc/chef'"
@abarre
abarre / gist:2f53b860ac205ac87802
Created June 6, 2014 09:40
IPAD scroll stop javascript
<!doctype html>
<html>
<head>
<title>lazyload - 03/30/2012</title>
<link rel=stylesheet href=./demo.css type=text/css />
<script>/*! lazyload v0.8.3 fasterize.com | github.com/fasterize/lazyload#licence */
/*
lazyload.js: Image lazy loading
@abarre
abarre / actuellement
Last active August 29, 2015 14:15
le nom de domaine www.emilie-wilhelm.com ne résout pas.
-> % dig www.emilie-wilhelm.com
; <<>> DiG 9.8.3-P1 <<>> www.emilie-wilhelm.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31886
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;www.emilie-wilhelm.com. IN A
#!/usr/bin/env node
/**
* Copyright (c) 2015 Trent Mick. All rights reserved.
* Copyright (c) 2015 Joyent Inc. All rights reserved.
*
* bunyan -- filter and pretty-print Bunyan log files (line-delimited JSON)
*
* See <https://github.com/trentm/node-bunyan>.
*
* -*- mode: js -*-
wrk -c 5 -d 10 -t 2 http://127.0.0.1:8000
With node v0.8.25 => 1637 req/sec
With node v0.10.22 => 1218 req/sec
With node v0.11.9 => 1443 req/sec
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
for plugin in cleanupAttrs removeDoctype removeXMLProcInst removeComments removeMetadata removeTitle removeDesc removeUselessDefs removeEditorsNSData removeEmptyAttrs removeHiddenElems removeEmptyText removeEmptyContainers removeViewBox cleanUpEnableBackground minifyStyles convertStyleToAttrs convertColors convertPathData convertTransform removeUnknownsAndDefaults removeNonInheritableGroupAttrs removeUselessStrokeAndFill removeUnusedNS cleanupIDs cleanupNumericValues cleanupListOfValues moveElemsAttrsToGroup moveGroupAttrsToElems collapseGroups removeRasterImages mergePaths convertShapeToPath sortAttrs transformsWithOnePath removeDimensions removeAttrs addClassesToSVGElement removeStyleElement
do
svgo --disable=$plugin ok.svg ok.min-$plugin.svg
done
#!/bin/bash
# This script requires ImageMagick and Ghostscript
mkdir -p comparison
cd comparison
rm *
http --download "$1"