-
-
Save dacbd/8b7673cecc27989c99f7611e3d1c4be6 to your computer and use it in GitHub Desktop.
some remote machine debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| os.WriteFile("/tmp/log.txt", []byte(fmt.Sprintf("%s \n %v \n %w", project, res, err)), os.ModeAppend) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| wget https://go.dev/dl/go1.18.1.linux-amd64.tar.gz | |
| rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz | |
| echo "export PATH=$PATH:/usr/local/go/bin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| rm -rf .terraform/ | |
| rm .terraform.lock.hcl | |
| pushd terraform-provider-iterative | |
| make build | |
| make install | |
| popd | |
| terraform init | |
| rm terraform.tfstate | |
| cp terraform.tfstate.backup ./terraform.tfstate |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo systemd-run --pty --same-dir --wait --collect --service-type=exec bash -c 'ls'