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
# return the current git branch name | |
parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
} | |
# return the string of state of the branch | |
parse_git_dirty() { | |
D="$(git status 2> /dev/null | tail -n1 | awk '{ print $1 }' )" | |
if [ "$D" = "nothing" ] ; then | |
echo -e "(clean) " |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
@url = "http://www.superakcijas.lv/public/" | |
@deals = "more_deals.php" | |
@response = '' | |
@search_string = 'iPhone' |
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
(env)~/env pip install pycurl | |
Downloading/unpacking pycurl | |
Downloading pycurl-7.19.0.tar.gz (71Kb): 71Kb downloaded | |
Running setup.py egg_info for package pycurl | |
sh: curl-config: not found | |
Traceback (most recent call last): | |
File "<string>", line 14, in <module> | |
File "/home/eric/env/build/pycurl/setup.py", line 90, in <module> | |
raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG) | |
Exception: `curl-config' not found -- please install the libcurl development files |