git --single-branch --branch=${BRANCHNAME} --depth 1 ssh://git@${DOMAIN}/${DIR}/${REPO}.git clone
git branch --merged | grep -v "\*\|default"|xargs -n 1 git branch -d
git checkout -b ${BRANCH} ${SHA OF REVISION TO RESSURRECT}
git --single-branch --branch=${BRANCHNAME} --depth 1 ssh://git@${DOMAIN}/${DIR}/${REPO}.git clone
git branch --merged | grep -v "\*\|default"|xargs -n 1 git branch -d
git checkout -b ${BRANCH} ${SHA OF REVISION TO RESSURRECT}
| #!/bin/bash | |
| BUCKET=$1 | |
| KEY=$2 | |
| EARL=${BUCKET}/${KEY} | |
| NAME=$(md5 -q -s ${EARL}) | |
| aws s3 cp --quiet s3://${EARL} /tmp/${NAME} |
| from: https://forums.virtualbox.org/viewtopic.php?f=6&t=90233 | |
| probably not needed at all if you have extension pack installed on host but here it is. | |
| VB_VM_NAME="YOUR_VM_NAME_HERE" | |
| # Synchronize the time with the host every 60 seconds (Default 10 seconds) | |
| VBoxManage guestproperty set "${VB_VM_NAME}" "/VirtualBox/GuestAdd/VBoxService/--timesync-interval" 60000 | |
| # Adjust in drift increments of 1 second (Default 100 milliseconds) | |
| VBoxManage guestproperty set "${VB_VM_NAME}" "/VirtualBox/GuestAdd/VBoxService/--timesync-min-adjust" 1000 | |
| # Adjust if out of sync by more than 30 seconds (Default 20 minutes!) |
| #!/bin/bash | |
| INSTALL_ROOT=~ | |
| OCTO_DIR=${INSTALL_ROOT}/OctoPrint | |
| CURA_DIR=${OCTO_DIR}/cura | |
| USER=pi | |
| # WARNING: Work in progress not fully tested or scripted | |
| cd ${INSTALL_ROOT} |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.