vi /etc/hosts
192.168.10.157 rabbitmq-1
192.168.10.159 rabbitmq-2
192.168.10.161 rabbitmq-3
#!/bin/bash | |
# | |
# Simple script to generate a basic bind configuration for home/lab use | |
# | |
# Local config - adjust as required | |
OWNIP=192.168.111.3 | |
NETWORK=192.168.111.0 | |
NETMASK=/24 | |
DNS1=192.168.111.1 |
# User authentication method. Could be set multiple times and in | |
# that case all should succeed. To enable multiple methods use | |
# multiple auth directives. Available options: certificate, certificate[optional], | |
# plain, pam. | |
#auth = "certificate" | |
#auth = "plain[./ocserv-passwd]" | |
#auth = "pam" | |
# This indicates that a user may present a certificate. When that option | |
# is set, individual users or user groups can be forced to present a valid |
(https://github.com/sandino/Markdown-Cheatsheet) (перевод, оригинал)
Поиграть с разметкой Markdown можно на демо-странице.
#!/bin/bash | |
name=$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
echo "firing up alert $name" | |
# change url o | |
curl -XPOST $url -d "[{ | |
\"status\": \"firing\", |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
Инициализировать новый репозиторий: | |
1 | |
git init rep-name | |
Клонировать репозиторий с удаленного сервера: | |
1 | |
git clone git@bitbucket.org:afiskon/hs-textgen.git | |
Добавить в репозиторий файл: | |
1 | |
git add file.txt | |
Удалить файл из репозитория: |
The *.txt files here hold user and database parameters. Specifically, replication.txt
contains the user/role and password to use for replication. Whereas database.txt
contains an initial database, user/role and password to create on the master.
Run the master:
$ fig run -d master
Wait for it to start up completely. Start the slave:
mainly used in start-up script
When we play with iptables aka firewall we might end up in situation, where we execute rule, which has unforseen impact - lock yourself out. Recovering from this situation is necessity.
How to:
- Enable reboot via SMS.
- Test all commands in shell first before putting them into Start-up script. This way the command will be wiped out, when unit is rebooted.
A Beowulf cluster is a computer cluster of similar computers networked into a small local area network with libraries and programs installed which allow processing to be shared among them. The result is a high-performance parallel computing cluster from the inexpensive personal computer hardware.
This project aims to create a Beowulf Cluster which computes bigram analysis on a news data set. 2 virtual worker nodes and 1 virtual master node used for the cluster, all operating with Ubuntu Server 16.04.