Skip to content

Instantly share code, notes, and snippets.

View millancore's full-sized avatar
💪
Helping to create great products

Juan Esteban Millan millancore

💪
Helping to create great products
View GitHub Profile
@millancore
millancore / npm-audit.sh
Created April 1, 2026 13:10
NPM Audit Table format with jq
#!/usr/bin/env bash
# npm-audit: Run npm audit and display results in a table view using jq + column
# Usage: npm-audit [--severity critical|high|moderate|low|info]
set -euo pipefail
FILTER=""
usage() {
echo "Usage: npm-audit [--severity critical|high|moderate|low|info]"
@millancore
millancore / vrg.sh
Created March 25, 2026 09:39
Search, Jump & Edit with Nvim
#!/bin/bash
vrg() {
local result file line
result=$(
rg --line-number \
--glob '!vendor' \
--glob '!node_modules' \
"$1" |
#!/bin/bash
tabs=$(curl -s http://localhost:9222/json | jq -r '.[] | select(.type == "page") | "\(.title)\t\(.id)"')
selected=$(echo "$tabs" | cut -f1 | fuzzel --dmenu -p "Tab: ")
[ -z "$selected" ] && exit 0
tab_id=$(echo "$tabs" | grep -F "$selected" | head -1 | cut -f2)
# Activar pestaña via CDP
<?php
namespace App\Libraries;
use CodeIgniter\Config\View as ViewConfig;
use CodeIgniter\View\Exceptions\ViewException;
use CodeIgniter\View\RendererInterface;
use Millancore\Pesto\Environment as PestoEngine;
use Millancore\Pesto\PestoFactory;
use RuntimeException;
@millancore
millancore / generate.php
Created November 25, 2024 19:32
Faker generate dataset
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Faker\Factory;
if (file_exists('data.csv')) {
unlink('data.csv');
}