Skip to content

Instantly share code, notes, and snippets.

View Ivan-Shestakov's full-sized avatar

Ivan Shestakov Ivan-Shestakov

View GitHub Profile
@T8aZ
T8aZ / NextcloudAIO_selfsigned.txt
Created April 16, 2024 08:06
Nextcloud AIO with self-signed certificate
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
@didibus
didibus / clojure-right-tool.md
Last active February 3, 2025 02:38
When is Clojure "the right tool for the job"?

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:

@SeniorMars
SeniorMars / java.vim
Last active December 3, 2024 08:13
Example vimrc for java development. https://youtu.be/ssmFzoZS2G8
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
@dacr
dacr / gatling-simple.sc
Last active April 2, 2023 10:12
Just ONE ammonite script file to execute a load performance test using gatling ! / published by https://github.com/dacr/code-examples-manager #ea7a4259-9461-44a8-99fa-1ec6ec3c48ed/6bc5335f1571c83edc6278c55499c9c7ae43a5c0
// 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 NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : ea7a4259-9461-44a8-99fa-1ec6ec3c48ed
// created-on : 2018-09-22T07:41:07Z
// managed-by : https://github.com/dacr/code-examples-manager
// execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'
@InfoSec812
InfoSec812 / ParallelStreamWordCount.java
Created August 7, 2016 13:25
Use Java 8 parallel streams to read a file and tally word counts
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;