Skip to content

Instantly share code, notes, and snippets.

View namoscato's full-sized avatar

Nick Amoscato namoscato

View GitHub Profile
@namoscato
namoscato / sequelpro_github_markdown_bundle.php
Last active January 19, 2022 04:49 — forked from jakob-stoeck/Copy as textile
Copies Sequel Pro results as a GitHub and Jira Flavored Markdown table.
#!/usr/bin/php
<?php
$in = fopen('php://stdin', 'r');
$result = array();
$first = true;
while ($line = fgetcsv($in, 0, "\t")) {
$result[] = sprintf('|%s|', implode('|', $line));