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
FROM nginx:alpine | |
RUN mkdir /app | |
COPY nginx.conf /etc/nginx/nginx.conf.template | |
CMD ["sh", "-c", "envsubst '$UPSTREAMS $CA' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf && exec nginx -g 'daemon off;'"] |
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
{ | |
"webserver": { | |
"access-log-config": "/etc/puppetlabs/puppetserver/request-logging.xml", | |
"client-auth": "want", | |
"ssl-host": "0.0.0.0", | |
"ssl-port": 8140 | |
}, | |
"web-router-service": { | |
// These two should not be modified because the Puppet 3.x agent expects them to |
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
Rules of the ICFP Contest 2013 | |
============================== | |
Prologue | |
~~~~~~~~ | |
Game: I have a program A, and I want you to guess it. | |
Player: Can you tell me what is A(16), A(42) and A(128)? | |
Game: Sure, A(16) = 17, A(42) = 43, and A(128) = 129. |
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
lein test com.puppetlabs.puppetdb.examples | |
lein test com.puppetlabs.puppetdb.examples.reports | |
lein test com.puppetlabs.puppetdb.fixtures | |
lein test com.puppetlabs.puppetdb.repl | |
lein test com.puppetlabs.puppetdb.test.anonymizer |
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
com.puppetlabs.puppetdb.core=> (println (disassemble #(java.util.concurrent.ArrayBlockingQueue. 2.0))) | |
// Compiled from form-init8715141889517361277.clj (version 1.5 : 49.0, super bit) | |
public final class com.puppetlabs.puppetdb.core$eval5233$fn__5234 extends clojure.lang.AFunction { | |
// Field descriptor #7 Ljava/lang/Object; | |
public static final java.lang.Object const__0; | |
// Method descriptor #9 ()V | |
// Stack: 2, Locals: 0 | |
public static {}; |
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
#!/bin/bash | |
for f in $*; do | |
echo $f | |
emacs -batch "$f" -l ~/.emacs -l ~/local/bin/emacs-format-file -f emacs-format-function | |
done |
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
puppet/lib/puppet/indirector/facts/puppetdb.rb | 3 ++- | |
puppet/spec/unit/indirector/facts/puppetdb_spec.rb | 3 ++- | |
2 files changed, 4 insertions(+), 2 deletions(-) | |
diff --git a/puppet/lib/puppet/indirector/facts/puppetdb.rb b/puppet/lib/puppet/indirector/facts/puppetdb.rb | |
index e4e08e4..da36497 100644 | |
--- a/puppet/lib/puppet/indirector/facts/puppetdb.rb | |
+++ b/puppet/lib/puppet/indirector/facts/puppetdb.rb | |
@@ -10,8 +10,9 @@ class Puppet::Node::Facts::Puppetdb < Puppet::Indirector::REST | |
facts = request.instance.dup |
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)) |
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
node default { | |
class { 'container': } | |
-> | |
notify { 'Last': } | |
} | |
class container { | |
notify { 'First': } | |
include includedclass | |
} |
NewerOlder