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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:util="http://www.springframework.org/schema/util" | |
| xsi:schemaLocation=" | |
| http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://www.springframework.org/schema/util | |
| http://www.springframework.org/schema/util/spring-util.xsd"> |
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
| from functools import wraps | |
| def rollback(engine): | |
| def rollback_decorator(func): | |
| @wraps(func) | |
| def wrapper(*args, **kwargs): | |
| with engine.connect() as connection: | |
| with connection.begin() as tx: | |
| try: | |
| kwargs['connection'] = connection |
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
| rabbitmq-repo: | |
| pkgrepo.managed: | |
| - name: deb http://www.rabbitmq.com/debian/ testing main | |
| - key_url: http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
| require: | |
| - pkg: python-apt | |
| rabbitmq-server: | |
| pkg: | |
| - latest |
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
| # | |
| # How to install automatically Oracle Java 7 under Salt Stack for Debian | |
| # | |
| # References: | |
| # https://gist.github.com/renoirb/6722890 | |
| # https://groups.google.com/forum/#!topic/salt-users/ynKNND9qxiI | |
| # http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html | |
| # | |
| python-apt: | |
| pkg.latest |
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
| su - | |
| echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java-wheezy.list | |
| echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java-wheezy.list | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
| apt-get update | |
| apt-get install oracle-java7-installer | |
| exit |
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
| class FrealCountdownTask(task.Task): | |
| abstract = True | |
| @classmethod | |
| def apply_async(self, args=None, kwargs=None, | |
| task_id=None, producer=None, connection=None, router=None, | |
| link=None, link_error=None, publisher=None, add_to_parent=True, | |
| **options): | |
| try: |
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
| sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
| wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz | |
| tar -xzf Python-2.7.5.tgz | |
| cd Python-2.7.5 | |
| ./configure --prefix=/usr --enable-shared | |
| make | |
| sudo make install | |
| cd .. |