Skip to content

Instantly share code, notes, and snippets.

[2020-04-22 09:30:31.592174] E [MSGID: 100009] [glusterfsd.c:800:get_volfp] 0-glusterfsd: loading volume file /var/lib/glusterd/thin-arbiter/thin-arbiter.vol failed [No such file or directory]
[2020-04-22 09:30:31.592380] E [MSGID: 100028] [glusterfsd.c:2746:glusterfs_volumes_init] 0-glusterfsd: Cannot reach volume specification file
[2020-04-22 09:30:31.841355] I [MSGID: 100030] [glusterfsd.c:2867:main] 0-/usr/sbin/glusterfsd: Started running /usr/sbin/glusterfsd version 7.5 (args: /usr/sbin/glusterfsd -N --volfile-id ta -f /var/lib/glusterd/thin-arbiter/thin-arbiter.vol --brick-port 24007 --xlator-option ta-server.transport.socket.listen-port=24007)
[2020-04-22 09:30:31.841457] I [glusterfsd.c:2594:daemonize] 0-glusterfs: Pid of current running process is 25897
[2020-04-22 09:30:31.842262] E [MSGID: 100009] [glusterfsd.c:800:get_volfp] 0-glusterfsd: loading volume file /var/lib/glusterd/thin-arbiter/thin-arbiter.vol failed [No such file or directory]
[2020-04-22 09:30:31.842494] E [MSGID: 100028] [glusterfs
# pip3 install requests
import base64
import json
import requests
some_text = 'blah blub blah dings abc abc abc usw hehe hehe hehe hehe hehe hehe'
response = requests.post("https://textvis-word-cloud-v1.p.rapidapi.com/v1/textToCloud?max_words=1000",
headers={
@bor8
bor8 / chroot.sh
Last active January 3, 2019 10:57 — forked from uglide/chroot.sh
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/template99-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
@bor8
bor8 / install_qwc2.md
Last active April 14, 2018 13:32
Install QGIS Web Client 2 on Ubuntu 16.04

Install QGIS Web Client 2 on Ubuntu 16.04

cd /opt
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
chmod +x nodesource_setup.sh
bash nodesource_setup.sh
apt install nodejs
nodejs -v
npm -v
@bor8
bor8 / 1_baue_geonetwork_3_zum_ersten_mal.sh
Last active June 8, 2017 13:46
1. Baue Geonetwork 3 zum ersten Mal auf Ubuntu 16.04 LTS.
### Installiere Software für die Geonetwork-3-Entwicklung:
sudo apt install \
git `# Sourcen-Speicher` \
maven `# WAR-Datei-Bauer` \
openjdk-8-jdk `# JAVA` \
tomcat8 `# WAR-Datei-Starter` \
postgresql `# Datenbank` \
postgis `# DB-Erweiterung` \
pgadmin3 `# Datebank-GUI`
@bor8
bor8 / codeSpace.txt
Created February 28, 2017 09:46
Namensraeume mit der Daten-Dienste-Kopplung.
http://www.geoportal.de/gds/xml.php?uuid=7ce3e1a5-181c-4d7a-8964-bf27326458ae https://registry.gdi-de.org/id/de.bund.uba.wa.feg
http://www.geoportal.de/gds/xml.php?uuid=10615085-e2f0-4ee6-bb27-083353a30783 https://registry.gdi-de.org/id/de.bund.uba.bo.clc
http://www.geoportal.de/gds/xml.php?uuid=e082d2d5-903e-45de-8731-a6c5cead74da https://registry.gdi-de.org/id/de.bund.uba.lu.aqd
http://www.geoportal.de/gds/xml.php?uuid=d97e5439-df03-463f-ae6a-302299874b04 https://registry.gdi-de.org/id/de.bund.uba.pk.prtr
http://www.geoportal.de/gds/xml.php?uuid=357abb58-45eb-4726-951a-370cba3b3095 https://registry.gdi-de.org/id/de.bund.uba.lu.aqd
http://www.geoportal.de/gds/xml.php?uuid=7e18eac9-8438-4e33-98c3-fc8cf10ce3dd https://registry.gdi-de.org/id/de.bund.uba.bo.clc
http://www.geoportal.de/gds/xml.php?uuid=ea12ec1d-c6d2-4c14-b16e-70448821a2a6 https://registry.gdi-de.org/id/de.bund.uba.wa.stp
http://www.geoportal.de/gds/xml.php?uuid=52a813d2-71e7-4d1e-832b-b910a1548596 https://registry.gdi-de.org/id/de.bund.uba.bo.clc
This file has been truncated, but you can view the full file.
code_1 | 138970
code_1 | []
code_1 | ['https://produktcenter.bgr.de/terraCatalog/DetailResult.do?fileIdentifier=FC134123-E18F-4BCA-B455-64AEE16A3185']
code_1 | ['information']
code_1 | ['https://www.bgr.bund.de/DE/Themen/Sammlungen-Grundlagen/GG_geol_Info/Karten/Deutschland/GUEK200/Blatt%C3%BCbersicht_G%C3%9CK200.html']
code_1 |
code_1 | []
code_1 | ['https://produktcenter.bgr.de/terraCatalog/DetailResult.do?fileIdentifier=E05242F4-1ED7-4ABF-B7A9-682934C459FD']
code_1 | ['information']
code_1 | ['https://www.bgr.bund.de/DE/Themen/Sammlungen-Grundlagen/GG_geol_Info/Karten/Deutschland/GUEK200/Blatt%C3%BCbersicht_G%C3%9CK200.html']
@bor8
bor8 / java_alternativen.sh
Created October 4, 2016 09:06
Installiere und setze JAVA-Alternativen.
# http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.tar.gz
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/Oracle_Java/jdk1.8.0_73/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/Oracle_Java/jdk1.8.0_73/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/Oracle_Java/jdk1.8.0_73/bin/javaws" 1
sudo update-alternatives --install "/usr/bin/jar" "jar" "/opt/Oracle_Java/jdk1.8.0_73/bin/jar" 1
# Alternativen-System konfigurieren:
sudo update-alternatives --set "java" "/opt/Oracle_Java/jdk1.8.0_73/bin/java"
@bor8
bor8 / schema.py
Created September 29, 2016 14:55
Test own schema.
schema_root = etree.XML('''\
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="a" type="xsd:integer"/>
</xsd:schema>
''')
schema = etree.XMLSchema(schema_root)
parser = etree.XMLParser(schema = schema)
root = etree.fromstring("<a>5</a>", parser)