Skip to content

Instantly share code, notes, and snippets.

View mckernanin's full-sized avatar

Kevin McKernan mckernanin

View GitHub Profile
@mckernanin
mckernanin / functions.php
Created August 27, 2017 16:11
Enqueueing parent theme styles
<?php
function my_enquee_scripts() {
$label = 'parent-theme-styles';
$fileurl = get_template_directory_uri() . '/style.css';
wp_enqueue_style( $label, $fileurl );
}
add_action( 'wp_enqueue_scripts', 'my_enquee_scripts' );
@mckernanin
mckernanin / setup.sh
Created August 31, 2018 00:25
Scaffold a typescript project quickly
#!/bin/bash
yarn add dotenv express joi lodash morgan
yarn add -D nodemon ts-node types-installer typescript add-npm-scripts
yarn add-npm-scripts start "nodemon"
yarn add-npm-scripts build "tsc"
yarn types-installer
cat > nodemon.json <<EOL
{
"watch": ["src"],
@mckernanin
mckernanin / docker-compose.yml
Last active April 5, 2019 02:42
Example mongodb docker setup
version: "2"
services:
mongo:
image: mckernanin/mongo-auth:4.0.8
environment:
AUTH: "yes"
MONGODB_ADMIN_USER: admin
MONGODB_ADMIN_PASS: '**********' # set your admin password here
MONGODB_APPLICATION_DATABASE: appname # give the db a name
MONGODB_APPLICATION_USER: application
{
"nodes": [
{
"id": 30004553,
"name": "4-EP12"
},
{
"id": 30004552,
"name": "XF-TQL"
},
#!/bin/bash
COMMITS=$(git cherry -v main $1 | cut -d " " -f 2)
for COMMIT in $COMMITS
do
git checkout $COMMIT
./script.sh

Status — healthy

Both pods on 1.5.0, zero restarts in 35h (cognee-565499f776-bb2g6 up 2026-08-16T18:38:23Z, cognee-mcp-599df8d986-q9gwr up 18:53:50Z). The restart fix has now held across two container upgrades.

/health answers in 31 ms. One Readiness probe failed: context deadline exceeded event ~48 min before the sweep, no kill — liveness is TCP, so a slow /health no longer ends the pod.