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
| --- 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 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
| /* | |
| * 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 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
| 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 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
| <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 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
| 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 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
| 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 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 { | |
| 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 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
| 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 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: Test_Known_Hosts | |
| Provides unit tests and examples for the <Known_Hosts> lens. | |
| *) | |
| module Test_Known_Hosts = | |
| (* Test: Known_Hosts.lns | |
| Simple get test *) | |
| test Known_Hosts.lns get "# A comment |
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
| /* | |
| * thread #1: tid = 0x2e1aec, 0x00000001167611ac $__lldb_expr29`Swift._NativeDictionaryStorage.fromArray <A : Swift.Hashable, B>(Swift._NativeDictionaryStorage<A, B>.Type)(Swift.Array<(A, B)>) -> Swift._NativeDictionaryStorage<A, B> + 2284, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) | |
| * frame #0: 0x00000001167611ac $__lldb_expr29`Swift._NativeDictionaryStorage.fromArray <A : Swift.Hashable, B>(Swift._NativeDictionaryStorage<A, B>.Type)(Swift.Array<(A, B)>) -> Swift._NativeDictionaryStorage<A, B> + 2284 | |
| frame #1: 0x000000011675de35 $__lldb_expr29`Swift.Dictionary.convertFromDictionaryLiteral <A : Swift.Hashable, B>(Swift.Dictionary<A, B>.Type)(Swift.Array<(A, B)>...) -> Swift.Dictionary<A, B> + 69 | |
| frame #2: 0x00000001167569b3 $__lldb_expr29`top_level_code + 2483 at playground29.swift:10 | |
| frame #3: 0x0000000116756cf1 $__lldb_expr29`main + 49 at <EXPR>:0 | |
| frame #4: 0x000000010a7ed510 MyPlayground`get_field_types__XCPAppDelegate + 160 | |