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 | |
$target_accounts = array( | |
'bikes_as_transportation', | |
); | |
foreach ( $target_accounts as $target_user ) { | |
$target_user = urlencode( $target_user ); |
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 __DIR__ . '/vendor/autoload.php'; | |
require_once __DIR__ . '/config.php'; | |
$output_messages = array(); | |
$wayneco_results_html = file_get_contents( WAYNECO_RESULTS_URL ); | |
$state_results_html = file_get_contents( STATE_RESULTS_URL ); |
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 | |
/** | |
* Class JCHPhotos_Plugin_API_Routes | |
* | |
* Handles API endpoints for looking up Flickr-to-WordPres translation stuff. | |
*/ | |
class JCHPhotos_Plugin_API_Routes { |
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: Flickr Fixer | |
* Plugin URI: https://chrishardie.com/ | |
* Description: Find/replace Flickr references | |
* Version: 1.0 | |
* Author: Chris Hardie | |
* Author URI: https://chrishardie.com/ | |
*/ |
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 | |
/** | |
* Generate an RSS feed from a Twitter user's timeline | |
* Chris Hardie <[email protected]> | |
*/ | |
require "/path/to/vendor/autoload.php" ; | |
use Abraham\TwitterOAuth\TwitterOAuth; |
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 | |
version=`php artisan --version` | |
if [[ ${version} != *"Laravel Framework"* ]]; then | |
echo "Not a Laravel app, exiting." | |
exit; | |
fi | |
# Turn on maintenance mode |
OlderNewer