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
from pyactiveresource.activeresource import ActiveResource | |
api_password = 'API_KEY_HERE' | |
api_site = 'https://%s@api.slicehost.com/' % api_password | |
class Slice(ActiveResource): | |
_site = api_site | |
class Zone(ActiveResource): | |
_site = api_site |
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
from pyactiveresource.activeresource import ActiveResource | |
api_password = 'YOUR_API_KEY_GOES_HERE' | |
api_site = 'https://%s@api.slicehost.com/' % api_password | |
class Slice(ActiveResource): | |
_site = api_site | |
class Zone(ActiveResource): | |
_site = api_site |
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
""" | |
list cloud servers and their physical host | |
""" | |
import cloudservers | |
USERNAME = "your_username_here" | |
API_KEY = "your_api_key_here" | |
cloudservers = cloudservers.CloudServers(USERNAME, API_KEY) |
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
<VirtualHost *:80> | |
Servername yourdomain.com | |
ServerAlias www.yourdomain.com | |
Redirect permanent / http://www.facebook.com/yourUsernameOrWhatever | |
</VirtualHost> |
NewerOlder