Skip to content

Instantly share code, notes, and snippets.

View tbobm's full-sized avatar
☁️
cloudy

Théo "Bob" Massard tbobm

☁️
cloudy
View GitHub Profile
@tbobm
tbobm / gh-cli-get-latest-releases.sh
Created August 17, 2023 08:49
Retrieve the latest releases for a repository - easily lookup latest major versions for a github actions
gh releases list -R owner/repository
# example: gh releases list -R actions/checkout
2021-12-22T13:01:01.946+0100 [INFO] Terraform version: 1.1.2
2021-12-22T13:01:01.946+0100 [INFO] Go runtime version: go1.17.2
2021-12-22T13:01:01.946+0100 [INFO] CLI args: []string{"/home/bob/.asdf/installs/terraform/1.1.2/bin/terraform", "taint", "data.archive_file.test"}
2021-12-22T13:01:01.946+0100 [DEBUG] Attempting to open CLI config file: /home/bob/.terraformrc
2021-12-22T13:01:01.946+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-12-22T13:01:01.946+0100 [INFO] Loading CLI configuration from /home/bob/.terraform.d/credentials.tfrc.json
2021-12-22T13:01:01.946+0100 [DEBUG] checking for credentials in "/home/bob/.terraform.d/plugins"
2021-12-22T13:01:01.946+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-12-22T13:01:01.946+0100 [DEBUG] will search for provider plugins in /home/bob/.terraform.d/plugins
2021-12-22T13:01:01.946+0100 [DEBUG] ignoring non-existing provider search directory /home/bob/.local/share/terraform/plugins

Keybase proof

I hereby claim:

  • I am tbobm on github.
  • I am tbobm (https://keybase.io/tbobm) on keybase.
  • I have a public key ASDtytHCa4sO8rI8S57ZqZOzJZtjYJwq2X_aO5sMrx3fIQo

To claim this, I am signing this object:

04da008b3466d5e956c5513800ba665f8238c9b83666f79342b60f395e11321b99e1a4a7be6fa4666e3a90fbcaf5bf428a28391d0cb16db3990d796916d89831e4
@tbobm
tbobm / 1.sh
Last active October 6, 2017 09:52
cat file1.txt file2.txt file3.txt > merged.txt # Combine the 3 files into one
sort merged.txt > combined.txt # Sort the different lines
head -n 2 combined.txt # Show the first 2 lines to stdout
# Onliner:
# cat file1.txt file2.txt file3.txt | sort | tee combined.txt | head -n 2
int main()
{
Droid d;
Droid d1("Avenger");
size_t Durasel = 200;
std::cout << d << std::endl;
std::cout << d1 << std::endl;
d = d1;
d.setStatus(new std::string("Kill Kill Kill!"));