phpMyAdmin will be available on http://localhost:8080
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: Multilingual Polylang sitemaps for "XML Sitemap & Google News" plugin | |
* Description: For https://wordpress.org/plugins/xml-sitemap-feed/ | |
* Version: 1.0 | |
*/ | |
add_action('xmlsf_tags_after', function () { // xmlsf_tags_after | |
//Bail early. | |
if (!function_exists('pll_languages_list')) { |
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 | |
// Your themes functions.php | |
add_action( 'init', function() { | |
add_rewrite_rule( | |
'recipe/([0-9]+)/?$', | |
'index.php?pagename=recipe&recipe_id=$matches[1]', | |
'top' ); | |
}); |
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
import React, { useState, useEffect } from 'react'; | |
function PWAOfflineStatus(props) { | |
const [isOnline, setOnlineStatus] = useState(true); | |
// https://stackoverflow.com/questions/44756154/progressive-web-app-how-to-detect-and-handle-when-connection-is-up-again | |
useEffect(() => { | |
const setFromEvent = function(event) { | |
if(event.type === 'online') { | |
setOnlineStatus(true); |
Example: You've been using the Amazing Marvin Bookmarklet and now the tasks have piled up and Marvin is acting sluggish. Wallabag is a prefect place to migrate these bookmarks.
- PHP 7
- Python 3
- Export one or more of your reading lists containings URLs from Amazing Marvin by going to Account > Backups > Backup.
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 | |
//... | |
// This will usually be received from an env variable, for example $connectionString = getenv('DB_URL'); | |
$connectionString = 'mysql://user:password@foo-bar.rds.amazonaws.com:3306/database'; | |
// The values below will be your default values if $connectionString is empty. | |
$dbConfig = array_merge( | |
[ | |
'host' => 'localhost', |
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: Fix broken Instagram oEmbed | |
* Description: Fixes an issue with Instagram posts being broken when multiple posts are oEmbedded. | |
* Version: 1.0 | |
* Author: khromov | |
*/ | |
/** | |
* Remove Instagram embed.js script on each embed |
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: Infogram oEmbed | |
Plugin URI: | |
Description: Adds oEmbed support for infogr.am and infogram.com urls. | |
Author: khromov | |
Version: 1.0 | |
Author URI: https://khromov.se | |
*/ |