Add the following line to you 'Vagrantfile':
config.vm.provision :shell do |s|
s.path = "preinstall.sh"
s.args = "3.1.1-1puppetlabs1"
using System; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
// As opposed to magic validation libraries that rely on reflection and attributes, | |
// applicative validation is pure, total, composable, type-safe, works with immutable types, and it's easy to implement. | |
public abstract class Result<T> { | |
private Result() { } |
Exception in filterworker {"exception"=>#<NoMethodError: undefined method `[]=' for nil:NilClass>, "backtrace"=>["file:/opt/logstash/logstash.jar!/logstash/event.rb:135:in `[]='", "org/jruby/RubyProc.java:255:in `call'", "(eval):9:in `exec'", "org/jruby/RubyProc.java:255:in `call'", "file:/opt/logstash/logstash.jar!/logstash/util/fieldreference.rb:44:in `exec'", "file:/opt/logstash/logstash.jar!/logstash/event.rb:134:in `[]='", "file:/opt/logstash/logstash.jar!/logstash/filters/mutate.rb:234:in `rename'", "org/jruby/RubyHash.java:1332:in `each'", "file:/opt/logstash/logstash.jar!/logstash/filters/mutate.rb:232:in `rename'", "file:/opt/logstash/logstash.jar!/logstash/filters/mutate.rb:205:in `filter'", "(eval):127:in `initialize'", "org/jruby/RubyProc.java:255:in `call'", "file:/opt/logstash/logstash.jar!/logstash/pipeline.rb:243:in `filter'", "file:/opt/logstash/logstash.jar!/logstash/pipeline.rb:191:in `filterworker'", "file:/opt/logstash/logstash.jar!/logstash/pipeline.rb:134:in `start_filters'"], :level=>: |
#r "WindowsBase.dll" | |
#r "PresentationFramework.dll" | |
#r "PresentationCore.dll" | |
#r "System.Xaml.dll" | |
#r "Tsunami.IDEDesktop.exe" | |
#r "System.Xml.Linq" | |
#r "cache:http://tsunami.io/assemblies/FunScript.dll" | |
#r "cache:http://tsunami.io/assemblies/FunScript.TypeScript.dll" | |
#r "cache:http://tsunami.io/assemblies/FunScript.TypeScript.Interop.dll" | |
#r "ActiproSoftware.Docking.Wpf.dll" |
let transpose3 = function | |
| [||] -> [||] | |
| a -> | |
Array.maxBy Array.length a | |
|> Array.Parallel.mapi (fun i _ -> | |
Array.filter (fun js -> Array.length js > i) a | |
|> Array.map (fun sub -> sub.[i]) | |
) |
var mouseDropS = $('#drop').onAsObservable('drop') | |
var uploadsS = mouseDropS.flatMap(function(e) { | |
var fileList = e.originalEvent.dataTransfer.files | |
var files = range(fileList.length).map(function(i) { return fileList[i] }) | |
return Rx.Observable.fromArray(files.map(function(file) { | |
var subject = new Rx.ReplaySubject(1) | |
var reader = new FileReader() |
{-# Language ExistentialQuantification, GADTs #-} | |
module Control.Process where | |
import Data.Monoid | |
import Prelude hiding (zip, zipWith) | |
import Control.Applicative | |
import System.IO | |
data Process f a = Halt |
param( | |
[parameter(mandatory=$true, valuefrompipeline=$true)] | |
$TargetHost, | |
[switch] $force | |
) | |
begin { | |
$packages = @( ` | |
@{ Name = "rewrite.msi"; Url = "http://download.microsoft.com/download/6/7/D/67D80164-7DD0-48AF-86E3-DE7A182D6815/rewrite_2.0_rtw_x64.msi" }, ` | |
@{ Name = "webpi.msi"; Url = "http://download.microsoft.com/download/B/0/0/B00FEF21-79DE-48B0-8731-F9CFE70CE613/WebPlatformInstaller_3_10_amd64_en-US.msi" }, ` | |
@{ Name = "webfarm.msi"; Url = "http://download.microsoft.com/download/3/4/1/3415F3F9-5698-44FE-A072-D4AF09728390/webfarm_amd64_en-US.msi" }, ` |
/* | |
* This work (Modern Encryption of a String C#, by James Tuley), | |
* identified by James Tuley, is free of known copyright restrictions. | |
* https://gist.github.com/4336842 | |
* http://creativecommons.org/publicdomain/mark/1.0/ | |
*/ | |
using System; | |
using System.IO; | |
using System.Text; |
input { | |
tcp { | |
type => "syslog" | |
host => "127.0.0.1" | |
port => 3514 | |
} | |
tcp { | |
type => "eventlog" | |
host => "10.1.1.2" | |
port => 3515 |