This file contains 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
obsidian:10020 puppetserver % cat /tmp/p.rb | |
$:.unshift "/usr/local/lib/ruby/site_ruby/2.1" | |
$:.unshift "/usr/local/lib/ruby/site_ruby/2.1/x86_64-openbsd" | |
$:.unshift "/usr/local/lib/ruby/site_ruby" | |
$:.unshift "/usr/local/lib/ruby/vendor_ruby/2.1" | |
$:.unshift "/usr/local/lib/ruby/vendor_ruby/2.1/x86_64-openbsd" | |
$:.unshift "/usr/local/lib/ruby/vendor_ruby" | |
$:.unshift "/usr/local/lib/ruby/2.1" | |
$:.unshift "/usr/local/lib/ruby/2.1/x86_64" |
This file contains 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 { | |
file { | |
path => [ '/home/jasper/bacula.log' ] | |
type => "bacula" | |
start_position => "beginning" | |
codec => multiline { | |
# Unless a line matches the regular bacula logformat, tag it onto the previous | |
patterns_dir => '/usr/local/logstash/patterns' | |
pattern => "(%{BACULA_INFO})|(%{BACULA_ERR})" | |
negate => true |
This file contains 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
dscl . create /Users/_ntp | |
dscl . create /Users/_ntp UserShell /sbin/nologin | |
# Prevent user from showing up on the login screen | |
dscl . delete /Users/_ntp AuthenticationAuthority | |
# Arbitrarily chosen UID that was free | |
dscl . create /Users/_ntp UniqueID 400 | |
dscl . create /Users/_ntp PrimaryGroupID 400 | |
dscl . create /Users/_ntp RealName "OpenNTPD user" | |
dseditgroup -o create _ntp | |
dscl . append /Groups/_ntp GroupMembership _ntp |
This file contains 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
music_directory "/audio" | |
playlist_directory "/var/mpd/playlists" | |
db_file "/var/mpd/mpd.db" | |
log_file "/var/log//mpd.log" | |
pid_file "/var/mpd/mpd.pid" | |
state_file "/var/mpd/mpdstate" | |
sticker_file "/var/mpd/sticker.sql" | |
user "mpd" |
This file contains 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
<icecast> | |
<location>Docker Container</location> | |
<admin>icemaster@localhost</admin> | |
<limits> | |
<clients>10</clients> | |
<sources>2</sources> | |
<queue-size>524288</queue-size> | |
<client-timeout>30</client-timeout> | |
<header-timeout>15</header-timeout> |
This file contains 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
diff --git a/overrides/sysutils/puppet/Makefile b/overrides/sysutils/puppet/Makefile | |
index e7b2293..8a58925 100644 | |
--- a/overrides/sysutils/puppet/Makefile | |
+++ b/overrides/sysutils/puppet/Makefile | |
@@ -96,6 +96,7 @@ pre-build: | |
--confdir=${PKG_SYSCONFDIR:Q} --rundir=${VARBASE:Q}/run \ | |
--genconfig | \ | |
${SED} -e 's/genconfig = true/# genconfig = false/' \ | |
+ ${SED} -e 's,/var/lib,${VARBASE:Q}/lib,g' \ | |
> examples/puppet.conf |
This file contains 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
/* | |
* compile with: eg++ -std=c++11 fail.cc | |
* fails: | |
* fail.cc: In function 'std::vector<std::basic_string<char> > to_options()': | |
* fail.cc:13:5: error: converting to 'std::tuple<unsigned int, | |
* std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' | |
* from initializer list would use explicit constructor | |
* 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) | |
* [with _U1 = int; _U2 = const char (&)[9]; | |
* <template-parameter-2-3> = void; |
This file contains 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
--- lib/inc/internal/facts/bsd/networking_resolver.hpp.orig Sat Jul 11 14:08:19 2015 | |
+++ lib/inc/internal/facts/bsd/networking_resolver.hpp Sat Jul 11 14:08:23 2015 | |
@@ -32,6 +32,20 @@ namespace facter { namespace facts { namespace bsd { | |
virtual boost::optional<uint64_t> get_link_mtu(std::string const& interface, void* data) const = 0; | |
/** | |
+ * Determines if the given sock address is a link layer address. | |
+ * @param addr The socket address to check. | |
+ * @returns Returns true if the socket address is a link layer address or false if it is not. |
This file contains 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
applet_files: $(TARGET).ino | |
test -d applet || mkdir applet | |
echo '#include "Arduino.h"' > applet/$(TARGET).cpp | |
cat $(TARGET).ino >> applet/$(TARGET).cpp | |
cat $(ARDUINO)/cores/arduino/main.cpp >> applet/$(TARGET).cpp |
This file contains 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
diff --git a/src/clj/clojure/java/browse.clj b/src/clj/clojure/java/browse.clj | |
index d6f710b..3924245 100644 | |
--- a/src/clj/clojure/java/browse.clj | |
+++ b/src/clj/clojure/java/browse.clj | |
@@ -10,14 +10,29 @@ | |
^{:author "Christophe Grand", | |
:doc "Start a web browser from Clojure"} | |
clojure.java.browse | |
+ (:use [clojure.string :only (split)]) | |
(:require [clojure.java.shell :as sh]) |