Skip to content

Instantly share code, notes, and snippets.

View fs111's full-sized avatar

André Kelpe fs111

View GitHub Profile
def _getregex(self):
"""
The RegexObject that is used for finding substrings in the source name
that should be replaced by substitute.
You may set this property either to a RegexObject or to a string. The
latter will automatically be supplied to re.compile().
Defaults to '[A-Za-z0-9.-]'.
"""
for i in $(seq 1 47); do curl -O -L http://www.mazemod.org/index.php/playlist/$i.zip; done
cd .vim/bundle/; git clone https://github.com/vim-scripts/AutoClose.git; cd
svn commit -m"$(lynx -dump http://whatthecommit.com/ | head -n 1)"
#!/bin/bash
#cron jobs have no env...
export PATH=/bin/:/usr/bin
# removes all snapshots that have not been accessed in the last 7 days
rm -r $(find /home/pcrun/.m2/repository -name *SNAPSHOT* -atime +6)
@fs111
fs111 / gist:1163629
Created August 22, 2011 21:22 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Software Engineer in the digital mapping world
Favorite Python project: ipython
Favorite Conference: chaos communication congress
Python Experience Level: using it professionally since ~8 years
@fs111
fs111 / Questions
Created September 6, 2011 17:41
GOTO Amsterdam
Day job:
What is your language of choice:
Open Source contributions:
How do you use GitHub:
curl http://search.twitter.com/search.json?q=bacon
{"completed_in":0.104,"max_id":143439177940344833,"max_id_str":"143439177940344833","next_page":"?page=2&max_id=143439177940344833&q=bacon","page":1,"query":"bacon","refresh_url":"?since_id=143439177940344833&q=bacon","results":[{"created_at":"Sun, 04 Dec 2011 21:18:59 +0000","from_user":"FeehS2oares","from_user_id":299967673,"from_user_id_str":"299967673","from_user_name":"OMundoTahUmaMerda","geo":null,"id":143439177940344833,"id_str":"143439177940344833","iso_language_code":"it","metadata":{"result_type":"recent"},"profile_image_url":"http://a2.twimg.com/profile_images/1422770518/Foto-0055_normal.jpg","source":"<a href="http://twitter.com/">web</a>","text":"@biellinguiti A @fabis_boldrin N GOSTA DE BACON MAN O----O'","to_user":"biellinguiti","to_user_id":235009068,"to_user_id_str":"235009068","to_user_name":"Gabriel Coronado","in_reply_to_status_id":143438901808340992,"in_reply_to_status_id_str":"143438901808340992"},{"created_at":"Sun
$ curl http://search.twitter.com/search.json?q=bacon | python -m simplejson.tool
{
"completed_in": 0.081,
"max_id": 143440344770555905,
"max_id_str": "143440344770555905",
"next_page": "?page=2&max_id=143440344770555905&q=bacon",
"page": 1,
"query": "bacon",
"refresh_url": "?since_id=143440344770555905&q=bacon",
"results": [
$ qs .
starting lighttpd at 0.0.0.0:8000. use ctrl-c to stop.
your URLs are
http://127.0.0.1:8000/
http://192.168.111.6:8000/
---------------------------------------
2011-12-05 21:56:14: (log.c.166) server started