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 | |
# Install script for Latest WordPress by Johnathan Williamson - extended by Don Gilbert | |
# Disclaimer: It might not bloody work | |
# Disclaimer 2: I'm not responsible for any screwups ... :) | |
# DB Variables | |
echo "MySQL Host:" | |
read mysqlhost | |
export mysqlhost |
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 | |
# | |
# MYSQL CONFIG | |
# ============ | |
# <UDF name="db_password" Label="Choose a MySQL Root Password" /> | |
# <UDF name="db_name" Label="MySQL - Database Name" default="" example="Optionally create this database." /> | |
# <UDF name="db_user" Label="MySQL - Username" default="" example="Optionally create this user." /> | |
# <UDF name="db_user_password" Label="MySQL - Password" default="" example="The user password." /> | |
# | |
# OPTIONAL LIBRARIES TO INSTALL |
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 | |
# modified by jfro from http://www.cnysupport.com/index.php/linode-dynamic-dns-ddns-update-script | |
# Uses curl to be compatible with machines that don't have wget by default | |
LINODE_API_KEY=licensekey | |
DOMAIN_ID=domainid | |
RESOURCE_ID=resourceid | |
WAN_IP=`curl -s http://example.com/whatsmyip.php` | |
if [ -f $HOME/.wan_ip.txt ]; 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
################################################################## | |
# /etc/elasticsearch/elasticsearch.yml | |
# | |
# Base configuration for a write heavy cluster | |
# | |
# Cluster / Node Basics | |
cluster.name: logng | |
# Node can have abritrary attributes we can use for routing |
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 section | |
input { | |
# Handles events forwarded from Elgin's rsyslog receptor (DEV) | |
tcp { | |
port => 10514 | |
type => "syslog" | |
tags => "dev" | |
} |
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
--- | |
- hosts: all | |
gather_facts: no | |
sudo: no | |
tasks: | |
- name: run ssh-keyscan to add keys to known_hosts | |
local_action: shell ssh-keyscan {{ ansible_ssh_host }} >> ~/.ssh/known_hosts |
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
function Escape-JSONString($str){ | |
if ($str -eq $null) {return ""} | |
$str = $str.ToString().Replace('"','\"').Replace('\','\\').Replace("`n",'\n').Replace("`r",'\r').Replace("`t",'\t') | |
return $str; | |
} | |
function ConvertTo-JSON($maxDepth = 4,$forceArray = $false) { | |
begin { | |
$data = @() | |
} |
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
description: Admin, all access. | |
context: | |
project: '.*' # all projects | |
for: | |
resource: | |
- allow: '*' # allow read/create all kinds | |
adhoc: | |
- allow: '*' # allow read/running/killing adhoc jobs | |
job: | |
- match: |
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
require "logstash/filters/base" | |
require "logstash/namespace" | |
# | |
# Filter plugin to normalize log levels from various logging frameworks | |
# | |
# The output field (log_level by default) will contain a number between | |
# 100 and 999, inclusive, with higher numbers indicating higher | |
# importance or severity. | |
# |
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 { | |
file { | |
type => "apache" | |
path => ["/var/log/httpd/logstash_access_log"] | |
} | |
file { | |
type => "tomcat" | |
path => [ "/var/log/tomcat6/catalina.out" ] |
OlderNewer