Skip to content

Instantly share code, notes, and snippets.

View chepetime's full-sized avatar
🎯
Focusing

José M. Gulias Lugo chepetime

🎯
Focusing
View GitHub Profile
brewm() {
local SECONDS=0 doctor=false
while [[ "$1" == -* ]]; do
case "$1" in
--doctor|-d) doctor=true; shift ;;
*) echo "Usage: brewm [--doctor]"; return 1 ;;
esac
done
echo "Updating Homebrew..."
export const strategies = [
{
id: 1,
strategy: "Abandon normal instruments",
},
{
id: 2,
strategy: "Accept advice",
},
{

AI Coding Evolution

This document describes an engineering maturity model for AI-assisted development, from manual coding to parallel autonomous execution across worktrees/branches.

It is intended to help us:

  • name the current operating mode clearly
  • understand the risks and constraints of each mode
  • define the next capability to add (instead of just "using more AI")
  • keep verification, review, and deployment discipline as autonomy increases
@chepetime
chepetime / json-debugger.tsx
Last active August 9, 2024 17:45
TS + React + Tailwind Component for debugging objects in the browser, with toggles
/* eslint-disable @typescript-eslint/no-explicit-any */
"use client";
import React, { useState } from "react";
interface JsonDebuggerProps {
data: any;
}
export const JsonDebugger: React.FC<JsonDebuggerProps> = ({ data }) => {
@chepetime
chepetime / update-heroku-env.sh
Created June 25, 2024 17:19
In case anybody is using Heroku in a project, I wrote this bash script to upload the .env variables. The script prompts the user for the app's name too.
#!/bin/bash
ENV_FILE="./.env"
set_heroku_env_vars() {
local app_name=$1
while IFS= read -r line
do
if [[ -z "$line" || "$line" =~ ^# ]]; then
@chepetime
chepetime / image-download-rezize-compress.sh
Created January 19, 2024 18:32
Shell Script for macOS: Download, Resize, and Compress Images from a CSV File using TinyPNG and ImageMagick
#!/bin/zsh
# Define the CSV file path. The CSV should contain two columns: filename and URL.
csvFile="images.csv"
# Provide your Tinify API Key. Replace with your actual key.
apiKey="#############################"
# Create directories for original, resized, and compressed images.
mkdir -p ./og
@chepetime
chepetime / useful-npx-commands.md
Created May 17, 2023 16:19 — forked from gokulkrishh/useful-npx-commands.md
List of useful npx (Node Package Runner) commands (https://git.io/useful-npx-commands)

NPX (NPM Package Runner) Commands

List of useful npx (NPM Package Runner) commands.

What is NPX?

Using NPX we can execute/run node binaries without the need to install it locally or globally.

Commands

  
brew install --cask 1password alfred alt-tab appcleaner contraste cyberduck dropbox hyper imageoptim kap keycastr kindle macdown macs-fan-control monitorcontrol numi plug postman responsively runjs sequel-pro skyfonts slack spark spotify telegram the-unarchiver transmission vlc whatsapp zoom
brew install --cask visual-studio-code figma slack
brew install --cask microsoft-teams microsoft-outlook
brew install --cask bartender
El método que armé para mejorar tu CV se resume en estos puntos:
— Estructurar el contenido y narrativa con un objetivo claro (Hacia el trabajo que quieres)
— Revisar, adaptar y mejorar el CV con el tiempo (retroalimentación de entrevistas, colegas, amigos, etc.)
— Optimizar el contenido para que seas fácil de encontrar (SEO)
1) ¿Dónde hago mi CV?
Usa una plataforma digital para crear tu CV. Tenerlo en Word/Pages/Photoshop/Figma solo hace que tardes más en actualizarlo, mejorarlo y arreglar errores. El plan es que no te preocupes por el diseño, si no por el contenido.
find . -type f -name "*" -exec rename "s/\s/_/g" {} \;