Skip to content

Instantly share code, notes, and snippets.

eethann /
Last active Jan 22, 2019 — forked from fmartingr/
Add check for empty ID, to avoid unhandled error where no ID specified
task rofi rc.verbose=nothing > $TMPFILE
TASK=`rofi -dmenu -p "Task: " -i -input $TMPFILE`
TASK_ID=`echo $TASK | cut -f1 -d' '`
View twitpic_filter.php
* when twitpic URL is found in filtered $text, download the image file
* - use curl to get info from API on actual URL (w/ temporary auth key)
* - then use that URL to download the file to local $dl_dir
* @return downloaded file path or FALSE
function _twitpic_filter_download_twitpic($pic_code) {
$pic_url = '' . $pic_code;