Skip to content

Instantly share code, notes, and snippets.

View dvinciguerra's full-sized avatar
:octocat:
Bite my shine metal class!!!

Daniel Vinciguerra dvinciguerra

:octocat:
Bite my shine metal class!!!
View GitHub Profile

The Unofficial 37signals/DHH Rails Style Guide

About This Document

This style guide was generated by Claude Code through deep analysis of the Fizzy codebase - 37signals' open-source project management tool.

Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.

How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not just what patterns are used, but why - inferring philosophy from implementation choices.

@dvinciguerra
dvinciguerra / end.gcode
Last active August 19, 2025 19:26
Creality Ender 3 start/end gcode
; Ender 3 Custom End G-code
M117 Está pronto, cade minha cerveja.
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning
@dvinciguerra
dvinciguerra / answerfile
Created October 6, 2024 13:00 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@dvinciguerra
dvinciguerra / irc.md
Created October 3, 2024 13:49 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@dvinciguerra
dvinciguerra / keybase.md
Created June 20, 2024 01:42
keybase.md

Keybase proof

I hereby claim:

  • I am dvinciguerra on github.
  • I am dvinciguerra (https://keybase.io/dvinciguerra) on keybase.
  • I have a public key whose fingerprint is 17BC 3FE1 FC83 FD2A 028D 2FF8 6B3E 087D F911 8A61

To claim this, I am signing this object:

@dvinciguerra
dvinciguerra / uptime_parser.rb
Created May 24, 2024 21:53
Ruby uptime cli stdout parsing
# getting uptime stdout
str = `uptime`
pp(str);
# parsing uptime
str.match(
/^(?<current>\d+:\d+)\s+(?<message>up (?<amount>\d+) (?<unit>days|minutes|seconds)),\s+(?<boot_at>\d+:\d+),\s+(?<users>(?<user_count>\d+) user|users),\s+(?<load_avgs>.*)\s$/
)
@dvinciguerra
dvinciguerra / gist:700682c7755ad14ad774d425141a662b
Created April 9, 2024 16:22 — forked from pulcheri/gist:2498951
Perl one-liner strings replace
first=$1
second=$2

# Replace
find -name *.cpp -or -name *.h | xargs grep "$first" -l  | xargs perl -pi -e "s/$first/$second/g"

a=getDefaultIncludes; b=get_include_dirs_def; find -name "*.py" -or -name "SC*" | xargs grep "$a" -l  | xargs perl -pi -e "s/$a/$b/g"

a=abc; b=def; find -name "*.cpp" -or -name "*.h" | xargs grep "$a" -l | xargs perl -pi -e "s/$a/$b/g"
@dvinciguerra
dvinciguerra / settings.json
Created January 17, 2024 12:25 — forked from diego3g/settings.json
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 14,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [80, 120],
"extensions.ignoreRecommendations": true,
"typescript.tsserver.log": "off",
"files.associations": {
@dvinciguerra
dvinciguerra / bot
Last active November 10, 2023 02:12
Ruby ChatGPT CLI to ask things without leave terminal
#!/usr/bin/env ruby
# _ _
# | |__ ___| |_
# | '_ \ _ \ _|
# |_.__\___/\__|
# Ruby ChatGPT CLI to ask things without leave terminal
# by dvinciguerra
require 'bundler/inline'
@dvinciguerra
dvinciguerra / twitch_channel_current_in_live.rb
Last active September 26, 2023 21:44
Twitch cli to check if channel is online without accessing browser or receive a push notification
# frozen_string_literal: true
require 'faraday'
require 'json'
require 'logger'
require 'oga'
require 'pastel'
module Twitch
module PageLoader