- power on computer
- press "del" key during startup to enter bios
- Enter BIOS setup.
- select "Chipset" tab
- select “PCH-IO Configuration” and press the Enter key.
- select “State After G3”.
These settings will allow the HP to restart after a power loss. Useful if the computer is running as a headless server.
From https://www.youtube.com/watch?v=JVQutwAVYiY
- turn on computer
- immediately press F10 to enter bios
- select "Advanced" tab (arrow key left/right)
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
# 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.