← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 149
  1. Docker Image Layers

    Each instruction in a Dockerfile (like RUN, COPY, or ADD) creates a new layer.

  2. Kubernetes Control Plane

    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.

  3. VSCode keybindings.json file

    My keybindings.json file, mostly for backup purposes: [ { "key": "ctrl+m", "command": "bookmarks.toggle", "when": "editorTextFocus && vim.active && vim.mode !

  4. 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).

  5. Install a Kubernetes Ingress

    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…

  6. Kubernetes Helm Releases

    When releasing with helm, the release name typically stays the same when you then upgrade a Helm chart.

  7. Difference: k8s configuration yaml vs helm Chart?

  8. Each cluster provider will have some sort of kubeconfig command so you can add a context locally, for whatever cluster.

  9. My `.bashrc` backup

    Just a backup for my own sake. eval "$(/opt/homebrew/bin/brew shellenv)" export PATH="$PATH:$HOME/.docker/bin:$HOME/Code/bin" alias ..

  10. # # 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-…

  11. Kubernetes `Rollout`

    In k8s, you don't "deploy", you "rollout".

  12. Kubernetes Helm Basics

    Helm is a package manager and templater.

  13. Kubernetes Cluster Management

    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

  14. Kubernetes Scaling

    CA - Cluster Autoscaling.

  15. When creating an application in kubernetes, there are a lot of values for the kind: field.

  16. VSCode *.code-workspace file

    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>…

  17. VSCode Tips and Snippet

    Open any compatible file: code <filename> To open a file that isn't in a workspace into a new window instead.

  18. VSCode settings.json file

    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…

  19. The `awk` Command

    Has some crossover abilities but really shines with displaying or translating column data.

  20. Kubernetes Namespace v Context

    This SO answer really helped.

  21. HPA = Horizontal Pod Autoscaler.

  22. State Software Design Pattern

    The State Design Pattern is a behavioral design pattern that allows an object to change its behavior when its internal state changes.

  23. Roles vs Permissions Set permissions to roles and assign roles to users.

  24. PHP Storm Ideavim File

    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

  25. Package Managers

    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…

  26. AWS Policy Elements

    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.

  27. Kubernetes Hierarchy

    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.

  28. The reason we can even use things in this modern world is because of abstraction.

  29. xargs tips

    XARGS things to remember xargs -p will show the command find .

  30. Need: Get some code coverage up for unit tests in vscode.

  31. SOLID Progamming Principles

    The Principles: Single Responsibility - the class should do one thing and thus would only have one stakeholder with a reason to change it.

  32. 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

  33. Big O Notation (and Drills)

    Used to analyze worst-case (usually) complexity to check resource requirements for runtime as inputs increase.

  34. 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

  35. Mocking in Unit Tests

    In testing a specific class, you mock it's dependencies to make sure that class calls the dependency correctly.

  36. Networking

    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.

  37. I'm mostly used to simple deletes using where clauses, but I know a DBA who prefers to use joins.

  38. 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.

  39. How to find out what tables in a MySQL database have a specific column, by name.

  40. 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…

  41. To avoid this message: The default interactive shell is now zsh.

  42. Binary Math

    Binary Math Binary math is base 2.

  43. Fix Links in Devtools Console

    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.

  44. Reminder about PHP TS vs NTS

    From PHP Documentation: Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows.

  45. Useful Git Snippets

    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>...

  46. Find, based on Time

    GAME.

  47. Bitwise Operators

    Bitwise Operators $a & $b And Bits that are set in both $a and $b are set.

  48. 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.

  49. Finding Your Public IP Address

    How to find IP of my router (public IP).

  50. await pauses the execution of an async function until the awaited promise resolves or rejects.