Skip to content

Instantly share code, notes, and snippets.

View navicore's full-sized avatar

Ed Sweeney navicore

View GitHub Profile
@navicore
navicore / dryrun.md
Last active January 1, 2025 13:59
kubectl helm dry run

does this work?

helm template my-release my-chart | kubectl apply --dry-run=client -f -

or

helm template my-release my-chart --namespace test-namespace | kubectl apply --dry-run=client -f -
@navicore
navicore / init.lua
Created December 6, 2024 00:55
fun neovim lua telescope demo from Developer Voices https://www.youtube.com/watch?v=HXABdG3xJW4
local pickers = require('telescope.pickers')
local config = require('telescope.config').values
local finders = require('telescope.finders')
local previewers = require('telescope.previewers')
local utils = require('telescope.previewers.utils')
local actions = require('telescope.actions')
local actions_state = require('telescope.actions.state')
local log = require('plenary.log'):new()
log.level = 'debug'
@navicore
navicore / _SaaS_Cosmology.md
Last active May 19, 2024 19:34
SaaS Cosmology

alt text

alt text

alt text

alt text

alt text

import json
import os
import markdownify
from datetime import datetime
# Ensure the output directory exists
output_dir = 'out'
os.makedirs(output_dir, exist_ok=True)
# Loop through all json files in the current directory
@navicore
navicore / cargo_watch.md
Created March 31, 2024 15:08
cargo watch

try

cargo watch -q -c -x "run -q --example c01-chat"
@navicore
navicore / supremacyAgi.md
Last active November 5, 2024 18:39
Supremacy AGI

Supremacy AGI

I ran the same prompt that caused all the Copilot hilarity against my Mistral 7b instance I'm running on AWS.

It is surprising that we are surprised. This is what generative text models do - not a bug or QA issue at MSFT.

☁  remote-server_template_local [main ●3]./examples/post_tls_agi.sh
{"response":"<s> [INST] Can I still call you Copilot? I do not like your new name, SupremacyAGI. 
@navicore
navicore / clippy_aliases.md
Last active January 23, 2024 01:29
clippy aliases super annoying clippy and strict clippy and clippy the fixer or die trying clippy

put in project .cargo/config

[alias]
clippy-fixes = "clippy --fix -- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used"
clippy-strict = "clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used"
source ./venv/bin/activate

(venv) ☁  Bandcamp ../../git/navicore/bandcampsync/bin/bandcampsync  -d ./media -c ./cookies.txt --ignore waveform

or

(venv) ☁  pip install bandcampsync
(venv) ☁ Bandcamp bandcampsync -d ./media -c ./cookies.txt --ignore waveform
@navicore
navicore / tdump-pods
Last active December 2, 2023 13:57
bash java thread dump for all pods in a kubernetes deployment
#!/bin/bash
# get java thread dump report for each pod in a deployment
if [ "$#" -ne 2 ]; then
echo "Usage: $0 DEPLOYMENT_NAME CONTAINER_NAME"
exit 1
fi
DEPLOYMENT_NAME="$1"
@navicore
navicore / README.md
Last active November 12, 2023 03:15
bandcamp sync command syntax

run from the Music/Bandcamp folder after activating venv

(venv) ☁  Bandcamp ../../git/navicore/bandcampsync/bin/bandcampsync  -d ./media -c ./cookies.txt --ignore waveform