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
| /node_modules | |
| /public/storage | |
| /vendor | |
| /.idea | |
| Homestead.json | |
| Homestead.yaml | |
| .env* | |
| *bower_components* | |
| *.js.map | |
| *.css.map |
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
| nano | |
| bind-utils (dig) |
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 | |
| # By Mike Jolley, based on work by Barry Kooij ;) | |
| # License: GPL v3 | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. |
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
| function powerPressHTTPStoHTTP( $ID = false, $post = false, $update = false ) | |
| { | |
| if( ! $ID ) | |
| return; | |
| if( isset( $_REQUEST[ 'Powerpress' ] ) and is_array( $_REQUEST[ 'Powerpress' ] ) ) { | |
| $powerPress = $_REQUEST[ 'Powerpress' ]; |
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
| ;; Performance: | |
| listen.backlog = -1 | |
| pm = static | |
| ;; Max Children is the number of PHP processes running to handle user requests. Set to 2x Number of CPU Cores. | |
| pm.max_children = 8 | |
| pm.max_requests = 0 | |
| pm.start_servers = 1 | |
| pm.min_spare_servers = 1 | |
| pm.max_spare_servers = 2 |
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_action('pre_get_posts','users_own_attachments'); | |
| function users_own_attachments( $wp_query_obj ) { | |
| global $current_user, $pagenow; | |
| if( !is_a( $current_user, 'WP_User') ) | |
| return; | |
| if( !in_array( $pagenow, array( 'upload.php', 'admin-ajax.php' ) ) ) |
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
| service mysql stop | |
| mysqld_safe --skip-grant-tables > /dev/null 2>&1 & | |
| mysql -u root -e "use mysql; update user set password=PASSWORD('NEW-PASSWORD') where User='root'; flush privileges;" | |
| service mysql restart |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <meta property="og:title" content="*|MC:SUBJECT|*"> | |
| <title>*|MC:SUBJECT|*</title> | |
| <style type="text/css"> | |
| #outlook a{ |
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 | |
| /** | |
| * Created by Steven Kohlmeyer | |
| * Date: 10/2/15 | |
| * Time: 11:35 AM | |
| */ | |
| /* | |
| * This file will randomly pick an image in the folder specified below by $imagesDir, rename it to the new image file name specified by $newImageName. |
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 | |
| /* | |
| This script will allow you to create output on all level's of slugs for a custom post type with a custom taxonomy. | |
| Setup the Custom Post Type slug to be the base: | |
| /custom-post-type-slug/taxonomy-term/post-title | |
| For the below code, I'm using a custom post type registered as: recipe |