Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Each instruction in a Dockerfile (like RUN, COPY, or ADD) creates a new layer.
-
Control Plane is a group of components to run the cluster; Data Plane is everything that is actually the app and things supporting the app.
-
My keybindings.json file, mostly for backup purposes: [ { "key": "ctrl+m", "command": "bookmarks.toggle", "when": "editorTextFocus && vim.active && vim.mode !
-
When I first started using git many years ago, you would be working pretty blind on the command line (and I don't know of any GUI tools at the beginning).
-
Install an Ingress controller Create a Cluster (using kind) cat <<EOF | kind create cluster --name kind-ingress --config=- kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane extraPortMappings: - containerPort: 80…
-
When releasing with helm, the release name typically stays the same when you then upgrade a Helm chart.
-
Difference: k8s configuration yaml vs helm Chart?
-
Each cluster provider will have some sort of kubeconfig command so you can add a context locally, for whatever cluster.
-
Just a backup for my own sake. eval "$(/opt/homebrew/bin/brew shellenv)" export PATH="$PATH:$HOME/.docker/bin:$HOME/Code/bin" alias ..
-
# # v split: C-space, then | or \ # h split: C-space, then - # cycle through splits: C-space, then o # view split by number: C-space, then q, then the number you want to go to while they are still visible # rename window: C-space, then , # kill window: C-…
-
In k8s, you don't "deploy", you "rollout".
-
Helm is a package manager and templater.
-
This reflects how I currently understand this, and may be incorrect: kops: create k8s clusters that you manage yourself, on whatever provider (AWS, Azure, etc) eksctl: create k8s clusters managed by AWS kubeadm: more basic k8s clusters, like if I was doing
-
CA - Cluster Autoscaling.
-
When creating an application in kubernetes, there are a lot of values for the kind: field.
-
An example of a <something>.code-workspace file, mostly for backup purposes: { "folders": [ { "path": "/Users/ha/Code/<app-name>" } ], "settings": { "php.executablePath": "docker compose exec -it <app-name>…
-
Open any compatible file: code <filename> To open a file that isn't in a workspace into a new window instead.
-
My settings.json file as of 2024-10-31, mostly for backup purposes: { “workbench.settings.openDefaultKeybindings”: true, “workbench.startupEditor”: “none”, “workbench.editor.highlightModifiedTabs”: true, “workbench.editor.pinnedTabsOnSepar…
-
Has some crossover abilities but really shines with displaying or translating column data.
-
This SO answer really helped.
-
HPA = Horizontal Pod Autoscaler.
-
The State Design Pattern is a behavioral design pattern that allows an object to change its behavior when its internal state changes.
-
Roles vs Permissions Set permissions to roles and assign roles to users.
-
Note: Need to restart PHP Storm after any change to take effect. let mapleader = " " set ignorecase smartcase set hlsearch set is hlsearch set clipboard+=unnamed " toggle comments vnoremap gc :action CommentByLineComment<CR> " In/Out dent vnoremap < <gv
-
Here’s a detailed table summarizing popular package managers and their key features, along with links to their official resources: Package Manager Software Ecosystem Versioning Features Official Site APT Debian, Ubuntu Semantic (semver) and package-specif…
-
Some elements of an AWS policy include: SID (optional): Statement ID used to identify the purpose of the policy statement, especially with a policy with multiple statements.
-
Hierarchy: Cluster (parent) --- Nodes Group (collection of machines) ----- Node (machines) ------- Pods (workload units on nodes) --------- Containers (running applications) Think of the Node as a hotel.
-
The reason we can even use things in this modern world is because of abstraction.
-
XARGS things to remember xargs -p will show the command find .
-
Need: Get some code coverage up for unit tests in vscode.
-
The Principles: Single Responsibility - the class should do one thing and thus would only have one stakeholder with a reason to change it.
-
In laravel local, while devving vendor/bin/sail redis redis-cli (command, container, client) In forge/prod: # redis-cli // start the redis client > info Keyspace > select 1 // (db1, select 1; db0, select 0, etc) > keys * > flushall > get <key> Delete keys
-
Used to analyze worst-case (usually) complexity to check resource requirements for runtime as inputs increase.
-
Homebrew/brew MacOSX: brew --help brew commands brew list brew list php brew info php brew search php brew ls --versions Mac with M1/M3/M4: arch -arm64 brew install
-
In testing a specific class, you mock it's dependencies to make sure that class calls the dependency correctly.
-
In the subnet 192.168.1.0/30, the available addresses are as follows: CIDR Notation: /30 indicates that the first 30 bits of the IP address are the network portion, leaving 2 bits for host addresses.
-
I'm mostly used to simple deletes using where clauses, but I know a DBA who prefers to use joins.
-
I recently needed to find where some performance issues were and didn't have the time to download and figure out any real-life tools, but this basic system helped.
-
How to find out what tables in a MySQL database have a specific column, by name.
-
Generate a basic Laravel users.api_token: > $user = \App\Models\User::find(56); = App\Models\User {#4532 ... } > $user->api_token = \Illuminate\Support\Str::random(60); = "CKf4V3p9JjOYIfiGcT3qtPQDsXvuXMAkEFlUGTv3b5vpfmMkDehKAB7FOAja" > $user->save…
-
To avoid this message: The default interactive shell is now zsh.
-
Binary Math Binary math is base 2.
-
So, I'm right now working on moving hansanderson.com from a Wordpress-to-static S3 site to a Laravel Jigsaw-to-static S3 site.
-
From PHP Documentation: Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows.
-
Bring back a deleted file, after it's been committed and pushed: git checkout <deletion commit hash>~1 -- <filename> Get the most recent log entry: git log -1 Compare: https://github.com/ha17/foobar/compare/<sha or branch or tag>...
-
GAME.
-
Bitwise Operators $a & $b And Bits that are set in both $a and $b are set.
-
At an old job, every now and then we'd have a fire drill because, despite it being a large, capable organization, no one seems to track when an SSL cert expires.
-
How to find IP of my router (public IP).
-
await pauses the execution of an async function until the awaited promise resolves or rejects.