ssh root@SERVER_IP_ADDRESS
wget https://dl.eff.org/certbot-auto
| <?php | |
| /** | |
| * Sign a private asset url on cloudfront | |
| * | |
| * @param $resource full url of the resources | |
| * @param $timeout timeout in seconds | |
| * @return string signed url | |
| * @throws Exception | |
| */ |
| /** | |
| * Save the image on the server. | |
| */ | |
| function save_image( $base64_img, $title ) { | |
| // Upload dir. | |
| $upload_dir = wp_upload_dir(); | |
| $upload_path = str_replace( '/', DIRECTORY_SEPARATOR, $upload_dir['path'] ) . DIRECTORY_SEPARATOR; | |
| $img = str_replace( 'data:image/jpeg;base64,', '', $base64_img ); |
| <?php | |
| /* | |
| Plugin Name: WDS CLP Update Forum Group Meta Script | |
| Description: Updates the group meta for forum id based on updated forum ids. | |
| Author: WebDevStudios | |
| Author URI: http://webdevstudios.com | |
| Version: 1.0 | |
| License: GPL2 | |
| */ |
| <?php | |
| /** | |
| * This function will see if a PDF or other "attachment" post-type returned by SearchWP | |
| * is present in a custom field in a regular post, and will return that post instead. Note | |
| * this will only process documents which are referenced via the "attachment" post type. | |
| * | |
| * For example, you may have a product specification PDF and would like it in the search | |
| * results, but would rather people got to it by visiting the product page itself. | |
| * |