View filter.js
This file contains 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
var urlTemplate = "https://drummer.land/chuck@grimmett.co/MakeWordPress.opml"; | |
const request = require ("request"); | |
function httpRespond (code, type, val, headers) { | |
if (headers === undefined) { | |
headers = new Object (); | |
} | |
if (type === undefined) { //7/20/18 by DW | |
type = "text/plain"; | |
} |
View csv-to-opml.php
This file contains 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 | |
if ($argc !== 2) { | |
echo "Usage: php csv-to-opml.php <csvFilePath>\n"; | |
exit(1); | |
} | |
$csvFilePath = $argv[1]; | |
// Define the output OPML file path | |
$opmlFilePath = 'output.opml'; // You can customize the output file name here |
View yotpo-disable-updates.php
This file contains 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: Disable Auto-update for Yotpo Social Reviews for WooCommerce | |
Description: This plugin disables auto-updates for the Yotpo Social Reviews for WooCommerce plugin. | |
*/ | |
function disable_autoupdate_specific_plugins($update, $item) { | |
// Array of plugin slugs to never auto-update | |
$plugins = array( | |
'yotpo-social-reviews-for-woocommerce', |
View wayback-checker.php
This file contains 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 | |
// Function to check if a URL exists in Wayback Machine | |
function checkWayback( $url ) { | |
$apiUrl = 'https://archive.org/wayback/available?url=' . urlencode( $url ); | |
$response = file_get_contents( $apiUrl ); | |
$json = json_decode( $response, true ); | |
if ( isset( $json['archived_snapshots']['closest']['url'] ) ) { | |
return $json['archived_snapshots']['closest']['url']; | |
} |
View well-known-feeds.php
This file contains 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: Custom OPML Feed | |
Description: Implements a custom OPML feed at /.well-known/feeds/ | |
Author: cagrimmett | |
*/ | |
// Add custom rewrite rule | |
function custom_opml_rewrite_rule() { | |
add_rewrite_rule( '^\.well-known/feeds/?$', 'index.php?custom_opml_feed=1', 'top' ); |
View 5-1.txt
This file contains 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
https://profiles.wordpress.org/0x6f0/ | |
https://profiles.wordpress.org/1265578519-1/ | |
https://profiles.wordpress.org/1naveengiri/ | |
https://profiles.wordpress.org/aardrian/ | |
https://profiles.wordpress.org/jorbin/ | |
https://profiles.wordpress.org/abdullahramzan/ | |
https://profiles.wordpress.org/abhayvishwakarma/ | |
https://profiles.wordpress.org/abhijitrakas/ | |
https://profiles.wordpress.org/ibachal/ | |
https://profiles.wordpress.org/achbed/ |
View tzprofiles verification
This file contains 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
I am attesting that this GitHub handle cagrimmett is linked to the Tezos account tz1Q2eekfg9ZAoxowc7YPeC14EfJLxbd1Sfw for tzprofiles | |
sig:edsigtsT3Zc1qYQW6sJJoavVWM1bEQn2utU6NG4795U1qMANDKwrFPNgb9ZhoDMwAN3p9dKDzgYacBynJgLpcw3QatL64GbatWn |
View post-redirects.php
This file contains 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_action( 'template_redirect', function() { | |
global $post; | |
if ( current_user_can('administrator') ) { return; } | |
if (is_single()){ | |
$cat = get_the_category(); | |
wp_redirect( 'https://crash.co/content/' . $cat[0]->slug . '/' . $post->post_name ); | |
die; | |
} else { | |
wp_redirect( 'https://crash.co/content/all' ); |
NewerOlder