Skip to content

Instantly share code, notes, and snippets.

# User
exec { "apt-update":
command => "/usr/bin/apt-get update"
}
Exec["apt-update"] -> Package <| |>
file { "/home/vagrant/.bash_profile":
ensure => link,
@Before
public final void setupTest() throws IOException {
this.tempFile = File.createTempFile("test", null);
}
@After
public final void teardownTest() throws IOException {
this.tempFile.delete();
}
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.StringWebResponse;
import com.gargoylesoftware.htmlunit.html.HTMLParser;
import com.gargoylesoftware.htmlunit.html.DomElement;
import com.gargoylesoftware.htmlunit.html.DomAttr;
import java.net.URL;
import java.io.IOException;
import java.net.MalformedURLException;
 In file included from src/concurrency/ThreadManager.cpp:20:
src/concurrency/ThreadManager.h:24:10: fatal error: 'tr1/functional' file not
      found
#include <tr1/functional>
         ^
1 error generated.
make[4]: *** [ThreadManager.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
$ brew ls nutch
/usr/local/Cellar/nutch/2.2.1/bin/nutch
/usr/local/Cellar/nutch/2.2.1/libexec/deploy/ (3 files)
/usr/local/Cellar/nutch/2.2.1/libexec/local/ (235 files)
require 'formula'
class Nutch < Formula
homepage 'http://nutch.apache.org/'
url 'http://mirror.reverse.net/pub/apache/nutch/2.2.1/apache-nutch-2.2.1-src.tar.gz'
sha1 'c5d5d535a87d518aad41e89047c1eeb4331b74d2'
def install
system "ant runtime"
prefix.install Dir['runtime/']