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
<?php | |
/** | |
* Register an Admin Page - Example | |
* | |
* NOTE: MU Plugin. | |
* | |
* @author hakre <http://hakre.wordpress.com/> | |
* @link http://wordpress.stackexchange.com/questions/1778/admin-config-screen-without-menu | |
*/ |
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
/*** | |
Safely break out of an iframe for blogspot.com | |
@author Nuar H. Noah | |
*/ | |
var myblog = { hostname: top.location.hostname, whitelist: Array() } | |
myblog.breakfree = function(){ | |
if (top.location != self.location) { | |
var curDomain = this.hostname.split('.')[1]; | |
this.whitelist['blogspot'] = 1; |
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 | |
# based on https://github.com/mew2057/CAST/blob/6c7f7d514b7af3c512635ec145aa829c535467dc/csm_big_data/config-scripts/logstashFixupScript.sh | |
# see: https://github.com/elastic/logstash/issues/10755 | |
apt-get update | |
apt-get install -f zip unzip | |
STARTDIR=$(pwd) | |
JARDIR="/usr/share/logstash/logstash-core/lib/jars" |