This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file { | |
"/foo": ensure => directory; | |
"/foo/bar": ensure => directory; | |
"/foo/bar/baz": ensure => directory; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%self total self wait child calls name | |
8.35 479.84 327.57 0.00 152.27 29961 Array#reject! (ruby_runtime:0} | |
3.88 152.28 152.28 0.00 0.00 247374417 Kernel#equal? (ruby_runtime:0} | |
1.45 57.19 56.97 0.00 0.22 3365 Kernel#` (ruby_runtime:0} | |
0.95 2163.20 37.07 0.00 2126.13 4540301 Array#each-1 (ruby_runtime:0} | |
0.88 1473.67 34.40 0.00 1439.27 4079911 Puppet::SimpleGraph#walk-1 (/usr/lib/ruby/site_ruby/1.8/puppet/simple_graph.rb:262} | |
0.87 82.29 34.24 0.00 48.05 4085206 Puppet::SimpleGraph::VertexWrapper#adjacent (/usr/lib/ruby/site_ruby/1.8/puppet/simple_graph.rb:27} | |
0.66 25.75 25.75 0.00 0.00 1214259 IO#read (ruby_runtime:0} | |
0.61 32.01 23.74 0.00 8.27 22833424 Hash#[] (ruby_runtime:0} | |
0.52 20.36 20.36 0.00 0.00 4104513 Hash#keys (ruby_runtime:0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
import json | |
apps = ["account", "offer", "publisher", "transaction", "advertiser"] | |
skip = ["contenttypes.contenttype", "offer.vouchercodesequence"] | |
d = json.load(open(sys.argv[1])) | |
converted = [] | |
for o in d: | |
if "model" in o: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( •_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
explain analyze select results.* from (SELECT certname_catalogs.certname, catalog_resources.resource, catalog_resources.type, catalog_resources.title,catalog_resources.tags, catalog_resources.exported, catalog_resources.sourcefile, catalog_resources.sourceline, rp.name, rp.value FROM catalog_resources JOIN certname_catalogs USING(catalog) LEFT OUTER JOIN resource_params rp USING(resource) INNER JOIN certnames ON certname_catalogs.certname = certnames.name WHERE (catalog_resources.type = 'Sshkey') AND (catalog_resources.exported = true) AND (certnames.deactivated IS NULL) AND (NOT ((certname_catalogs.certname = 'any node name here'))) AND (catalog_resources.resource IN (SELECT rp.resource FROM resource_params rp WHERE rp.name = 'type' AND rp.value = '"rsa"'))) results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Quicksilver for emacs...sort of | |
(ido-mode t) | |
(require 'helm-git) | |
(if (eq system-type 'darwin) | |
;; Set the helm "locate" command to use spotlight, which is so much better | |
(setq helm-c-locate-command "mdfind -name %s")) | |
;; Monkey-patched version of helm-c-source-git-files. The stock one doesn't | |
;; have good enough error handling (it'll fail when invoked on a directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepak at bebop in ~/code/puppet/lib/puppet/provider on master u= using ruby-1.9.3-p194@dujour | |
$ for i in $(find . -type d -depth 1); do echo -e "$i\t$(git log --pretty=oneline $i | wc -l)"; done | |
./augeas 80 | |
./computer 5 | |
./confine 14 | |
./cron 41 | |
./exec 16 | |
./file 24 | |
./group 58 | |
./host 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
class { 'container': } | |
-> | |
notify { 'Last': } | |
} | |
class container { | |
notify { 'First': } | |
include includedclass | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user> (parse-string (slurp "/Users/deepak/Desktop/good.json" :encoding "ISO-8859-1")) | |
{"data" "ÿ"} | |
user> (parse-string (slurp "/Users/deepak/Desktop/bad.json" :encoding "ISO-8859-1")) | |
{"data" "ÃÃ"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/com/puppetlabs/jetty.clj b/src/com/puppetlabs/jetty.clj | |
index 863467d..bbc47df 100644 | |
--- a/src/com/puppetlabs/jetty.clj | |
+++ b/src/com/puppetlabs/jetty.clj | |
@@ -2,6 +2,7 @@ | |
;; | |
(ns com.puppetlabs.jetty | |
(:import (org.eclipse.jetty.server Server) | |
+ (org.eclipse.jetty.server.handler GzipHandler) | |
(org.eclipse.jetty.server.nio SelectChannelConnector)) |
OlderNewer