{"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>for y in {1..30..7}; do<br \/>\nfor x in {60..1}; do<br \/>\nDA=$(date -d \"-$(($x+$y)) days\" +%Y-%m-%d);<br \/>\nA=$(date -d \"-$x days\" +%Y-%m-%d);<br \/>\necho -n \"Simulazione per $y giorni da $DA a $A: \";<br \/>\n.\/zenbot.sh sim --strategy trend_ema_reversed --start $DA --end $A | grep \"end balance\" --after-context=2 |tr \"\\n\" \"\\t\"; echo \"...\";<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 &#8220;-$(($x+$y)) days&#8221; +%Y-%m-%d); A=$(date -d &#8220;-$x days&#8221; +%Y-%m-%d); echo -n &#8220;Simulazione per $y giorni da $DA a $A: &#8220;; .\/zenbot.sh sim &#8211;strategy trend_ema_reversed &#8211;start $DA &#8211;end $A | grep &#8220;end balance&#8221; &#8211;after-context=2 |tr &#8220;\\n&#8221; &#8220;\\t&#8221;; echo &#8220;&#8230;&#8221;; 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":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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},"jetpack_post_was_ever_published":false},"categories":[71,105],"tags":[],"class_list":["post-3194","post","type-post","status-publish","format-standard","hentry","category-cryptocoins","category-fun"],"jetpack_publicize_connections":[],"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":15957,"url":"https:\/\/monodes.com\/predaelli\/2026\/08\/25\/how-to-run-gui-applications-in-docker-x11-forwarding-and-vnc\/","url_meta":{"origin":3194,"position":1},"title":"How to Run GUI Applications in Docker (X11 Forwarding and VNC)","author":"Paolo Redaelli","date":"2026-08-25","format":"link","excerpt":"How to Run GUI Applications in Docker (X11 Forwarding and VNC) How to Run GUI Applications in Docker (X11 Forwarding and VNC) Learn how to run graphical applications inside Docker containers using X11 forwarding, VNC servers, and browser-based solutions for cross-platform GUI access. Running GUI applications in Docker enables isolated\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":12923,"url":"https:\/\/monodes.com\/predaelli\/2025\/03\/07\/applicazioni-da-remoto\/","url_meta":{"origin":3194,"position":2},"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":3},"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":4},"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":5},"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":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_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}]}}