<style type="text/css">a[data-mtli~="mtli_filesize420MB"]:after {content:" (4.20 MB)"}</style>{"id":3194,"date":"2017-07-02T15:12:09","date_gmt":"2017-07-02T13:12:09","guid":{"rendered":"http:\/\/monodes.com\/predaelli\/?p=3194"},"modified":"2017-07-02T15:12:09","modified_gmt":"2017-07-02T13:12:09","slug":"3194","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2017\/07\/02\/3194\/","title":{"rendered":""},"content":{"rendered":"<p>Ah, the magic of Bash!<\/p>\n<p><code class=\"\" data-line=\"\">for y in {1..30..7}; do<br \/>\nfor x in {60..1}; do<br \/>\nDA=$(date -d &quot;-$(($x+$y)) days&quot; +%Y-%m-%d);<br \/>\nA=$(date -d &quot;-$x days&quot; +%Y-%m-%d);<br \/>\necho -n &quot;Simulazione per $y giorni da $DA a $A: &quot;;<br \/>\n.\/zenbot.sh sim --strategy trend_ema_reversed --start $DA --end $A | grep &quot;end balance&quot; --after-context=2 |tr &quot;\\n&quot; &quot;\\t&quot;; echo &quot;...&quot;;<br \/>\ndone;<br \/>\ndone |tee valutazione.txt<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Ah, the magic of Bash! for y in {1..30..7}; do for x in {60..1}; do DA=$(date -d &quot;-$(($x+$y)) days&quot; +%Y-%m-%d); A=$(date -d &quot;-$x days&quot; +%Y-%m-%d); echo -n &quot;Simulazione per $y giorni da $DA a $A: &quot;; .\/zenbot.sh sim &#8211;strategy trend_ema_reversed &#8211;start $DA &#8211;end $A | grep &quot;end balance&quot; &#8211;after-context=2 |tr &quot;\\n&quot; &quot;\\t&quot;; echo &quot;&#8230;&quot;; done;&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2017\/07\/02\/3194\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[71,105],"tags":[],"class_list":["post-3194","post","type-post","status-publish","format-standard","hentry","category-cryptocoins","category-fun"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s6daft-3194","jetpack-related-posts":[{"id":9311,"url":"https:\/\/monodes.com\/predaelli\/2022\/04\/27\/9311\/","url_meta":{"origin":3194,"position":0},"title":"As I wished to add\u2026","author":"Paolo Redaelli","date":"2022-04-27","format":false,"excerpt":"As I wished to add a little NextCloud installation to my small corporate server I used its web installer that quaralled that PHP 7.2 is too old. I was used to Debian way of handling multiple versions of a package (having the major version in the package name). These notes\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12923,"url":"https:\/\/monodes.com\/predaelli\/2025\/03\/07\/applicazioni-da-remoto\/","url_meta":{"origin":3194,"position":1},"title":"Applicazioni da remoto","author":"Paolo Redaelli","date":"2025-03-07","format":false,"excerpt":"Oh, dimenticavo di aver gi\u00e0 scritto di waypipe, a proposito dei giochi 3d. Quasi 5 anni fa! Ora la parte noiosa. Spesso mi collego (con ssh, \u00e7a va san dire) alle mie macchine di casa da remoto dove \u00e8 gi\u00e0 attiva una sessione \"desktop\" che oggigiorno \u00e8 Wayland. Cos\u00ec qualsiasi\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13473,"url":"https:\/\/monodes.com\/predaelli\/2025\/05\/28\/fast-iterative-circles-and-ellipses-and-other-figures\/","url_meta":{"origin":3194,"position":2},"title":"Fast iterative circles (and ellipses, and other figures).","author":"Paolo Redaelli","date":"2025-05-28","format":false,"excerpt":"Fast iterative circles (and ellipses, and other figures). Here's the entire algorithm to compute points on an elliptical arc, very quickly: while(true) { x += d * y; y -= d * x; } Attributed to Marvin Minsky, 1972: HAKMEM, MIT AI Memo 239 (HTML version here). Also on a\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9904,"url":"https:\/\/monodes.com\/predaelli\/2022\/12\/10\/learn-how-to-use-bash-for-loop-in-shell-scripts\/","url_meta":{"origin":3194,"position":3},"title":"Learn How to Use Bash For Loop in Shell Scripts","author":"Paolo Redaelli","date":"2022-12-10","format":false,"excerpt":"A little promemoria For Loops in Shell Scripts Bash For Loop with Ranges #!\/bin\/bash for n in {1..7}; do echo $n done #!\/bin\/bash for n in {1..7..2}; do echo $n done Bash For Loops with Arrays #!\/bin\/bash fruits=(\"blueberry\" \"peach\" \"mango\" \"pineapple\" \"papaya\") for n in ${fruits[@]}; do echo $n done\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6905,"url":"https:\/\/monodes.com\/predaelli\/2020\/03\/14\/jitsi-installazione-su-vps\/","url_meta":{"origin":3194,"position":4},"title":"Jitsi-installazione-su-vps","author":"Paolo Redaelli","date":"2020-03-14","format":false,"excerpt":"Software libero a scuola\/Jitsi-installazione-su-vps Da Wikibooks, manuali e libri di testo liberi. Lo riporto qui solo per comodit\u00e0, ringraziando gli autori della pagina ma soprattutto gli sviluppatori di Meet Jitsi, programma libero quantomai prezioso in questo periodo di CoronaVirus Installazione del software open-source Jitsi-Meet su proprio server Linux. INSTALLAZIONE JITSI\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2488,"url":"https:\/\/monodes.com\/predaelli\/2017\/05\/22\/mailx-gmail-e-certificati-gabriele-merli\/","url_meta":{"origin":3194,"position":5},"title":"mailx, gmail e certificati \u2013 Gabriele Merli","author":"Paolo Redaelli","date":"2017-05-22","format":false,"excerpt":"mailx, gmail e certificati \u2013 Gabriele Merli Interessante fonte di guide ed informazioni... Spesso mi capita di dover usare mailx da riga di comando per inviare semplici mail di notifica, generalmente all'interno di uno script. Il pacchetto mailx \u00e8 questo (in centos 7) ]# yum info mailx<br \/> Installed Packages<br\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/3194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=3194"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/3194\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=3194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=3194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=3194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}