This file contains hidden or 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 | |
# Bridge interface name and address | |
BR_VMNAT_DEV="brvmnat0" | |
BR_VMNAT_ADDR="192.168.33.1/24" | |
#function that returnes default Gatewy device | |
get_def_gw_dev(){ | |
local i STR_DEV_SPEC STR_DEV | |
while read i; do |
This file contains hidden or 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
for line in `docker ps | awk '{print $1}' | grep -v CONTAINER`; do \ | |
echo $(( `cat /sys/fs/cgroup/memory/docker/$line*/memory.usage_in_bytes` / 1024 / 1024 ))MB \ | |
$(docker ps | grep $line | awk '{printf $NF" "}') ; \ | |
done | sort -n |
This file contains hidden or 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 | |
CONSUL="localhost:8500" | |
main() { | |
case "$1" in | |
info) | |
curl -s "$CONSUL/v1/kv/$2" | jq -r .[] | |
;; | |
get) |
This file contains hidden or 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
# Add source list | |
cat > /etc/apt/sources.list.d/cassandra.sources.list << DELIM | |
deb http://www.apache.org/dist/cassandra/debian 20x main | |
deb-src http://www.apache.org/dist/cassandra/debian 20x main | |
DELIM | |
# now install cassandra | |
apt-get update | |
sudo apt-get install cassandra |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.holbreich.lfgm</groupId> | |
<artifactId>parent</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>Shuron's Life Game Maven Parent Project</name> | |
<properties> | |
<tycho-version>0.13.0</tycho-version> |