BlockchainCommons / Learning-Bitcoin-from-the-Command-Line

A complete course for learning Bitcoin programming and usage from the command
3.15k stars 761 forks source link

Is it possible to compile this book to pdf? #601

Open younicoin opened 1 year ago

younicoin commented 1 year ago

Hello. This is very useful info. The project has extended Readme. I also would like to have a paragrapgs "Build md", "Convert to pdf". Is it possible to get pdf version with all necessary code examples from src and with pics also?

younicoin commented 1 year ago

finally did with grip and wkhtmltopdf https://github.com/younicoin/crypto_docs/blob/master/Learning-Bitcoin-from-the-Command-Line.pdf

grip 06_1_Sending_a_Transaction_to_a_Multisig.md 6655
while read l; do for i in `ls ${l}_*`; do grip $i 6699 & sleep 3; wkhtmltopdf http://localhost:6699 /mnt/disk-evo-500-2/temp/ll/${i}.pdf; sleep 2.5; fuser 6699/tcp -k; done; done < <(echo `seq -w 20` A1 A2 A3 | tr ' ' '\n')
   GitHub imposes a limit of 60 requests/hour when using their API without authentication.
#increase dealy to 20 seconds
while read l; do for i in `ls ${l}_*`; do grip $i 6699 & sleep 10; wkhtmltopdf http://localhost:6699 /mnt/disk-evo-500-2/temp/ll2/${i}.pdf; sleep 10; fuser 6699/tcp -k; done; done < <(echo `seq -w 20` A1 A2 A3 | tr ' ' '\n')

qpdf --empty --pages `ls -tr` -- ../combined.pdf
shannona commented 1 year ago

That looks like a terrific resource @younicoin. Please feel to upload it in a PR as something like lbtcftcl-v220.pdf and I'd love to link it in for other people to use.

younicoin commented 1 year ago

yes, you are right. prepared my repository with your advice https://github.com/younicoin/crypto_docs