Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Arrow chrisarrow

View GitHub Profile
@rtrouton
rtrouton / gist:3ac68ac3770ab23ebae354c581f526b7
Last active Aug 17, 2021
MigrateADMobileAccountToLocalAccount.command script
View gist:3ac68ac3770ab23ebae354c581f526b7
#!/bin/bash
# Modified 4/5/2019
Version=1.4
# Original source is from MigrateUserHomeToDomainAcct.sh
# Written by Patrick Gallagher - https://twitter.com/patgmac
#
# Guidance and inspiration from Lisa Davies:
# http://lisacherie.com/?p=239
#
# Modified by Rich Trouton
@josh-padnick
josh-padnick / crontab file
Last active May 13, 2021
Create EC2 AMI from Bash Script; Good for cron jobs
View crontab file
PATH=/bin:/usr/local/bin
# Put this in your crontab file to run the script every day at 01:30 (1:30am). Note the PATH variable above; required for this script.
# m h dom mon dow command
30 01 * * * /bin/bash /home/ubuntu/scripts/ec2-create-image.sh i-8a915682 >> /home/ubuntu/logs/crontab.log 2>&1