Skip to content

Instantly share code, notes, and snippets.

mandiwise / Update remote repo
Last active Sep 23, 2022
Transfer repo from Bitbucket to Github
View Update remote repo
// Reference:
// See also:
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin
$ git push origin master
$ git remote rm bitbucket
josh-padnick / crontab file
Last active Jun 15, 2022
Create EC2 AMI from Bash Script; Good for cron jobs
View crontab file
# 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/ i-8a915682 >> /home/ubuntu/logs/crontab.log 2>&1