Skip to content

Instantly share code, notes, and snippets.

function beech() {
len=`echo "$1" | wc -m`
if [ "$len" -gt "140" ]
then
echo "Tweet length is $len, exceeds max. 140 characters"
return
fi
echo -n 'Sending Tweet... '
# TODO correct parameter for extended regexes => BSD: `sed -E`; GNU: `sed -r`
/usr/bin/curl -Ss -u $TWITTER_BEECH_USER:$TWITTER_BEECH_PASS -d status="$1" http://twitter.com/statuses/update.xml | grep 'error' | sed 's/<[^>]+>//g'
@To1ne
To1ne / sale.md
Last active August 29, 2015 14:21
MacBook Pro for sale

MacBook Pro for sale

I am selling my MacBook Pro, because I've got another one from my employer.

Specifications

  • Model: MacBook Pro 13-inch late 2013
  • Processor: 2,6 GHz Intel Core i5
  • Memory: 8GB
  • Graphics: Intel Iris 1536 MB