Skip to content

Instantly share code, notes, and snippets.

@poguez
poguez / Amazon Photos or Amazon cloud drive.md
Created April 12, 2020 18:22
How to let Amazon Photos / Amazon Cloud Drive use an external drive

How to use an external drive with Amazon Photos or Amazon Cloud Drive

  1. Install the Amazon Photos Amazon Clour Drive application. When it asks you to sync from your cloud to your local, choose any folder in your hard drive.
  2. Then, turn off the the application
  3. Plug your external hard drive in.
  4. In your Finder, go to: /Users/USER_NAME/Library/Application Support/Amazon Cloud Drive
  5. Open file amzn1.account.#########-settings.json with your text editor, you will see somethings like this:
@poguez
poguez / class-glassbox-initializer.php
Created April 16, 2021 10:10
How I initialize the routes for the plugin
class Glassbox_Initializer {
public function __construct() {
}
public function run() {
foreach ( get_post_types( array( 'show_in_rest' => true ), 'objects' ) as $post_type ) {
if ( post_type_supports( $post_type->name, 'revisions' ) ) {
require_once plugin_dir_path( __FILE__ ) . 'class-glassbox-controller.php';