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
@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" {} \;
rename -f 'y/A-Z/a-z/' *
@chepetime
chepetime / prettier-packagejson.sh
Created September 4, 2019 14:15
Normalize your package.json file
npx prettier-package-json --write ./package.json
const getUniqueElementsInTwoArrays = (x, y) => {
return String([...x, ...y].filter(el => !(x.includes(el) && y.includes(el))));
}
@chepetime
chepetime / find_and_kill_process_in_port.sh
Created August 21, 2019 15:28
Find ports and kill the process running in them
# Find all ports
sudo lsof -i -P -n | grep LISTEN
# Find a specific port
sudo lsof -i:52698
sudo lsof -i:8080
# Kill the process in a single port
fuser -k 52698/tcp
fuser -k 8080/tcp
@chepetime
chepetime / osx-for-hackers.sh
Created July 23, 2019 20:11 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx