This file contains 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
''' | |
Run this script either by doing: | |
python gmaildomain.py | |
And you will be prompted for details, or you can save time by doing: | |
python gmaildomain.py WEBFACTION_USERNAME_HERE DOMAIN_TO_USE_GMAIL_FOR_HERE_WITHOUT_WWW | |
And you will only be prompted for your password. |
This file contains 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
class App(object): | |
def __init__(id, name, | |
default=False, selected=False, groups=['misc'], | |
description="", icon="app-icons_default.png"): | |
self._id = id | |
self._name = name | |
self._groups = groups | |
self._default = default | |
self._selected = selected |
This file contains 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) |
This file contains 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 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 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 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 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 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 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,'./') |
OlderNewer