:pwd # List current Directory
:cd ${/some/dir} # Change to some dir
:e ${/some/file} # Edit some file
:term # Open a terminal
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "strconv" | |
| ) |
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
| ## List Docker CLI commands | |
| docker | |
| docker container --help | |
| ## Display Docker version and info | |
| docker --version | |
| docker version | |
| docker info | |
| ## Execute Docker image |
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
| name = { | |
| "example-pods" = "10.1.1.0/18" | |
| "example-services" = "10.1.2.0/23" | |
| } |
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
| gcloud compute networks subnets list-usable --flatten="secondaryIpRanges[]" \ | |
| --format="csv( | |
| ipCidrRange:label=RANGE, | |
| subnetwork.segment(-1):label=SUBNET_NAME, | |
| secondaryIpRanges.ipCidrRange:label=SECONDARY_RANGE, | |
| secondaryIpRanges.rangeName:label=Secondary_RANGE_NAME | |
| )" |
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
| locals { | |
| subnets = { | |
| subnet1 = { | |
| name = "subnet1" | |
| ip_cidr_range = "10.0.0.0/24" | |
| description = "description for subnet1" | |
| region = "region1" | |
| log_config = { | |
| aggregation_interval = "interval1" |
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
| services.udev.extraRules = '' | |
| SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",RUN+="${pkgs.power-profiles-daemon}/bin/powerprofilesctl set power-saver" | |
| SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="${pkgs.power-profiles-daemon}/bin/powerprofilesctl set performance" | |
| ''; |
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
| ## flake.nix | |
| { | |
| description = "A Nix flake for score-compose"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| idpbuilder-src = { | |
| url = "github:cnoe-io/idpbuilder?ref=v0.9.0"; | |
| flake = false; |
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
| // server.go | |
| package cmd | |
| import ( | |
| "encoding/csv" | |
| "fmt" | |
| "html/template" | |
| "log" | |
| "net/http" |