Skip to content

Instantly share code, notes, and snippets.

View ViacheslavK's full-sized avatar

Viacheslav Klevchenia ViacheslavK

View GitHub Profile
@ViacheslavK
ViacheslavK / pom.xml
Created June 22, 2022 15:59
Exclude 'unwanted' Maven dependencies
<artifactId>helper</artifactId>
<dependencies>
<dependency>
<groupId>com.somecompany.internal.someservice</groupId>
<artifactId>api-core</artifactId>
<version>${someservice.api-core.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.kafka</groupId>
<artifactId>*</artifactId>
@ViacheslavK
ViacheslavK / origin_switcher.sh
Created June 20, 2022 23:35
bash script for changing remote origin URL if -r option set as 1 or 2
#!/bin/sh
sgit=git@gitlab.com:user/repo.git
ggit=git@github.com:user/repo.git
while getopts r: flag
do
case "${flag}" in
r) remote_git=${OPTARG};;
esac
@ViacheslavK
ViacheslavK / your_git_updater.sh
Last active June 20, 2022 23:37
bash script for updating all repositories, located in folder. Save as `your_name.sh` and add execution rights (`chmod +x your_name.sh`)
#!/bin/sh
for D in *; do
if [ -d "${D}" ]; then
cd "${D}"
if [ -d ".git" ]; then
git pull -v
fi
cd ..
fi
@ViacheslavK
ViacheslavK / DISTRIBUTEDC.md
Last active June 13, 2022 11:08 — forked from yclim95/DISTRIBUTEDC.md
Distributed Computing

##Map Reduce

  1. Map/Reduce Library partitions the input data into M pieces of typically 16-64 MB.

    True.

  2. If there are M partitions of the input, there are M map workers running simultaneously.

False. There are generally less worker nodes than partitions.