Skip to content

Instantly share code, notes, and snippets.

@sts
sts / hp-health.init
Created November 3, 2016 13:18
hp-health init script
#!/bin/bash
#
# © Copyright 2015 Hewlett Packard Enterprise Development LP.
#
# See "man chkconfig" for information on next two lines (Red Hat only)
# chkconfig: 2345 91 2
# description: hp System Health Monitor and Command line Utility Package.
#
#
# Following lines are in conformance with LSB 1.2 spec
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
@sts
sts / mrped
Created December 3, 2013 08:29
Check_MK use /etc/check_mk/mrpe.d instead of /etc/check_mk/mrpe.conf
#!/bin/bash
# MK's Remote Plugin Executor NG ;-)
#
# Workaround for check_mks inability to use scripts from a mrpe.d directory
# http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-February/008646.html
#
# Make sure mrpe.cfg doesn't exist, or you will end up with two <<<mrpe>>>
# output sections.
#
@sts
sts / plugin.pp
Created December 2, 2013 18:55
checkmk::plugin
# Definition: checkmk::plugin
#
# Install a check_mk agent plugin on machine into the directroy:
# /usr/lib/check-mk-agent/plugins/
#
# Usage:
#
# The following will source the check-mk-agent plugin called 'puppet' from the
# puppet module puppet: puppet:///modules/puppet/checkmk/agent.plugin
#
@sts
sts / ipxe-bootstrap.txt
Last active December 26, 2015 16:59
ipxe-scripts
#!ipxe
chain http://boot.ono.at/ipxe?uuid=\${uuid}&mac=\${mac}&busid=\${busid}&ip=\${ip}&hostname=\${hostname:uristring}&serial=\${serial:uristring}&asset=\${asset:uristring}&manufacturer=\${manufacturer:uristring}&product=\${product:uristring}
@sts
sts / classes.pp
Created October 14, 2013 19:27
Puppet: Is there a solution to avoid dependency on line #33?
class apt {
include apt::update
anchor { 'apt::update':
require => Class['apt::update']
}
}
class apt::update {
exec { 'aptitude_update':