I hereby claim:
- I am onecooltaco on github.
- I am jleggat (https://keybase.io/jleggat) on keybase.
- I have a public key whose fingerprint is 641A 612D B346 A023 1EB3 758B BF11 CF76 5F86 1939
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /*** | |
| Plugin Name: disable RSS feeds | |
| Plugin URI: https://gist.github.com/onecooltaco/91889570ee10b21babe4c4d5da8bf31e | |
| Description: Disable RSS feeds in WordPress | |
| Version: 1.0.0 | |
| Author: Jeremy Leggat | |
| ***/ | |
| /* |
| <?php | |
| /*** | |
| Plugin Name: disable APIs | |
| Plugin URI: https://gist.github.com/onecooltaco/87e7462e7abb3fd06bfc58730281f5f4 | |
| Description: Disable APIs in WordPress header | |
| Version: 1.0.0 | |
| Author: Jeremy Leggat | |
| ***/ | |
| /* |
| <?php | |
| /*** | |
| Plugin Name: Amazon SES SMTP | |
| Plugin URI: https://gist.github.com/onecooltaco/1c3e2d108fa2cd5c3d029987fa9b814c | |
| Description: Send mail from Amazon SES | |
| Version: 1.0.0 | |
| Author: Jeremy Leggat | |
| ***/ | |
| /* |
| <?php | |
| /*** | |
| Plugin Name: Proxy SSL URL Scheme | |
| Plugin URI: https://gist.github.com/onecooltaco/8eb7a0b0038eebc014e61c21c80c1029 | |
| Description: Force the protocol scheme to be HTTPS when HTTP_X_FORWARDED_PROTO is https | |
| Version: 1.0.0 | |
| Author: Jeremy Leggat | |
| Forked from https://gist.github.com/webaware/4688802 |
| #!/bin/bash | |
| # Convert Markdown to Wordpress blogging format | |
| # Required program(s) | |
| req_progs=(ascii2uni pandoc) | |
| for p in ${req_progs[@]}; do | |
| hash "$p" 2>&- || \ | |
| { echo >&2 " Required program \"$p\" not installed."; exit 1; } | |
| done |
| # Optimized MySQL configuration by Fotis Evangelou - Updated Jan 2016 | |
| # | |
| # The settings provided below are a starting point for a 4GB-8GB RAM server with 4 CPU cores. | |
| # If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
| # To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
| # https://launchpad.net/mysql-tuning-primer | |
| # or | |
| # http://blog.mysqltuner.com/download/ | |
| # Note that if there is no comment beside a setting, then you don't need to adjust it. |
| #!/usr/bin/python | |
| '''Uses Cocoa classes via PyObjC to set a desktop picture on all screens. | |
| Tested on Mountain Lion and Mavericks. Forked from https://gist.github.com/hunty1/548edaf7e913c8f4e06b, | |
| which was inspired by Greg Neagle's work: https://gist.github.com/gregneagle/6957826 | |
| See: | |
| https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html | |
| https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html |
| # Change Allow apps downloaded from Preference | |
| # Change Gatekeeper to “Mac App Store and identified developers” preference. | |
| sudo spctl --enable --label "Developer ID" |
| #conditional logging | |
| # Create exclusions in apache logs | |
| SetEnvIf Request_URI "^/favicon\.ico$" special | |
| SetEnvIf Request_URI "something.html" special | |
| # no logging: | |
| CustomLog /var/log/httpd/local-access.log combined env=!special | |
| # explicit logging: |