50 capítulos
- Gên. 1
- Gên. 2
| #!/bin/bash | |
| # Check out the latest version at https://gist.github.com/mniak/09e5e46425ced7e3fe1c1661c24a0d8c | |
| ## CUSTOMIZATION SECTION: Type your own code below. You can add or remove lines if you need/want | |
| package main | |
| import ( | |
| "bytes" | |
| "errors" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/exec" | |
| "path/filepath" |
| FROM ubuntu:impish | |
| RUN apt-get update | |
| RUN apt-get install -y openssh-server | |
| RUN apt-get install -y git | |
| # Install Terraform CLI | |
| RUN apt-get install -y gnupg software-properties-common curl | |
| RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - | |
| RUN apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" |
| #!/bin/bash | |
| ## Install as script in local directory | |
| # wget https://gist.githubusercontent.com/mniak/1fd10046799c612bcdf1bf807450f08b/raw/mktf.sh; chmod +x mktf.sh | |
| ## Install as system-wide tool in a development box | |
| # su | |
| # curl -o /bin/mktf https://gist.githubusercontent.com/mniak/1fd10046799c612bcdf1bf807450f08b/raw/mktf.sh; chmod +x /bin/mktf | |
| LEVELNAME_ROOT="root" | |
| LEVELNAME_REGION="region" | |
| LEVELNAME_ENV="env" |
| # ===================================================================== # | |
| # BASIC CONFIGURATION | |
| # ===================================================================== # | |
| # Default values are specified by `null` instead of the builtin default value, | |
| # so they can be overridden by the default.yaml mechanism documented at the | |
| # end of this file. | |
| # Arch: "default", "x86_64", "aarch64". | |
| # Default: "default" (corresponds to the host architecture) |
| import json | |
| def modify(content): | |
| content["Injected"] = "Luidna" | |
| return content | |
| def request(flow): | |
| if flow.request and flow.request.content: | |
| content = json.loads(flow.request.content) | |
| new_content = modify(content) |
| const START_COLUMN = 0 | |
| const STOP_COLUMN = 1 | |
| const MAX_ROW = 1000 | |
| function FormattedDate as string | |
| FormattedDate = Format(Now, "yyyy-mm-dd hh:mm:ss") | |
| end function | |
| sub Checkpoint | |
| let sheet = ThisComponent.CurrentController.ActiveSheet |