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
## {{{ http://code.activestate.com/recipes/576704/ (r16) | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# pyminifier.py | |
# | |
# Copyright 2009 Dan McDougall <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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/python | |
# -*- coding: utf-8 -*- | |
# default_application, default_controller, default_function | |
# are used when the respective element is missing from the | |
# (possibly rewritten) incoming URL | |
# | |
default_application = 'clientes' # ordinarily set in base routes.py | |
default_controller = 'clientes' # ordinarily set in app-specific routes.py | |
default_function = 'novo' # ordinarily set in app-specific routes.py |
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
cd ~ | |
wget -O web2py_src.zip http://web2py.com/examples/static/web2py_src.zip | |
unzip web2py_src.zip | |
echo " | |
PATH = '/home/"`whoami`"/web2py' | |
import os | |
import sys | |
sys.stdout = sys.stderr | |
os.chdir(PATH) | |
if not './' in sys.path[:1]: sys.path.insert(0,'./') |
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
# source: web2py.pythonanywhere.com | |
# --------------------------------- | |
# web2py IDE and Hosting on PythonAnywhere.com | |
# 1 Minute install | |
# | |
# '/home/web2py' is my home dir and 'web2py' my username | |
# 'unzip web2py_src.zip' on home and I get | |
# path='/home/web2py/web2py' | |
# Now in path is 'web2py.py' and other source '.py' files | |
# EDIT file 'var/www/wsgi.py' |
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
""" | |
Model for microformat properties and parsers. A microformat parser can | |
parse an HTML element into a dictionary of properties, whose keys are | |
strings and whose values are strings or other dictionary of properties. | |
As an example, the main program of this script parses an hResume from | |
given URL. |
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
203.208.46.166 www.google.com | |
203.208.46.166 www.google.com.hk | |
203.208.46.166 encrypted.google.com | |
203.208.46.166 encrypted.google.com.hk | |
203.208.46.166 mail.google.com | |
203.208.46.166 webcache.googleusercontent.com | |
203.208.46.166 plus.google.com | |
203.208.46.166 talkgadget.google.com | |
203.208.46.166 picasaweb.google.com | |
203.208.46.166 feedproxy.google.com |
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
production: | |
email_delivery: | |
delivery_method: :async_smtp | |
smtp_settings: | |
tls: true | |
enable_starttls_auto: true | |
address: "smtp.gmail.com" | |
port: '587' | |
domain: "smtp.gmail.com" | |
authentication: :plain |
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
@ MX 10 aspmx.l.google.com. | |
MX 20 alt1.aspmx.l.google.com. | |
MX 20 alt2.aspmx.l.google.com. | |
MX 30 aspmx2.googlemail.com. | |
MX 30 aspmx3.googlemail.com. | |
MX 30 aspmx4.googlemail.com. | |
MX 30 aspmx5.googlemail.com. | |
TXT "v=spf1 include:aspmx.googlemail.com ~all" | |
; | |
_xmpp-server._tcp SRV 5 0 5269 xmpp-server.l.google.com. |
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
<a href="https://www.myhaikuclass.com/do/openid/google?openid_identifier=your_google_domain.com" target='_blank'> | |
Sign In with your Google Apps Account | |
</a> |
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
import gdata.apps.service | |
service = gdata.apps.service.AppsService(email="admin@mydomain", domain="mydomain.com", password="password") | |
service.ProgrammaticLogin() | |
names = {'from':'to'} | |
for current, change_to in names.iteritems(): | |
user_entry = service.RetrieveUser(current) |