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 | |
| SELF=$0 | |
| COREDIR=/usr/lib/displaylink | |
| LOGSDIR=/var/log/displaylink | |
| PRODUCT="DisplayLink Linux Software" | |
| VERSION=1.0.68 | |
| ACTION=default | |
| SYSTEMINITDAEMON=unknown |
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 | |
| //Locate the attachment post's ID in the database based on the GUID. | |
| function getIDfromGUID( $existing_image ){ | |
| global $wpdb; | |
| return $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=attachment AND guid=%s", $existing_image ) ); | |
| } | |
| $existing_image = "http://guidevoyage.org.dev/wp-content/uploads/2012/02/Fontaine-de-Trevi.jpg"; |
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 | |
| require_once dirname( __FILE__ ) . '/wp-load.php'; | |
| //$existing_image = 'http://guidevoyage.org.dev' . '/wp-content/uploads/2010/12/122010_0314_LamdinadeSo1.png'; | |
| //Locate the attachment post's ID in the database based on the GUID. | |
| function getIDfromGUID( $full_image_url ){ | |
| global $wpdb; |
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
| export DUSK_START_CHROMEDRIVER=false | |
| export DUSK_APP_PORT=8000 | |
| export DUSK_CHROME_BINARY=/usr/bin/chromium-browser | |
| nohup bash -c "./vendor/laravel/dusk/bin/chromedriver-linux 2>&1 &" | |
| nohup bash -c "php artisan serve --env=dusk.testing 2>&1 &" && sleep 4 | |
| php artisan dusk |
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: Edd Database Bug Reproduction | |
| * Plugin URI: | |
| * Description: Reproduce a bug in EDD's database query. | |
| * Author: Joey Kudish | |
| * Author URI: https://github.com/jkudish | |
| * Text Domain: edd-database-bug | |
| * Domain Path: /languages | |
| * Version: 0.1.0 |
OlderNewer