Skip to content

Instantly share code, notes, and snippets.

View NorikDavtian's full-sized avatar
🚢
Shipping

Norik Davtian NorikDavtian

🚢
Shipping
View GitHub Profile
@NorikDavtian
NorikDavtian / agent.sh
Last active February 14, 2026 08:17
Run a multi agent Solo Software Shop
#!/bin/bash
###############################################################################
# agent.sh — Multi-Agent Development Pipeline
#
# Usage:
# ./agent.sh # Run full daily cycle
# ./agent.sh plan # Run only the planning agent
# ./agent.sh dev # Run only the dev agent
# ./agent.sh review # Run only the code review agent
# ./agent.sh fix # Run only the fix agent
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// ©jdehorty
// @version=5
indicator('Machine Learning: Lorentzian Classification', 'Lorentzian Classification', true, precision=4, max_labels_count=500)
import jdehorty/MLExtensions/2 as ml
import jdehorty/KernelFunctions/2 as kernels
type Settings
@NorikDavtian
NorikDavtian / monorepo.package.json
Last active August 31, 2024 19:05
To run a backend and frontend from a monorepo in parallel
{
"name": "norik-io-monorepo",
"private": true,
"version": "0.0.0",
"scripts": {
"develop:backend": "yarn --cwd backend develop",
"develop:frontend": "wait-on http://localhost:1337/admin && yarn --cwd frontend develop -- -p 8080",
"develop": "cross-env FORCE_COLOR=1 npm-run-all -l -p develop:*"
},
"devDependencies": {
@NorikDavtian
NorikDavtian / Alpine.Dockerfile
Last active September 3, 2024 04:01
Static site dockerfile for static site with busybox minimal httpd server
FROM alpine
ADD . /app/
WORKDIR /app
/ # echo $0
/bin/sh
/ # exit
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func handler(w http.ResponseWriter, r *http.Request) {
kubectl get all -A
kubectl delete all --all --all-namespaces

UID generation from EPOCH

SELECT UNIX_TIMESTAMP() * 1e3 + 1;
+--------------------------+
|UNIX_TIMESTAMP() * 1e3 + 1|
+--------------------------+
DELIMITER $$
CREATE PROCEDURE LOADGEN(SIZE INT)
DETERMINISTIC
READS SQL DATA
BEGIN
DECLARE i INT unsigned DEFAULT 1;
WHILE (i <= SIZE)
DO
INSERT INTO ping(name) VALUES ('ping');
INSERT INTO ping(name) VALUES ('pong');
kubectl config set-context dev-342