One off jobs in Mac OS X can be scheduled using the zsh command sched
to run a script in 10 minutes:
sched +600 /path/to/my-script.sh
One off jobs in Mac OS X can be scheduled using the zsh command sched
to run a script in 10 minutes:
sched +600 /path/to/my-script.sh
# install pyenv
curl https://pyenv.run | bash
# set env vars to support pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
Specify differences between to branches and only files with a specific filename:
git diff topic..main -- './file1.txt' '**/file1.txt'
We have several resources manually created using the AWS Console. I want to manage these resources with Terraform. Originally, I had imported these resources into the Terraform state using individual files. Instead, I should have used modules. I tried moving my files into modules and then using the module to refer to the resource, but the namespace was incorrect. Applying changes at this point would have destroyed and recreated the resources, which is unnecessary.
This is how I moved the resources within the state. This should work for any resource listed in the Terraform state.
Copy over any resouces declarations to the module format. I didn't rename anything, but I think it is possible at this point.
#!/bin/bash | |
if test -z "$1"; then | |
echo "Usage: $0 <prompt>" | |
exit 1 | |
fi | |
if test -z "$OPENAI_API_KEY"; then | |
echo "OpenAI key is missing - \$OPENAI_API_KEY must be set" | |
exit 1 |