This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMPFILE='/tmp/rofi-dmenu-taskwarrior' | |
task rofi rc.verbose=nothing > $TMPFILE | |
TASK=`rofi -dmenu -p "Task: " -i -input $TMPFILE` | |
TASK_ID=`echo $TASK | cut -f1 -d' '` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 = 'http://twitpic.com/show/full/' . $pic_code; |