Skip to content

Instantly share code, notes, and snippets.

Created October 29, 2013 17:52
  • Star 6 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
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';
Copy link

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