Skip to content

Instantly share code, notes, and snippets.

View Loupeznik's full-sized avatar

Dominik Zarsky Loupeznik

View GitHub Profile
@Loupeznik
Loupeznik / get_and_decode_k8s_secret.ps1
Last active June 14, 2025 18:18
Get and decode k8s secret values via powershell
kubectl get secret <secret_name> -o json | `
ConvertFrom-Json | `
ForEach-Object { $_.data.PSObject.Properties } | `
ForEach-Object { "$($_.Name): $([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_.Value)))" }
@zeljic
zeljic / build_sqlite3_lib.md
Last active July 6, 2025 10:35
Build SQLite3 .lib file on windows

How to build SQLite3 .lib file on Windows 10

  1. Download source from source

    For example: source https://www.sqlite.org/2023/sqlite-amalgamation-3430100.zip

  2. Download binary from binary

    For example: binary https://www.sqlite.org/2023/sqlite-dll-win64-x64-3430100.zip

  3. Extract both archives to the same directory

@adamwathan
adamwathan / Uppercase.php
Created December 1, 2017 23:55
Unit Testing Custom Validation Rules
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class Uppercase implements Rule
{
public function passes($attribute, $value)
{