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
  
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
@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

@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 / 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 / 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 }) => {