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 ipa { | |
package { [ 'ipa-server', 'bind', 'bind-dyndb-ldap' ]: | |
ensure => 'installed', | |
} | |
augeas { 'nis domain name': | |
context => "/files/etc/sysconfig/network", | |
changes => [ | |
"set NISDOMAIN example.com", |
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/env bash | |
set -e | |
# Set default values | |
: ${GENTOO_ARCH:=amd64} | |
: ${GENTOO_PROFILE:=""} | |
: ${GENTOO_PORTAGE:=no} | |
# Check for Gentoo profile, if there if a profile, add a "-" | |
if [ "${GENTOO_PROFILE}x" != "x" ]; then |
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
input { | |
tcp { | |
port => 19532 | |
type => journald | |
} | |
} | |
filter { | |
if [type] == "journald" { | |
multiline { |
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
#!/bin/sh | |
# upgrade_unifi.sh | |
# Easy UniFi Controller Upgrade Script for Unix/Linux Systems | |
# by Steve Jenkins (stevejenkins.com) | |
# Version 2.0 | |
# Last Updated July 2, 2016 | |
# REQUIREMENTS | |
# 1) Assumes you already have any version of UniFi Controller installed |
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
# /etc/sysconfig/network-scripts/ifcfg-br0 | |
UUID=1d0ce809-703f-452b-910a-50267d8da44f | |
TYPE=Bridge | |
NM_CONTROLLED=yes | |
BOOTPROTO=none | |
NAME=br0 | |
DEVICE=br0 | |
ONBOOT=yes | |
TYPE=Ethernet | |
STP=no |
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/env python3 | |
# Brian 'redbeard' Harrington | |
# License: GPLv3 | |
# For my presentations, I'm a huge fan of visual consistency and attribution | |
# This strips ugliness from assets from the noun projevct and outputs the things | |
# i need to attribute for my slides | |
` | |
import pathlib | |
import sys |
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
#usage "en: <b>Calculate the price of a dual-layer PCB if you order them at OSH Park.</b>" | |
"<p>Usage: run oshprice</p>" | |
"<p>Author: <author>Arno Moonen <info@arnom.nl></author><br />" | |
"Version: <em>201405042026</em></p>" | |
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED | |
void main() { | |
if(!board) { | |
// No board |
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
#!/bin/bash | |
# hubot | |
# chkconfig: 345 20 80 | |
# description: hubot | |
# processname: hubot | |
# This script assumes you have a user called "hubot" on your system and that hubot is installed in /opt/hubot | |
# | |
# Fore more info on this craziness - | |
# http://thejacklawson.com/how-to-hubot/ |
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
# Set the following values before any processing occurs: | |
# RS (record separator) to an empty line | |
# FS (field separator) to a newline | |
# OFS (output field separator) to a comma | |
BEGIN { RS = "" ; FS = "\n" ; OFS=","} | |
{ for (i=1;i<=NF;i++) { | |
# Add a line for each field to be extracted, replacing the field name in | |
# all three spots: | |
if ($i ~ "^cn: ") { cn=gensub("^cn: ","","g",$i) } | |
if ($i ~ "^title: ") { title=gensub("^title: ","","g",$i) } |
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/python | |
# | |
# Copyright 2017 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |