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 | |
| // Based and altered from https://www.py4u.net/discuss/24287 | |
| function strip_tag_attributes( $html, $tag, $attr ) { | |
| $domd = new DOMDocument(); | |
| libxml_use_internal_errors( true ); | |
| $domd->loadXML( $html ); | |
| libxml_use_internal_errors( false) ; | |
| $domx = new DOMXPath( $domd ); | |
| $items = $domx->query('//' . $tag . '[@' . $attr . ']'); |
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 | |
| /* | |
| - Add this to your functions.php | |
| - Add a form input normal | |
| - give it a gf-sequence class | |
| */ | |
| $gfex_gsf = false; |
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: Initialization Plugin | |
| * Plugin URI: https://gist.github.com/idokd/224dec722a22b664c59e8d6ec221d997 | |
| * Description: Plugin to hook and define necessary functions before other all other plugins | |
| * Version: 1.0.0 | |
| * Author: Ido Kobelkowsky | |
| * Author URI: https://github.com/idokd | |
| */ |
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
| * Feel free to improve it. | |
| * Original by Janich: https://gist.github.com/janich/6121771 | |
| * | |
| * @requires PHP 5.3+ | |
| * @package ExportMySQLUsers | |
| * @author Zaid Daba'een | |
| * @license http://www.dbad-license.org/ DBAD license | |
| */ | |
| // Set up database root credentials | |
| $host = 'localhost'; |
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
| steps: | |
| - name: 'debian:stable-slim' | |
| args: ['bash', './deploy-plugin.sh'] | |
| env: | |
| - 'BUILD=$BUILD_ID' | |
| - 'PROJECT=$PROJECT_ID' | |
| - 'REV=$REVISION_ID' | |
| - 'VERSION=$TAG_NAME' | |
| - 'SVN_USERNAME=$_SVN_USERNAME' | |
| - 'SVN_PASSWORD=$_SVN_PASSWORD' |
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 | |
| # Download CA Certs (.crt) from a URL | |
| # example: http://www.banxico.org.mx/servicios/certificados-ies-firma-electr.html | |
| # Then check which certificates are valid and bundle them to a pem file | |
| WEB_URL=http://www.banxico.org.mx/servicios/certificados-ies-firma-electr.html | |
| SSL_CERT_DIR=ca | |
| CA_BUNDLE=$SSL_CERT_DIR/ca-chain-bundle.pem |
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
| # This script is to be used in Postman if you wish to transfer ownership of your repository in a batch | |
| # Example; downgrading from organization account (25usd min) to pro user (7usd) monthly and keeping all | |
| # your private repositories | |
| # Instead of complicate with scripts etc. just use postman | |
| # the repos api will list only 25 at a time, so you should run this script a few times if you have more | |
| # repositories to transfer | |
| GET /orgs/### CURRENT OWNER REPOSITORY ###/repos HTTP/1.1 | |
| Host: api.github.com | |
| Authorization: token ### GITHUB API TOKEN HERE ### |
NewerOlder