Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Eugen Mayer EugenMayer

🏠
Working from home
View GitHub Profile
View gist:064b20e8d67e9ed02e4dede9c1a69e3a
cat /etc/kolla/config/neutron/controller/neutron.conf
[DEFAULT]
global_physnet_mtu=1400
View ssh openstack debian cloud init
[[0;32m OK [0m] Finished [0;1;39mApply the settings specified in cloud-config[0m.
Starting [0;1;39mExecute cloud user/final scripts[0m...
[ 23.849031] cloud-init[625]: Cloud-init v. 20.4.1 running 'modules:final' at Wed, 27 Oct 2021 17:13:26 +0000. Up 23.82 seconds.
[ 23.863615] cloud-init[625]: ci-info: no authorized SSH keys fingerprints found for user debian.
ci-info: no authorized SSH keys fingerprints found for user debian.
View ports
```
(neutron-openvswitch-agent)[root@controller /]# ovs-vsctl list-ports br-lan
eth2
phy-br-lan
(neutron-openvswitch-agent)[root@controller /]# ovs-vsctl list-ports br-wan
eth3
phy-br-wan
```
```
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(conanqca)
message(STATUS "Conan CMake Wrapper")
include(conanbuildinfo.cmake)
conan_basic_setup()
include_directories(${CMAKE_SOURCE_DIR}/source_subfolder)
add_subdirectory("source_subfolder")
View lsb-release.rb
ohai 'lsb-ohai-releoad' do
plugin 'lsb'
action :nothing
end
log "pre lsb release name: #{node['lsb']['codename']}" do
level :error
end
package %w[lsb-release] do
View docker-compose.yml
version: '3'
services:
app:
image: atlassian/confluence-server:6.13.13
ports:
- '80:8090'
- '8091:8091'
- '5005:5005'
depends_on:
- db
View configuration.rst

Configuration

Caution!

When you change anything in your docker-sync.yml be sure to run docker-sync clean and docker-sync start right after it. Just running docker-sync start or stop will not recreate the container and your changes will have no effect!

docker-sync.yml

View Howto
# prepare
Login on your docker-host and store the file `~/fioconfig.fio` with the content above
Now run those 2 tests
# NFS test
```
fio ~/fioconfig.fio --filenanme /path/to/nfs/mount/somerandomefile
```
View io test
# we no longer use /tmp sinc it is a tmpfs / in memory
mkdir ~/tmp
cd ~/tmp
sysbench --file-fsync-freq=1 --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw --file-rw-ratio=2 cleanup > /dev/null
sysbench --file-fsync-freq=1 --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw --file-rw-ratio=2 prepare > /dev/null
sysbench --file-fsync-freq=1 --num-threads=16 --test=fileio --file-total-size=1G --file-test-mode=rndrw --file-rw-ratio=2 run
# when you are done testing
View SDKman to JENV
#!/bin/bash
echo "removing current jenv java's to readd them freshly"
jenv versions --bare | xargs -n1 jenv remove
echo "adding all sdkmans java versions to jenv"
find $HOME/.sdkman/candidates/java -type d -maxdepth 1 -mindepth 1 -exec jenv add '{}' \;