Skip to content

Instantly share code, notes, and snippets.

View Freeaqingme's full-sized avatar
💭
Hello? Is this thing on?

Dolf Schimmel Freeaqingme

💭
Hello? Is this thing on?
View GitHub Profile
@Freeaqingme
Freeaqingme / gist:7045137
Created October 18, 2013 17:39
/usr/share/lxc/templates/lxc-ubuntu LXC Ubuntu template, with autoconf/SLAAC, mDNS, fixed hostnames and Puppet
--- 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
$default_packages = [ "vim-enhanced", "strace", "wget", "git", "man", "patch", "Pound", "fuse-sshfs"]
package { $default_packages :
ensure => latest,
require => Yum::Managed_yumrepo['epel']
}
<?php
error_reporting(-1);
ini_set('display_errors',1);
if (@$i / 0 ) {
echo 'hoi';
} else {
echo 'doei';
}
Spec:
@@bind::record { $::fqdn:
zone => 'enrise.com',
type => 'A',
target => $::network_ethPublic
}
Result:
define bind9::record($fqdn='', $target='', $type='A', $order=10) {
<?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));
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
class cluster::internal-services::role::icinga (
) {
class { '::icinga':
puppi => true,
enable_idoutils => true,
enable_icingaweb => true,
enable_debian_repo_legacy => false,
manage_repos => true,
@Freeaqingme
Freeaqingme / github.css
Last active December 18, 2015 18:29
github.com user style css Example: http://img801.imageshack.us/img801/346/szxn.png
/**
* 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;
#!/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);
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]/;