Skip to content

Instantly share code, notes, and snippets.

@fguillen
fguillen / ruby_dev_mac_setup.rb
Last active January 17, 2025 15:26
Ruby dev Mac setup
# Execute:
# curl -o /tmp/ruby_dev_mac_setup.rb https://gist.githubusercontent.com/fguillen/dd5600dd45dbac993578e288e1f9f77a/raw/ruby_dev_mac_setup.rb && ruby /tmp/ruby_dev_mac_setup.rb
COMMANDS = [
{
description: "Install XCode command line tools",
command: "xcode-select --install",
already_installed: "xcode-select --print-path"
},
{
@fguillen
fguillen / lines_per_commit_counter.sh
Created June 11, 2025 13:56
Script to count the number of lines written on each commit and calculating num lines/hour
#!/bin/bash
# Navigate to your Git repo before running this script
# LLM generated
commits=($(git rev-list --reverse HEAD))
prev_time=0
printf "%-10s | %-30s | %-14s | %-17s | %s\n" "Commit" "Message" "Lines Changed" "Hours Since Last" "Lines/Hour"