Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Copies SequelPro results as a textile table to use it in Redmine or other textile-supported systems. To use, just copy it into your SequelPro Bundle Editor.
$in = fopen('php://stdin', 'r');
while($line=fgetcsv($in, 0, "\t")) {
$result[]='|'.$format.implode('|'.$format, $line).'|';
$cmd='echo '.escapeshellarg(implode("\n", $result)).' | __CF_USER_TEXT_ENCODING='.posix_getuid().':0x8000100:0x8000100 pbcopy';

This comment has been minimized.

Copy link

@daverogers daverogers commented Oct 5, 2016

Thanks, this was a good starting point for a similar format I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.