Here are some helpful commands for managing ZFS and ZPool on Ubuntu
Useful for populating /etc/zfs/vdev_id.conf
:
printDisks() {
for i in /dev/sd[b-i]; do
fdisk -l $i
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
requests = "*" | |
[dev-packages] | |
pytest = "*" |
package challenge; | |
import static challenge.EmployerRetirementContributionCalculator.EmployeeContribution.employeeContribution; | |
import static challenge.EmployerRetirementContributionCalculator.EmployerContribution.Tier.Percentage.REMAINING_AMOUNT; | |
import challenge.EmployerRetirementContributionCalculator.EmployerContribution.Amount; | |
import challenge.EmployerRetirementContributionCalculator.EmployerContribution.EmployeeContributionMatched; | |
import java.util.List; | |
import java.util.concurrent.atomic.AtomicReference; |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class CombinationsOfDice { | |
public List<int[]> execute(final int numberOfDice, final int numberOfSidesPerDice) { | |
final List<int[]> list = new ArrayList<>(); | |
final int[] combination = new int[numberOfDice]; | |
int index; |
import static java.util.Collections.shuffle; | |
import static java.util.stream.Collectors.collectingAndThen; | |
import static java.util.stream.Collectors.toList; | |
import java.util.Optional; | |
import java.util.stream.Collector; | |
import java.util.stream.Stream; | |
public class RandomOptionChooser { | |
public Optional<Option> randomlyChooseAnOption(@lombok.NonNull final String... options) { |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
public class CombinationGetter { | |
public List<int[]> getCombinations(final int n, final int min, final int k) { | |
final List<int[]> list = new ArrayList<>(); |
-------------------------------------------------------------------------------
POWER
THE ^ THE
LEGEND ^^^ LEGEND
OF ^^^^^ OF
ZELDA ^^^^^^^ ZELDA
- ^ ^ -
THE ^^^ ^^^ THE
currentversion() { | |
# If xpath is on your machine (macos will I believe), | |
# and the project's version is in the path `project.version`, | |
# then it is nice to use this because it is faster. | |
# xpath ./pom.xml 'project/version/text()' 2>/dev/null | |
# Otherwise: | |
mvn help:evaluate -Dexpression=project.version -q -DforceStdout | |
} |
"type" as $filter | | |
._embedded | to_entries | |
| map({(if (.value | has($filter)) then .key else empty end): .value|keys}) | |
| add | |
## Sample command: | |
# curl --silent https://api.financialwellness.com/task/tasklist/index | jq -Cf findActionsWithType.jq |