This file contains hidden or 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
class projects::queuesystem::butts( | |
$jarbase = 'https://logstash.objects.dreamhost.com/release', | |
$jarfile = 'logstash-1.1.13-monolithic.jar', | |
$jarpath = "/tmp/$jarfile", | |
$jdk = 'openjdk-7-jre-headless', | |
$installpath = '/opt/logstash' | |
) { | |
Exec { path => '/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin'} |
This file contains hidden or 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
filter { | |
grok { | |
type => 'apache-error' | |
pattern => "\[%{DATA:timestamp}\] \[%{WORD:loglevel}\] \[%{WORD:originator} %{IP:clientip}\] %{GREEDYDATA:errmsg}" | |
add_tag => "apache" | |
} | |
date { | |
type => "apache-error" | |
timestamp => "%{DAY} %{MONTH} %{MONTHDAY} %{TIME} %{YEAR}" | |
} |
This file contains hidden or 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
$data = []; | |
$data['first_name'] = $this->params()->fromPost('first_name', ''); | |
$data['last_name'] = $this->params()->fromPost('last_name', ''); | |
$form = $this->getUserService()->getUserForm(); | |
$form->setHydrator(new \Zend\Stdlib\Hydrator\ClassMethods); | |
$form->bind($user); | |
$form->setData($data); | |
\Zend\Debug\Debug::dump($form->get('user_auth_email')->getValue()); |
This file contains hidden or 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
input { | |
amqp { | |
auto_delete => false | |
durable => true | |
exchange => "router" | |
exclusive => false | |
format => "json" | |
host => "loggingqueue.dev" | |
passive => false | |
password => "pword" |
This file contains hidden or 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
try { | |
List<IdmDataItem> additionalRequestItems = this.request.getRequestData().getAdditionalData().getItem(); | |
} catch(NullPointerException e) { | |
List<IdmDataItem> additionalRequestItems = new List<IdmDataItem>(); | |
} |
This file contains hidden or 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
if (e instanceof KeyboardEvent) { | |
if (e.keyCode != keys.ENTER) { | |
return; | |
} | |
} |
This file contains hidden or 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
{ | |
"builders": [{ | |
"type" : "virtualbox", | |
"iso_url" : "http://releases.ubuntu.com/12.10/ubuntu-12.10-server-amd64.iso", | |
"iso_checksum" : "4bd3270bde86d7e4e017e3847a4af485", | |
"iso_checksum_type" : "md5", | |
"guest_additions_attach" : true, | |
"guest_os_type" : "Ubuntu_64", | |
"ssh_username" : "packer", | |
"ssh_wait_timeout" : "30s", |
This file contains hidden or 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
{ | |
"builders": [{ | |
"type" : "virtualbox", | |
"iso_url" : "http://releases.ubuntu.com/12.10/ubuntu-12.10-server-amd64.iso", | |
"iso_checksum" : "4bd3270bde86d7e4e017e3847a4af485", | |
"iso_checksum_type" : "md5", | |
"disk_size" : 80000, | |
"guest_os_type" : "Ubuntu_64", | |
"http_directory" : "preseed", | |
"ssh_username" : "vagrant", |
This file contains hidden or 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
module FlashMessageHelper | |
def flash_message | |
html = "" | |
flash.each do |key, msg| | |
skey = key | |
if key == "notice" | |
skey = 'info' | |
end | |
html << (content_tag :div, msg, :class => "flash #{key} alert alert-#{skey}") |
This file contains hidden or 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
class something ( | |
env => 'dev' | |
) { | |
include 'something::params' | |
} |