This file contains 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
// Licensed under "The Unlicense" - https://unlicense.org/ | |
package backup.helpers; | |
import org.jetbrains.annotations.NotNull; | |
import java.time.Duration; | |
import java.time.temporal.ChronoUnit; | |
import java.util.*; |
This file contains 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
% Description of problem: | |
% | |
% https://mathworld.wolfram.com/ThreeJugProblem.html | |
% | |
% "Given three jugs with x pints in the first, y in the second, and z in the third, | |
% obtain a desired amount in one of the vessels by completely filling up and/or | |
% emptying vessels into others." | |
% | |
% Standard statement: | |
% |
This file contains 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
; === | |
; "neighbor" function from Chapter 5 (page 94) of the Joy Of Clojure, 2nd edition. | |
; ...modified and spec-ed! | |
; | |
; Applicable license is the unlicense: http://unlicense.org | |
; except for code taken from "Joy of Clojure, 2nd edition" (i.e. "neighbors-orig"), | |
; which is distributed under the Eclipse License. | |
; | |
; In a Leiningen project called "neighbor", this will be file src/neighbor/core.clj | |
; The project needs to declare these dependencies: |
This file contains 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
#!/bin/bash | |
# This program passes shellcheck (www.shellcheck.net) | |
# Author: David Tonhofer | |
# Complexity: Low | |
# License: Public Domain / "The Unlicense" - https://unlicense.org/ | |
# Also at https://gist.github.com/dtonhofer/6c44186d65d3b15784b64096e60195a0 | |
# === | |
# | |
# Synopsis: |
This file contains 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
#!/bin/bash | |
# === | |
# Author: David Tonhofer | |
# Rights: Public Domain | |
# === | |
set -o nounset | |
ROOT=/root |
This file contains 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
# === | |
# Gist: | |
# | |
# https://gist.github.com/dtonhofer/01018844971235b511d241b537c332ee | |
# |
This file contains 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
How to install Atlassian Confluence (using the "installer" download), using another JRE than the embedded one | |
============================================================================================================= | |
- When: 2019-04 | |
- For Confluence 6.15.1 | |
- On Linux/Unix (actually Fedora 29) | |
- See also: https://jira.atlassian.com/browse/CONFSERVER-57895 "Installing Confluence in OpenSUSE Tumbleweed through the installer fails" | |
So we have a problem because installation of Confluence using the binary INSTALL4J install module fails: |
This file contains 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
#!/usr/bin/perl | |
# === | |
# Testing what Perl's Data::Dumper does with "high" characters e.g. | |
# | |
# å -> iso-8859-1 : 0xE5 | |
# Unicode UTF-16 : 0x00E5 | |
# Unicode UTF-8 : 0xC3A5 | |
# | |
# See also: |