This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package us.juggl.twentysixteen.august; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.time.Instant; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.UUID; | |
| import java.util.concurrent.ConcurrentHashMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // summary : Just ONE ammonite script file to execute a load performance test using gatling ! | |
| // keywords : scala, gatling, ammonite, scala, load-test, performance | |
| // publish : gist | |
| // authors : David Crosson | |
| // license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| // id : ea7a4259-9461-44a8-99fa-1ec6ec3c48ed | |
| // created-on : 2018-09-22T07:41:07Z | |
| // managed-by : https://github.com/dacr/code-examples-manager | |
| // run-with : scala-cli $file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| filetype plugin indent on | |
| syntax on "activates syntax highlighting among other things | |
| set autoindent "indent base on previous and syntax | |
| set backspace=indent,eol,start "Fixes the backspace | |
| set foldmethod=indent "fold your code. | |
| set hidden "work with multiple unsaved buffers. | |
| set incsearch "highlights as you search | |
| set ignorecase | |
| set smartcase | |
| set relativenumber number "sets line numbers |
My answer to: https://www.reddit.com/r/Clojure/comments/pcwypb/us_engineers_love_to_say_the_right_tool_for_the/ which asked to know when and at what is Clojure "the right tool for the job"?
My take is that in general, the right tool for the job actually doesn't matter that much when it comes to programming language.
There are only a few cases where the options of tools that can do a sufficiently good job at the task become limited.
That's why they are called: General-purpose programming languages, because they can be used generally for most use cases without issues.
Let's look at some of the dimensions that make a difference and what I think of Clojure for them:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Steps to install Nextcloud AIO with selfsigned (adapt if you have custom PKI): | |
| #generate certificate & unprotected key | |
| mkdir /opt/reverseproxy && cd /opt/reverseproxy | |
| openssl x509 -req -days 365 -in self-ssl.csr -signkey self-ssl.key.pem -out self-ssl.pem | |
| # Follow https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#apache for Apache conf (paste their vhost conf within /usr/local/apache2/conf/httpd.conf, put your SSL cert and key within the docker and adapt the corresponding line) | |
| SSLCertificateFile /usr/local/apache2/conf/self-ssl.pem |