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
--- tpl.default 2013-10-18 17:05:30.454860448 +0200 | |
+++ files/manifests/basenode/lxc/template_ubuntu 2013-10-18 19:25:10.563448837 +0200 | |
@@ -46,17 +46,19 @@ | |
iface lo inet loopback | |
auto eth0 | |
-iface eth0 inet dhcp | |
+#iface eth0 inet dhcp | |
+iface eth0 inet manual | |
EOF |
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
$default_packages = [ "vim-enhanced", "strace", "wget", "git", "man", "patch", "Pound", "fuse-sshfs"] | |
package { $default_packages : | |
ensure => latest, | |
require => Yum::Managed_yumrepo['epel'] | |
} |
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
<?php | |
error_reporting(-1); | |
ini_set('display_errors',1); | |
if (@$i / 0 ) { | |
echo 'hoi'; | |
} else { | |
echo 'doei'; | |
} |
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
Spec: | |
@@bind::record { $::fqdn: | |
zone => 'enrise.com', | |
type => 'A', | |
target => $::network_ethPublic | |
} | |
Result: | |
define bind9::record($fqdn='', $target='', $type='A', $order=10) { |
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
<?php | |
$obj = (object) array('foo' => 'bar'); | |
var_dump(zend_shm_cache_store('myLittleKey', $obj)); | |
var_dump($res = zend_shm_cache_fetch('myLittleKey')); | |
var_dump(serialize($obj)==serialize($res)); |
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
Error: http://img14.imageshack.us/img14/5259/vwr2.png | |
"It appears as though you do not have permission to view information for any of the services you requested..." | |
But the cgi.cfg file does look correct: | |
root@internal-services02:/usr/lib/cgi-bin/icinga# grep authorized_for_ /etc/icinga/cgi.cfg | |
authorized_for_system_information=icingaadmin | |
authorized_for_configuration_information=icingaadmin | |
authorized_for_full_command_resolution=icingaadmin | |
authorized_for_system_commands=icingaadmin | |
# NOTE: Users in authorized_for_all_hosts are also automatically |
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
class cluster::internal-services::role::icinga ( | |
) { | |
class { '::icinga': | |
puppi => true, | |
enable_idoutils => true, | |
enable_icingaweb => true, | |
enable_debian_repo_legacy => false, | |
manage_repos => 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
/** | |
* Example: http://img801.imageshack.us/img801/346/szxn.png | |
**/ | |
.repository-with-sidebar .repository-sidebar{ | |
float: none !important; | |
overflow: visible !important; | |
width: 100% !important; | |
/*width: 650px !important;*/ | |
margin-bottom: -350px; |
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
#!/usr/bin/perl -w | |
# start-memcached | |
# 2003/2004 - Jay Bonci <jaybonci@debian.org> | |
# This script handles the parsing of the /etc/memcached.conf file | |
# and was originally created for the Debian distribution. | |
# Anyone may use this little script under the same terms as | |
# memcached itself. | |
use POSIX qw(setsid); |
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
if(open $etchandle, $etcfile) | |
{ | |
foreach my $line (<$etchandle>) | |
{ | |
$line ||= ""; | |
$line =~ s/\#.*//g; | |
$line =~ s/\s+$//g; | |
$line =~ s/^\s+//g; | |
next unless $line; | |
next if $line =~ /^\-[dh]/; |