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 | |
| echo "installing WP test content" | |
| wp plugin install wordpress-importer --activate | |
| curl -OL https://raw.githubusercontent.com/manovotny/wptest/master/wptest.xml | |
| wp import wptest.xml --authors=create | |
| wp plugin uninstall wordpress-importer --deactivate | |
| rm wptest.xml |
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
| <?php | |
| if (!function_exists('getallheaders')) { | |
| function getallheaders() | |
| { | |
| if (!is_array($_SERVER)) { | |
| return array(); | |
| } | |
| $headers = array(); |
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
| #!/usr/bin/env bash | |
| # incapsula.sh | |
| # grab the list of pingdom check public ips and format into a nginx config file to allow | |
| # these addresses | |
| # also handles set_real_ip_from, include both files into your config and check | |
| # http://nginx.org/en/docs/http/ngx_http_realip_module.html for more info on real ip | |
| allow_file='/etc/nginx/include/incapsula.conf' | |
| realip_file='/etc/nginx/include/incapsula_realip.conf' |
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 | |
| export MFILE=merge_file.txt | |
| export SFILE=complete_file.txt | |
| for file in `ls *.log` | |
| do | |
| cat $file >> $MFILE |
NewerOlder