This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| vrg() { | |
| local result file line | |
| result=$( | |
| rg --line-number \ | |
| --glob '!vendor' \ | |
| --glob '!node_modules' \ | |
| "$1" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| use Faker\Factory; | |
| if (file_exists('data.csv')) { | |
| unlink('data.csv'); | |
| } |