Variables are immutable by default. This makes Rust safer and makes concurrency easier.
Immutable means once a value is bound to that variable, it cannot be changed.
For example:
fn main() {
let x = 5;
#!/usr/bin/env bash | |
# ____ __ __ __ __ _ | |
# ____ ___ / __/___ _/ /_ / /_ ____ _/ /_/ /_(_) | |
# / __ `__ \/ /_/ __ `/ __ \/ __ \/ __ `/ __/ __/ / | |
# / / / / / / __/ /_/ / /_/ / / / / /_/ / /_/ /_/ / | |
#/_/ /_/ /_/_/ \__, /_.___/_/ /_/\__,_/\__/\__/_/ | |
# /____/ | |
# | |
# https://gist.github.com/mfgbhatti/2c2ea5da5d6d7e608d90fd43d4daa4a8 |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
<%* | |
//v1.4: Adding option for including a header for each DNP day to fold | |
//'first' will add to top of file. 'last' will add to bottom of file | |
let firstOrLastLine = 'first'; | |
//Name of the Quick Capture file. Do NOT include extension '.md' | |
let qcFileName = 'Quick Capture'; | |
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault) |
Fetch details of an existing RKE cluster template:
data "rancher2_cluster_template" "hardened" {
name = "hardened-template"
}
or create a new RKE cluster template:
#!/bin/bash | |
export version=v4.2.8 | |
export os=linux | |
export arch=amd64 | |
##################################### | |
curl -O https://get.gravitational.com/teleport-$version-$os-$arch-bin.tar.gz | |
tar -xzf teleport-$version-$os-$arch-bin.tar.gz |
[wsl2] | |
kernel=C:\\Users\\JAKA\\vmlinux |
--- | |
variables: | |
terraform_image: terraform-vault-jq | |
default: | |
image: | |
name: $terraform_image | |
cache: | |
key: terraform | |
paths: |
image: docker:19.03 | |
variables: | |
REPOSITORY_URL: <AWS_ACCOUNT_ID>.dkr.ecr.<REGION_NAME>.amazonaws.com/<ECR_REPOSITORY_NAME> | |
REGION: <REGION_NAME> | |
TASK_DEFINITION_NAME: <TASK_DEFINITION_NAME> | |
CLUSTER_NAME: <CLUSTER_NAME> | |
SERVICE_NAME: <SERVICE_NAME> | |
CPU: <CPU> | |
MEMORY: <MEMORY> |