Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
from flask import Flask, make_response, request
from sqlalchemy import create_engine
app = Flask(__name__)
engine = create_engine('postgresql://eventcaptureuser:postgres@localhost/event',
pool_size=100, max_overflow=0)
@app.route("/capture", methods=['POST'])
def capture():
node 'render.local' {
require core
include pdftoolbox
include tet
include nginx
include uwsgi
include sensu
}
Facter.add("is_vagrant") do
setcode do
vagrant = false
if File.exist? "/home/vagrant"
vagrant = true
end
vagrant
end
end
defmodule ElxWebserver do
use Foo
use Foo.Bar
def indentation_screwed()
end
iex(1)> x = [1,2,3]
[1, 2, 3]
iex(2)> x = [4,5,6]
[4, 5, 6]
iex(3)> ^x = [1,2,3]
** (MatchError) no match of right hand side value: [1, 2, 3]
--
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
--with-cc-opt='-g
-O2
-fstack-protector
--param=ssp-buffer-size=4
-Wformat
-Wformat-security
-Werror=format-security
-D_FORTIFY_SOURCE=2'
--with-ld-opt='-Wl,-Bsymbolic-functions
-Wl,-z,relro'
method
key1: val1
key2: val2
, arg2
// Generated by CoffeeScript 1.6.3
(function() {
method({
key1: val1,
key2: val2
}, arg2);
}).call(this);
There are errors in the configuration of this machine. Please fix
the following errors and try again:
VagrantPlugins::Puppet::Config::PuppetServer:
* The following settings shouldn't exist: client_cert_path, client_private_key_path