How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
# Default SSL material locations | |
ca-base /etc/ssl/certs |
#!/bin/bash | |
# Install | |
# This script need a API key from TinyPNG. See this page: https://tinypng.com/developers | |
# It also need jq library, which can be install thanks to: `brew install jq` | |
# Usage | |
# cd to your folder. This script will compress all PNG or JPG files recursively. | |
API_KEY="CHANGE_ME" |
yum install zlib zlib-devel pam pam-devel openssl openssl-devel gcc patch make | |
cd /usr/src | |
wget http://www.thirdechelon.org/stuff/openssh-6.6p1-hpnssh14v5.diff.gz | |
wget http://www.thirdechelon.org/stuff/openssh-6.6p1.tar.gz | |
tar -xzvf openssh-6.1p1.tar.gz | |
cd openssh-6.1p1 | |
zcat /usr/src/openssh-6.1p1-hpn13v14.diff.gz | patch | |
./configure –prefix=/usr –sysconfdir=/etc/ssh –with-pam | |
mv /etc/ssh/ssh_config /etc/ssh/ssh_config.original | |
mv /etc/ssh/sshd_config /etc/ssh/sshd_config.original |
#!/usr/bin/perl | |
# -*- perl -*- | |
=head1 NAME | |
spamstats - Plugin to graph spamassassin throughput | |
=head1 CONFIGURATION | |
This plugin does not have any configuration |
#!/bin/bash | |
# Port Alive Script for Nagios | |
# Standard cPanel Ports | |
# Dan Miller <dm@sub6.com> | |
ADDRESS=$1 | |
TIMEOUT=5 | |
PORTS=( | |
'2082' # cPanel |
#!/bin/bash | |
#Makes a CSV of UNIX Time, wget speed, and link speed from an SNMP router | |
VOLTS=`snmpwalk -OvQ -v2c -cpublic IP .1.3.6.1.4.1.14988.1.1.3.8.0` | |
TIME=`date +%s` | |
VOLTS=`echo "scale=3;$VOLTS/10"|/usr/bin/bc` | |
echo $TIME,$VOLTS V >> /home/mwheeler/scripts/volts.csv |
rsync (Everyone seems to like -z, but it is much slower for me)
<?php | |
// quick and dirty argument parsing | |
foreach ($argv as $arg) { | |
if ($arg == '-f') { | |
define('FOLLOW', true); | |
} | |
if ($arg == '-h') { | |
define('HISTOGRAM', true); | |
} |
# Set cache dir | |
proxy_cache_path /var/cache/nginx levels=1:2 | |
keys_zone=microcache:5m max_size=1000m; | |
# Virtualhost/server configuration | |
server { | |
listen 80; | |
server_name yourhost.domain.com; | |
# Define cached location (may not be whole site) |