See my blog for more information.
- Adjust settings in vars.auto.tfvars.
- Run with terraform init && terraform apply
Content:
See my blog for more information.
Content:
""" | |
The starter system has the following features: | |
- single market | |
- binary forecast from simple MAV | |
- exit from trailing stop loss | |
- fixed positions once in trade | |
""" |
#!/bin/bash | |
text="/** | |
* Copyright (c) 2017-present, Facebook, Inc. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
" |
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# See your gpg public key: | |
gpg --armor --export YOUR_KEY_ID | |
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"cloudtrail:LookupEvents" | |
], | |
"Resource": [ | |
"*" | |
], |
Would advise you all to practice just for fun. I know a lot of students don't get much practice for interviews.
#!/bin/bash | |
oldconfigname="$1" | |
newconfigname="$2" | |
ami="$3" | |
KEYNAME="my_keypair_name" | |
ASGROUP="my_autoscaling_group_name" | |
SECURITYGROUP="sg-1234" | |
INSTANCETYPE="t2.micro" |
#!/usr/bin/env bash | |
usage() { | |
echo "$(basename $0) VM" | |
} | |
get_vm_id() { | |
qm list | awk '/'"${1}"'/ { print $1 }' | |
} |