Skip to content

Instantly share code, notes, and snippets.

View kassah's full-sized avatar

William Lightning kassah

  • Portland, OR, USA
View GitHub Profile
@kassah
kassah / esphome-pool-pump-partial.yaml
Created June 27, 2023 21:30
Pool pump time ran so far today
globals:
# Pump on today in minutes, this should range from 0-1440
- id: pump_on_today_minutes
type: int
restore_value: yes
initial_value: '0'
- id: pump_on_last_minute
type: boolean
restore_value: no
@kassah
kassah / Bootstrap.php
Created October 20, 2022 22:03
Multi-database testing utilizing Laravel Multitenancy & MySQL while utilizing existing Laravel RefreshDatabase trait.
<?php
// in tests/Bootstrap.php
// Only run this in the case of non-parallel testing. Parallel testing is handled through events registered on.
// App/Providers/TestDatabaseProvider
if (getenv('LARAVEL_PARALLEL_TESTING') === false) {
require('vendor/autoload.php');
/** @var \Illuminate\Foundation\Application $app */
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
#!/usr/bin/env bash
echo "Fetching possible namespaced resource types."
resources=$(kubectl api-resources --verbs=list --namespaced -o name | xargs | sed -e 's/ /,/g')
echo "Storing each namespace contents into it's own directory..."
for ns in $(kubectl get -o=name ns | xargs basename)
do
echo "Storing namespace ${ns}..."
for n in $(kubectl -n ${ns} get -o=name ${resources})
do
@kassah
kassah / keebase.md
Created February 1, 2020 16:40
keebase.md

Keybase proof

I hereby claim:

  • I am kassah on github.
  • I am kassah (https://keybase.io/kassah) on keybase.
  • I have a public key ASAMlIK0zMFdD-u70jo38WbcxsJL41uy0lx9u7osRVzDTQo

To claim this, I am signing this object:

@kassah
kassah / gist:345751
Created March 27, 2010 05:38
Script that grabs 32bit libs from xorg-edgers that match your 64bit libs
#!/usr/bin/php
<?php
$pkgs = array(
"libdrm2",
"libdrm-intel1",
"libgl1-mesa-dri",
"libgl1-mesa-glx",
"libglu1-mesa"
);