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 | |
| set -e | |
| NGINX_VERSION="1.6.0" | |
| NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz" | |
| PCRE_VERSION="8.34" | |
| PCRE_TARBALL="pcre-${PCRE_VERSION}.tar.gz" | |
| OPENSSL_VERSION="1.0.1g" | |
| OPENSSL_TARBALL="openssl-${OPENSSL_VERSION}.tar.gz" |
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
| filter { | |
| if [nxtags] == "nxlogsyslog" { | |
| mutate { | |
| add_field => [ "type", "%{nxtags}" ] | |
| replace => [ "host", "%{Hostname}" ] | |
| } | |
| # Parse the date 2014-02-27 14:57:04 - Needed to set timezone value to nxlog server's timezone | |
| date { |
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
| description "Properly handle haproxy" | |
| start on startup | |
| env PID_PATH=/var/run/haproxy.pid | |
| env BIN_PATH=/usr/sbin/haproxy | |
| script | |
| exec /bin/bash <<EOF | |
| $BIN_PATH -f /etc/haproxy.cfg -D -p $PID_PATH |
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/sh | |
| xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o pid,cmd | xargs notify-send |
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
| <% | |
| require 'cgi' | |
| require 'uri' | |
| def attribute(name, value, force_string = false) | |
| if value | |
| value_string = | |
| if force_string | |
| '"' + value + '"' | |
| else |
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
| /** | |
| * @author alteredq / http://alteredqualia.com/ | |
| * | |
| * ShaderExtras currently contains: | |
| * | |
| * screen | |
| * convolution | |
| * film | |
| * bokeh | |
| * sepia |
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
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
NewerOlder