Skip to content

Instantly share code, notes, and snippets.

View olga-mir's full-sized avatar
💡

Olga Mirensky olga-mir

💡
View GitHub Profile
@olga-mir
olga-mir / deepClone_DefinedPropertiesNotCopied.md
Last active February 12, 2019 00:50
Lodash cloneDeep does not copy defined properties
$ node
> const _ = require('lodash')
undefined

> let a = { orig: 'obj' }
undefined

> a
{ orig: 'obj' }
@olga-mir
olga-mir / nodes-allocations.sh
Last active June 2, 2022 05:47
nodes-allocations.sh
#!/bin/bash
set -euo pipefail
#WORKERPOOLS=(
# "your-label=your-poolname" # <------ REPLACE with your nodepools which is basically a label, `k get nodes --show-labels`
# # add more as needed
#)
# output/{CONTEXT}/${SAFE_DATE}/
@olga-mir
olga-mir / getting-started-aws-cdk-go.md
Last active June 22, 2022 09:01
getting started with AWS CDK for Go
$ cdk init --language=go
Applying project template app for go
# Welcome to your CDK Go project!

This is a blank project for CDK development with Go.

**NOTICE**: Go support is still in Developer Preview. This implies that APIs may
change while we address early feedback from the community. We would love to hear
about your experience through GitHub issues.
@olga-mir
olga-mir / Cheatsheet.md
Last active January 2, 2024 20:13
VSCode + Vim Productivity

Quick shortcuts

  • replace single word at cursor: ciw
  • replace all occurrences of the same word at cursor: :%s/\<<C-r><C-w>\>/newword/g (press Ctrl r, Ctrl w)

Actions

Trim terminal snippets

Turn lines copied from terminal into shareable snippets.

@olga-mir
olga-mir / command
Created September 20, 2024 04:11
Cluster Loader 2 - demo
```
cl2 --testconfig={{ .REPO_ROOT }}/test/cl2/test.yaml --kubeconfig={{ .KUBECONFIG }} --report-dir={{ .REPO_ROOT }}/cl2-output --provider=gke
```
for kind: `--provider=kind`
for debug: `--v=5`
@olga-mir
olga-mir / AutoscalingListener.yaml
Last active April 14, 2025 23:21
ARC POC misc dumps
apiVersion: actions.github.com/v1alpha1
kind: AutoscalingListener
metadata:
annotations:
actions.github.com/runner-spec-hash: 79c88b49bd
actions.github.com/values-hash: 725eed0f592117de1b6814f43bfaa6b32c7fba769d06c0d76765cbf3b6de6dc
creationTimestamp: "2025-04-10T10:23:50Z"
finalizers:
- autoscalinglistener.actions.github.com/finalizer
generation: 1
actionssecrets                    actions.github.upbound.io/v1alpha1      false   ActionsSecret
actionsvariables                  actions.github.upbound.io/v1alpha1      false   ActionsVariable
environmentsecrets                actions.github.upbound.io/v1alpha1      false   EnvironmentSecret
environmentvariables              actions.github.upbound.io/v1alpha1      false   EnvironmentVariable
organizationactionssecrets        actions.github.upbound.io/v1alpha1      false   OrganizationActionsSecret
organizationactionsvariables      actions.github.upbound.io/v1alpha1      false   OrganizationActionsVariable
organizationpermissions           actions.github.upbound.io/v1alpha1      false   OrganizationPermissions
repositoryaccesslevels            actions.github.upbound.io/v1alpha1      false   RepositoryAccessLevel
repositorypermissions             actions.github.upbound.io/v1alpha1      false   RepositoryPermissions