/etc/systemd/logind.conf
:
HandleLidSwitch=ignore
sudo systemctl stop systemd-logind && sudo systemctl start systemd-logind
import argparse | |
import cloudfiles | |
from cloudfiles.connection import Connection | |
AUTH_URLS = ['uk_authurl', 'us_authurl'] | |
if __name__ == '__main__': |
import optparse | |
from mandrill import Mandrill | |
from mandrill import UnknownTemplateError | |
def sync_templates(source_key, destination_key, update_existing=True, dry_run=False): | |
def perform_action(action): | |
'''Simple wrapper to skip actaully doing anything if dry run is enabled. |