Skip to content

Instantly share code, notes, and snippets.

View tallcoder's full-sized avatar

Duane Helton tallcoder

View GitHub Profile
@tallcoder
tallcoder / sync-sequel-pro-favorite.md
Created November 25, 2019 16:12 — forked from nguyenkims/sync-sequel-pro-favorite.md
Sync sequel pro favorites between macs

The sequel pro favorites can be shared between Macs using cloud storage service like Dropbox, Google Drive, OneDrive, etc.

The trick is to create a file that will be synced using these cloud services and sequel pro favorites file is just a symlink to this file.

The below script is used for OneDrive but it can also work for Dropbox and other cloud storages.

  1. Copy the current sequel pro favorites file

cp ~/Library/Application\ Support/Sequel\ Pro/Data/Favorites.plist ~/OneDrive/SequelPro.plist

@tallcoder
tallcoder / debug.php
Created July 26, 2021 14:37
Debug Queries WordPress
// require('/debug.php');
<?php
if ( !defined('SAVEQUERIES') && isset($_GET['debug']) && $_GET['debug'] == 'sql' )
define('SAVEQUERIES', true);
if ( !function_exists('dump') ) :
/**
* dump()
*