These parameters/arguments will go in specific registers: So, 59 is the rax, filename goes in rdi (/bin/sh), paramter to use with /bin/sh goes in rsi and environment variable (we really don't care ...
A repo that tried to centralize the time I learned the introductory to exploit development while studying for the OSCE (Offensive Security Certified Expert) certification.