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
#!/bin/env bash | |
# | |
# Parallel recursive RAW to JPEG + meta converter | |
# | |
# Output into relative JPEG directory | |
# | |
# Requires: dcraw, cjpeg, exiv2 | |
# any argument means verbose... | |
if [ ${#} -ne 0 ]; then |
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
[Unit] | |
Description=/etc/rc.local Compatibility | |
DefaultDependencies=false | |
ConditionFileIsExecutable=/etc/rc.local | |
After=multi-user.target | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/rc.local | |
TimeoutSec=0 |
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
class profile::fstab { | |
define fstab::mount($options) { | |
$mount = $title | |
exec { "fstab_remount_${mount}": | |
command => "/bin/env mount -o remount ${title}", | |
refreshonly => 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
#!/usr/bin/env perl | |
# Recurse tree for files, scrubbing lines based on pattern list | |
# Copyright: 2017 Jeffrey Clark <[email protected]> | |
# License: GNU GPL v3+ | |
use strict; | |
use warnings; | |
no if $] >= 5.017011, warnings => 'experimental::smartmatch'; |
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
file { "puppet-ca-subjectaltname-patch": | |
path => "${::rubysitedir}/puppet/vendor/load_ca_hack.rb", | |
mode => '0644', | |
source => "puppet:///files/puppet/load_ca_hack.rb", | |
notify => Service[puppetmaster], | |
} |
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
@version:3.6 | |
@include "scl.conf" | |
options { | |
flush-timeout(2000); | |
chain-hostnames(no); | |
use-dns(yes); | |
use-fqdn(no); | |
create-dirs(yes); | |
keep-hostname(yes); |
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
#!/bin/bash | |
# Copy or link this script to /etc/libvirt/hooks/{network,qemu,daemon,lxc} | |
TYPE=$(basename $0) | |
HOOKS_PATH="/etc/libvirt/hooks.d/${TYPE}/${1}" | |
[ ! -e "${HOOKS_PATH}" ] && exit 0 | |
if [ -x "${HOOKS_PATH}/${2}/${3}" ] ; then |
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
# Fact: nic { speed, state, duplex, ... } | |
# | |
# Copyright: Jeffrey Clark | |
# License: GPLv3 | |
require 'pathname' | |
nic = Hash.new | |
ifaces = Facter.value(:interfaces) |
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
#!/usr/bin/env python2 | |
# | |
# lxc.hook.pre-start | |
# | |
# remounts proxmox container mounts with noatime for performance | |
# | |
# copy this file to /usr/share/lxc/hooks/lxc-proxmox-noatime | |
# create /usr/share/lxc/config/common.conf.d/99-mount-noatime.conf | |
# with contents: lxc.hook.pre-mount /usr/share/lxc/hooks/lxc-proxmox-noatime |
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
%if 0%{?fedora} > 17 || 0%{?rhel} > 6 | |
%global systemd_support 1 | |
%else | |
%global systemd_support 0 | |
%endif | |
Summary: A modern replacement for NSCA | |
Name: nsca-ng | |
Version: 1.6 | |
Release: 1%{?dist} |