Skip to content

Instantly share code, notes, and snippets.

@thikade
thikade / gcloud_cheatsheet.md
Last active September 28, 2019 18:25
gcloud Cheatsheet

GCLOUD CHEAT SHEET

Managing Builds

Docs

Managing Builds

Note

You can also run a build locally using the separate component: gcloud components install cloud-build-local.

list builds (10 last builds)

gcloud builds list --limit=10

@thikade
thikade / readme.md
Created September 30, 2019 06:20
bash arrays cheatsheet

Docs

Bash Arrays

Declaration

Syntax Description
ARRAY=() Declares an indexed array ARRAY and initializes it to be empty. This can also be used to empty an existing array.
ARRAY[0]= Generally sets the first element of an indexed array. If no array ARRAY existed before, it is created.
@thikade
thikade / aws-cli-commands.md
Created October 11, 2019 17:39
initial AWS cli user setup

install aws cli

configure cli

aws configure
AWS Access Key ID [None]: xxx
AWS Secret Access Key [None]: xxx
Default region name [None]: eu-west-3
Default output format [None]: text
@thikade
thikade / bootstrap.properties
Last active November 12, 2019 17:04
IBM Liberty JSON logging configuration
todo
@thikade
thikade / zfs_cheatsheet.md
Last active July 2, 2025 11:01
ZFS commands cheatsheet for snapshots etc

ZFS Pools

ZFS admin

  • All pools' status: zpool status
  • specific pools status: zpool status pdata1

Filesystems

@thikade
thikade / i_hate_websphere_jacc.md
Created January 17, 2020 15:56
Reconfigure JACC on WebSphere

Trace einschalten dmgr und nodeagent: =info:com.tivoli.pd.as.=all

JACC UNCONFIGURE

  • Goto Jacc Provider - Uncheck "enable JACC Provider"
  • click OK
  • switch to "Built in provider"
  • click OK
  • SAVE
  • STOP DMGR
@thikade
thikade / git sparse checkout.md
Created February 26, 2020 18:22
git sparse checkout procedure
git clone --no-checkout [email protected]:thikade/docker-jig.git
cd docker-jig
git config core.sparseCheckout true
echo "grafana/dashboards/*" > .git/info/sparse-checkout
git checkout thikade
@thikade
thikade / pucl_cheat_sheet.md
Last active September 7, 2020 11:22
IBM Packaging Utility CLI : pucl
@thikade
thikade / how-to-squash-commits-in-git.md
Last active March 27, 2020 15:11 — forked from patik/how-to-squash-commits-in-git.md
How to squash commits in git

Squashing Git Commits

The standard way that produces a single commit.

Use merge --squash to squash multiple commits into a single commit (without a merge commit!). Omitting -m at the final commit command will display all commit messages of bugfix branch and lets you edit the new commit message.

Switch to the master branch and make sure you are up to date:

git checkout master && git pull
@thikade
thikade / openshift_cli_tricks.MD
Last active April 3, 2020 13:34 — forked from tuxfight3r/openshift_cli_tricks.MD
openshift cli tricks - using go templates

openshift list all pods and their specs (requests/limits)

oc get pod -o jsonpath='{range .items[*]}{"SPEC:  \n  LIMITS  : "}{.spec.containers[*].resources.limits}{"\n  REQUESTS: "}{.spec.containers[*].resources.requests}{"\n"}{end}'

openshift list all pods and their specs with name (requests /limits)

oc get pod -o jsonpath='{range .items[*]}{"NAME:  "}{.metadata.name}{"\nSPEC:  \n  LIMITS  : "}{.spec.containers[*].resources.limits}{"\n  REQUESTS: "}{.spec.containers[*].resources.requests}{"\n\n"}{end}'