./bin/kafka-configs.sh --zookeeper zookeeper1:2181/kafka \
--alter --entity-type topics \
--entity-name test \
--add-config segment.ms=60000
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
# Kernel sysctl configuration file for Linux | |
# | |
# Version 1.14 - 2019-04-05 | |
# Michiel Klaver - IT Professional | |
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant | |
# | |
# This file should be saved as /etc/sysctl.conf and can be activated using the command: | |
# sysctl -e -p /etc/sysctl.conf | |
# | |
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details. |
Disclaimer: These questions and answers aren't at all mine. These were scavanged around in the web. I hope it helps.
-
Answer: Linux is the most commonly used operating system that is open source and free. For any computer, the operating system acts as the backbone, and it is most important software that is required for any computer.
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
function Get-JsonWhois | |
{ | |
[CmdletBinding(DefaultParameterSetName = "ip")] | |
param | |
( | |
[Parameter(Mandatory, ParameterSetName = "ip")] | |
[string] | |
$IPAddress, | |
[Parameter(Mandatory, ParameterSetName = "domain")] |
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
// *********************** | |
// | |
// Build and deploy different environments with jenkins pipeline | |
// | |
// Merge to develop -> triggers development release | |
// Merge to master without tag -> triggers staging release | |
// Merge to master with tag -> triggers staging and production release | |
// Production release requires manual approval on the jenkins job | |
// | |
// Configure jenkins pipeline project to pull tags! By default, tags are not pulled! |
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
Questions are not from any actual exam!!! | |
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl | |
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] | |
Once the job has completed, check the logs to and export the result to pi-result.txt. | |
Solution: |
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 | |
# https://gist.github.com/omegazeng/d9d07a8a1c2bd7bb2cab38e32a12058b | |
export LC_ALL=en_US.UTF-8 | |
set +x | |
REGISTRY_URL=$1 | |
IMAGE_NAME=$2 |
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
ARG RELEASE=bookworm | |
FROM debian:${RELEASE}-slim | |
LABEL maintainer="NGINX Docker Maintainers <[email protected]>" | |
# Define NGINX versions for NGINX Plus and NGINX Plus modules | |
# Uncomment this block and the versioned nginxPackages block in the main RUN | |
# instruction to install a specific release | |
# ARG RELEASE | |
# ENV NGINX_VERSION=32 |