- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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 boto.ec2.autoscale | |
import boto.ec2 | |
region = "us-east-1" | |
instance = "i-d5ba2255" | |
asc = boto.ec2.autoscale.connect_to_region(region) | |
asi = asc.get_all_autoscaling_instances(instance_ids=[instance]) | |
if len(asi): |
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 http://blog.mattvogt.net/2013/02/08/vms-grayed-out-after-nfs-datastore-restored/ | |
#Get Inaccessible Virtual Machines | |
$VMs = Get-View -ViewType VirtualMachine | ?{$_.Runtime.ConnectionState -eq "invalid" -or $_.Runtime.ConnectionState -eq "inaccessible"} | select name,@{Name="GuestConnectionState";E={$_.Runtime.ConnectionState}} | |
write-host "---------------------------" | |
Write-host "Inaccessible VMs" | |
write-host "---------------------------" | |
$VMs | |
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
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm |
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
diff -Naur guacamole-0.6.2/src/main/java/net/sourceforge/guacamole/net/basic/AuthenticatingHttpServlet.java guacamole-0.6.2-mod/src/main/java/net/sourceforge/guacamole/net/basic/AuthenticatingHttpServlet.java | |
--- guacamole-0.6.2/src/main/java/net/sourceforge/guacamole/net/basic/AuthenticatingHttpServlet.java 2012-10-16 21:21:38.000000000 -0400 | |
+++ guacamole-0.6.2-mod/src/main/java/net/sourceforge/guacamole/net/basic/AuthenticatingHttpServlet.java 2012-10-24 11:55:50.156924252 -0400 | |
@@ -173,93 +173,18 @@ | |
HttpSession httpSession = request.getSession(true); | |
// Try to get configs from session | |
- Map<String, GuacamoleConfiguration> configs = getConfigurations(httpSession); | |
- | |
- // If no configs, try to authenticate the user to get the configs using |
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 django.core.management.base import BaseCommand | |
import logging | |
import os | |
import sys | |
import time | |
logger = logging.getLogger('chronograph.commands.cron_serial') | |
class Command(BaseCommand): |