Skip to content

Instantly share code, notes, and snippets.

@maop
maop / ws.sh
Created September 23, 2010 05:10
#!/bin/bash
# ws.sh Web Server in Shell Scripting
# @author: maop www.maop.mx
# INSTALL: Just add to your /etc/inetd.conf:
# http-alt stream tcp nowait nobody /home/maop/Proyectos/ws-sh/ws.sh
# restart inetd and launch your browser to 127.0.0.1:8080
# --[ Config ]--
htdocs="/home/maop/Proyectos/ws-sh"
#!/usr/bin/python
# RandomFollowFriday.py
# me@marcoalfonso.net @maop
# You have to use this patch: http://python-twitter.googlecode.com/issues/attachment?aid=6509573335595538436&name=friends-followers-cursor.patch
# Since current twitter.py does not paging right (http://code.google.com/p/python-twitter/issues/detail?id=113)
import twitter
import random
USERNAME = "XXXXXX"
#!/usr/bin/python
#
# quick and dirty script to mauropm <3
# with love
# maop... xD
#
# Todo, parse types (mp3, youtube, etc..) and add code or perhaps
# feed youtube-dl with sources from here and later mencoder powa!
#
@maop
maop / gist:130864
Created June 16, 2009 20:12 — forked from gnuget/gist:130856
get your public ip
#!/usr/bin/env python
import urllib
def show_ip():
print urllib.urlopen("http://tuip.info/ip").read()
if __name__ == "__main__":
show_ip()