Skip to content

Instantly share code, notes, and snippets.

bor8

Block or report user

Report or block bor8

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wordcloud.py
# 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 Jan 3, 2019 — forked from uglide/chroot.sh
Chroot to Installed system on LVM
View chroot.sh
#!/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 Apr 14, 2018
Install QGIS Web Client 2 on Ubuntu 16.04
View install_qwc2.md

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
View install_collabora.md
@bor8
bor8 / codeSpace.txt
Created Feb 28, 2017
Namensraeume mit der Daten-Dienste-Kopplung.
View codeSpace.txt
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
View dataset_und_co_online_resource.txt
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']
@bor8
bor8 / java_alternativen.sh
Created Oct 4, 2016
Installiere und setze JAVA-Alternativen.
View java_alternativen.sh
# 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 Sep 29, 2016
Test own schema.
View schema.py
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)
@bor8
bor8 / feedvalidator.md
Last active Jul 22, 2016
Install Feedvalidator with Ubuntu 14.04 LTS, lighttpd and CGI.
View feedvalidator.md
apt update
apt install git python python-iconvcodec lighttpd
cd /var/www
git clone https://github.com/rubys/feedvalidator.git
chown -R www-data:www-data /var/www/feedvalidator/
service lighttpd start
lighty-enable-mod cgi
View delete.txt
/var/lib/tomcat8/webapps/geonetwork/xsl/xml/harvesting/ OPEN csw.xsl
/var/lib/tomcat8/webapps/geonetwork/xsl/xml/harvesting/ CLOSE_NOWRITE,CLOSE csw.xsl
/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/ OPEN xercesImpl-2.11.0.jar
/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/ ACCESS xercesImpl-2.11.0.jar
/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/ ACCESS xercesImpl-2.11.0.jar
/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/ ACCESS xercesImpl-2.11.0.jar
/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/ ACCESS xercesImpl-2.11.0.jar
/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/ CLOSE_NOWRITE,CLOSE xercesImpl-2.11.0.jar
/var/lib/tomcat8/webapps/geonetwork/xsl/xml/harvesting/ OPEN geonetwork.xsl
/var/lib/tomcat8/webapps/geonetwork/xsl/xml/harvesting/ CLOSE_NOWRITE,CLOSE geonetwork.xsl
You can’t perform that action at this time.