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
| { | |
| "openapi": "3.0.3", | |
| "info": { | |
| "title": "DMARC Report API (unofficial OpenAPI 3)", | |
| "version": "2.0", | |
| "description": "Unofficial OpenAPI 3.0 conversion of the DMARC Report API v2 (https://docs.dmarcreport.com/), cleaned up for use with MCPHub's OpenAPI server type and other OpenAPI-to-MCP bridges.\n\nConverted from the Apipie Swagger 2.0 output at https://docs.dmarcreport.com/api/2.0.json?type=swagger by Managing WP (https://managingwp.io). Not affiliated with or endorsed by DMARC Report.\n\n### Authentication\nCreate an API token in app.dmarcreport.com (profile icon > API Tokens > New Api Token), then send it as:\n\n`Authorization: Token token=<your-token>`\n\n### Changes from the source spec\n- Swagger 2.0 to OpenAPI 3.0.3, with `servers` set to https://api.dmarcreport.com (the source had host localhost:3000).\n- Added a `TokenAuth` security scheme (the source had none).\n- Short operationIds that are valid MCP tool names (no dots, under 40 characters).\n- Form fields such as `domain[address]` turne |
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 | |
| # | |
| # USE FOR LOCAL DEVELOPMENT ONLY!!! | |
| # | |
| EMAIL='your-email@gmail.com' | |
| MYSQL=`which mysql` | |
| echo -n "DB user/name for project (lowercase) [ENTER]:" | |
| read DB |
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
| mysql -uroot -N -e 'show databases' | while read dbname; do mysqldump -uroot --complete-insert "$dbname" > "$dbname".sql; done |
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
| ls -aSd /var/log/nginx/* | grep access | egrep -v '^access.log$|staging|canary|gridpane|.gz' | xargs grep ' 4[0-9][0-9] ' | egrep -v 'xmlrpc.php' | awk '{ print $1" -- "$6" - "$10" - "$7" "$8" "$9}' | sort | uniq -c | sort -n |
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
| # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again | |
| # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution | |
| # http://www.prestashop.com - http://www.prestashop.com/forums | |
| <IfModule mod_rewrite.c> | |
| <IfModule mod_env.c> | |
| SetEnv HTTP_MOD_REWRITE On | |
| </IfModule> | |
| RewriteEngine on |
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
| # Add Dell GPG key to apt | |
| apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 1285491434D8786F | |
| echo "deb http://linux.dell.com/repo/community/openmanage/930/bionic bionic main" > /etc/apt/sources.list.d/linux.dell.com.sources.list | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-curl-client-transport1_2.6.5-0ubuntu3_amd64.deb | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-client4_2.6.5-0ubuntu3_amd64.deb | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman1_2.6.5-0ubuntu3_amd64.deb | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-server1_2.6.5-0ubuntu3_amd64.deb | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/s/sblim-sfcc/libcimcclient0_2.2.8-0ubuntu2_amd64.deb | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/openwsman_2.6.5-0ubuntu3_amd64.deb | |
| wget http://archive.ubuntu.com/ubuntu/pool/multiverse/c/cim-schema/cim-schema_2.48.0-0ubuntu1_all.deb |
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
| 300 /** | |
| 301 * Sends and wipe SFW log | |
| 302 * | |
| 303 * @param $db | |
| 304 * @param $log_table | |
| 305 * @param string $ct_key API key | |
| 306 * | |
| 307 * @return array|bool array('error' => STRING) | |
| 308 */ | |
| 309 public static function send_log( $db, $log_table, $ct_key ) { |
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 | |
| // Don't disable on dev | |
| if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) { | |
| // Disable core update checking | |
| add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
| remove_action( 'admin_init', '_maybe_update_core' ); | |
| remove_action( 'wp_version_check', 'wp_version_check' ); |
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 | |
| /* | |
| Plugin Name: Divi Plugin for Nginx Helper | |
| Description: This is a GP helper plugin created for our customers. | |
| Author: GridPane | |
| Network: true | |
| There is another function that you can use and assign it to the save page hook: | |
| et_core_page_resource_auto_clear() |
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 | |
| /** | |
| * Plugin Name: Nginx Helper - Role Purge Cache | |
| * Plugin URI: https://rtcamp.com/nginx-helper/ | |
| * Description: Allows store manager role to purge page and site cache. | |
| * Version: 0.1 | |
| * Author: Hubert, Koen Adams, Jordan Trask | |
| * Author URI: https:// | |
| * Text Domain: nginx-helper-store-manager |
NewerOlder