Useful programs on linux
- fzf
- kubens
- kubectx
- tfenv
- nvm
Standard tools like
- kubectl
maha4472@knative-e2e:~/kubernetes$ cat ~/.ssh/config | |
# SSH over AWS Systems Manager Session Manager | |
host i-* mi-* | |
ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'" | |
User ubuntu | |
maha4472@knative-e2e:~/kubernetes$ CGO_ENABLED=0 make test-e2e-node REMOTE=true REMOTE_MODE=ssh HOSTS="i-02122ff7e9fd7ce37" SKIP="" PARALLELISM=1 FOCUS="Eviction" SSH_KEY=~/.ssh/google_compute_engine SSH_USER=ubuntu | |
go version go1.20.1 linux/amd64 | |
+++ [0224 15:30:11] Building go targets for linux/amd64 | |
github.com/onsi/ginkgo/v2/ginkgo (non-static) | |
go version go1.20.1 linux/amd64 |
==> Checking source code against gofmt... | |
==> Checking that code complies with gofmt requirements... | |
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google-beta -v -run=TestAccContainerNodePool_maxPodsPerNode -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google-beta/version.ProviderVersion=acc" | |
=== RUN TestAccContainerNodePool_maxPodsPerNode | |
=== PAUSE TestAccContainerNodePool_maxPodsPerNode | |
=== CONT TestAccContainerNodePool_maxPodsPerNode | |
2021/06/11 14:18:22 [INFO] Authenticating using DefaultClient... | |
2021/06/11 14:18:22 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email] | |
2021/06/11 14:18:22 [INFO] Authenticating using DefaultClient... | |
2021/06/11 14:18:22 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.g |
import boto3 | |
import os | |
def getLambdaSgs(): | |
lambdaclient = boto3.client('lambda', region_name=os.getenv("AWS_REGION")) | |
marker = None | |
lambdasgs = [] | |
while True: | |
if marker: |
==> Checking source code against gofmt... | |
==> Checking that code complies with gofmt requirements... | |
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google-beta -v -run TestAccStorageBucket_forceDestroyWithVersioning -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google-beta/v3/version.ProviderVersion=acc" | |
=== RUN TestAccStorageBucket_forceDestroyWithVersioning | |
=== PAUSE TestAccStorageBucket_forceDestroyWithVersioning | |
=== CONT TestAccStorageBucket_forceDestroyWithVersioning | |
2021/02/24 18:10:16 [INFO] Authenticating using DefaultClient... | |
2021/02/24 18:10:16 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email] | |
2021/02/24 18:10:22 [INFO] Authenticating using DefaultClient... | |
2021/02/24 18:10:22 [INFO] -- Scopes: [https://www.google |
REDACTED MCW0CDP3YY ~ go … github.com hashicorp terraform-provider-google-beta master 26⬇ 10✎ 6+ $ make testacc TEST=./google-beta TESTARGS='-run=TestAccComputeInstanceFromMachineImage' | |
==> Checking source code against gofmt... | |
==> Checking that code complies with gofmt requirements... | |
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google-beta -v -run=TestAccComputeInstanceFromMachineImage -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google-beta/version.ProviderVersion=acc" | |
=== RUN TestAccComputeInstanceFromMachineImage_basic | |
=== PAUSE TestAccComputeInstanceFromMachineImage_basic | |
=== RUN TestAccComputeInstanceFromMachineImage_overrideBootDisk | |
=== PAUSE TestAccComputeInstanceFromMachineImage_overrideBootDisk | |
=== RUN TestAccComputeInstanceFromMachineImage_overrideAttachedDisk | |
=== PAUSE TestAccComputeInstanceFromMachineImage_overrideAttachedDisk |
import googleapiclient.errors | |
import requests | |
from google.oauth2.credentials import Credentials | |
from googleapiclient.discovery import build | |
def GetCredentials(client_id, client_secret, refresh_token): | |
"""Convert ADC to access_token/Credential""" | |
params = { | |
"grant_type": "refresh_token", | |
"client_id": client_id, |
Useful programs on linux
Standard tools like
upo@helper-instance:~/ops-infra/packer$ packer build ansible.json | |
googlecompute output will be in this color. | |
==> googlecompute: Checking image does not exist... | |
==> googlecompute: Creating temporary SSH key for instance... | |
==> googlecompute: Using image: ubuntu-1804-bionic-v20190404 | |
==> googlecompute: Creating instance... | |
googlecompute: Loading zone: europe-west2-b | |
googlecompute: Loading machine type: n1-standard-1 | |
googlecompute: Requesting instance creation... |