Windows Service with Python 3.5 and pyinstaller
- Python 3.5.x
- Visual C++ Build Tools 2015
- PyInstaller 3.2
| #!/usr/bin/env python3 | |
| ''' | |
| This script sets a retention on all the logGroups that don't have one set | |
| ''' | |
| import boto3 | |
| import logging | |
| # Retention it will be set to | |
| RETENTION = 30 |
Windows Service with Python 3.5 and pyinstaller
| #!/usr/bin/env bash | |
| set -x -e | |
| JUPYTER_PASSWORD=${1:-"myJupyterPassword"} | |
| NOTEBOOK_DIR=${2:-"s3://myS3Bucket/notebooks/"} | |
| # home backup | |
| if [ ! -d /mnt/home_backup ]; then | |
| sudo mkdir /mnt/home_backup | |
| sudo cp -a /home/* /mnt/home_backup |
| --- | |
| - name: test if grub configured for noop i/o scheduler | |
| command: egrep -q 'elevator=noop' /boot/grub2/grub.cfg | |
| register: grub | |
| changed_when: no | |
| failed_when: grub_test.rc == 2 | |
| - name: configure grub for noop i/o scheduler | |
| sudo: yes | |
| command: grubby --update-kernel=ALL --args=elevator=noop |