µ
muOption + M
Example:27 µs
°
degreeShift + Option + 8
Example:32°C
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.
Our db is hosted on Amazon. Our web server can connect to the db. Connections to the db are not allowed outside of the web server.
This creates a tunnel from my local machine to the web server:
ssh -N -L 3307:my-rds-db.us-east-1.rds.amazonaws.com:3306 ec2-my-web-server.compute-1.amazonaws.com
#launchd
Usage
I have a bash script called foo.sh
that takes one command line argument, bar
. I want it to run every 60
seconds and load at startup.
- an XML
plist
is Apple Property List com.mydomain.foo.plist
Name of launchd plist file should be a reverse fqdn, like (this may not be required, but convention)com.mydomain.foo.plist
lives in$HOME/Library/LaunchAgents
and is ran as that user.com.mydomain.foo.plist
can also live/Library/LaunchDaemons
or/Library/LaunchAgents
, have requirements, ran asroot
- Load
plist
withlaunchctl load com.mydomain.foo.plist
- Unload
plist
withlauchctl unload com.mydomain.foo.plist
#!/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 |
^$\n
^((?!foo).)*$
find . -type d -name "node_modules" -prune -o -name "package.json" -type f -exec grep -L '"test"' {} \;
npm list