- ICO Small organisations | ICO
- ICO Guide to the General Data Protection Regulation (GDPR) | ICO
- ICO General Data Protection Regulation (GDPR) FAQs for charities | ICO
- ICO Privacy notices under the GDPR
- Business West: https://www.businesswest.co.uk/general-data-protection-regulation-gdpr
- Charity Digital News/CoopSys: Guiding charities through GDPR compliance » Charity Digital News
- Together We're Better: [Power to the People! Giving Citizens their Personal Data Rights Back | twb](https://www.togetherwerebetter.org.uk/resources/giving
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
#!/bin/sh | |
# | |
# This dumps all MySQL databases if you give it a root database login. You can specify the directory. | |
# It creates a date-and-timestamped sub-directory and individual files in there for each database. | |
# | |
HOSTNAME='localhost' | |
MYSQLUSER='root' | |
MYSQLPASS='password' | |
TIMESTAMP=`date +%F-%H%M%S` |
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
function make_valid_pairing( $people_to_pair, $people_yet_to_have_gifts ) { | |
// We made it! No more people left to pair! Return an empty array of pairings. | |
if (empty($people_to_pair)) { | |
return []; | |
} | |
// Get the first person | |
$person_to_pair = $people_to_pair[0]; | |
// Get all the other people |
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
[ | |
// Focus/unfocus terminal with ctrl+` and toggle it with ctrl+shift+` | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus", |
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 | |
/* | |
* Tag for my LaravelAssetCache package: https://github.com/rosswintle/laravel-asset-cache/ | |
* | |
* This grabs the asset file from the specified npm package from jsdelivr.net, and caches and serves it locally | |
* | |
* Before use you'll need to: | |
* composer require rosswintle/laravel-asset-cache | |
* php artisan storage:link (in all environments) | |
* |
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: Weird Wide Webring | |
* Plugin URI: https://weirdwidewebring.net | |
* Description: A widget for displaying the Weird Wide Webring links | |
* Author: Ross Wintle | |
* Author URI: https://rosswintle.uk/ | |
* Text Domain: weird-wide-webring | |
* Domain Path: /languages | |
* Version: 1.0.0 |
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
# Add these to your .bashrc file for some quick and clever recursive web-dev code searching | |
# from the command line/terminal. | |
# | |
# Should be easy enough to add your own too. | |
# | |
# Usage is just: | |
# | |
# phprgrep <regular expression> | |
# | |
# Regular expresssions need to be escaped/quoted if you're being clever. |
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_filter('oembed_result', 'youtubeEmbedNocookieFilter', 10, 3); | |
function youtubeEmbedNocookieFilter(string $data, string $url, array $args) | |
{ | |
return str_replace('src="https://www.youtube.com/embed', 'src="https://www.youtube-nocookie.com/embed', $data); | |
} |
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 | |
// adding support for html emails | |
// this converts ALL wp_mail emails to HTML, which messes up the password reset email | |
add_filter( 'wp_mail_content_type','prefix_set_content_type' ); | |
function prefix_set_content_type() { | |
return "text/html"; | |
} | |
// add this filter too | |
// this will make the password reset email compatible with the HTML format |
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 a generic post meta filter that allows you to create filters like | |
* get_post_metadata_{$key} | |
*/ | |
add_filter('get_post_metadata', 'generic _meta_filter', 100, 5); | |
function generic_meta_filter($value, $object_id, $meta_key, $single, $meta_type) { | |
remove_filter('get_post_metadata' 'generic_meta_filter', 100, 5); |