Skip to content

Instantly share code, notes, and snippets.

View grimradical's full-sized avatar

Deepak Giridharagopal grimradical

View GitHub Profile
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
#!/bin/bash
for f in $*; do
echo $f
emacs -batch "$f" -l ~/.emacs -l ~/local/bin/emacs-format-file -f emacs-format-function
done
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 {};
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
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.
{
"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
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;'"]