This file contains 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 | |
###################################################################### | |
# This script sets up gnu screen and conky in a way to provide a nice | |
# footer line complete with tabs for the open windows and some | |
# information about the systems health | |
# (https://elbosso.github.io/gnu_screen_sitzung_wenig_aufgepeppt.html#content) | |
# | |
# If run as sudo (or root) it tries to install gnu screen and conky | |
# (needed) and joe (my own preference) before writing a customized | |
# version of .screenrc and a customized version of a conky config. |
This file contains 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
from flask import Flask | |
from flask import make_response | |
import requests | |
from anybadge import Badge | |
from flask import request | |
app = Flask(__name__) | |
@app.route("/open/<int:projid>") | |
def openIssues(projid): |
This file contains 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
//https://ircama.github.io/osm-carto-tutorials/tile-server-ubuntu/ | |
CONTAINERNAME=osm | |
PROCESSORCOUNT=$(cat /proc/cpuinfo | grep processor | wc -l) # used to speed up make | |
lxc-create -n $CONTAINERNAME -t download -- --arch amd64 --dist ubuntu --release xenial | |
lxc-start -n $CONTAINERNAME | |
lxc-attach -n $CONTAINERNAME -- apt-get update | |
lxc-attach -n $CONTAINERNAME -- apt-get -y upgrade | |
lxc-attach -n $CONTAINERNAME -- apt-get -y install joe screen conky-cli openssh-server curl unzip gdal-bin tar wget bzip2 build-essential clang git autoconf libtool libxml2-dev libbz2-dev libgeos-dev libgeos++-dev libproj-dev gdal-bin libgdal-dev g++ libmapnik-dev mapnik-utils python-mapnik libxml2-dev libfreetype6-dev libjpeg-dev libpng-dev libproj-dev libtiff-dev libcairo2 libcairo2-dev python-cairo python-cairo-dev libgdal-dev build-essential python-dev libbz2-dev libicu-dev libboost-all-dev apache2 apache2-dev python-yaml python-pip mapnik-utils fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-hanazono ttf-unifont font |
This file contains 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 | |
# prerequistes: | |
# * wget | |
# * traceroute | |
# * xdg-open | |
# with help from https://gist.github.com/rajanski/4d2595c1fd4e35c19b4e1a02b4ed579f | |
commaneeded="" |
This file contains 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
/* | |
* Copyright (c) 2021. | |
* | |
* Juergen Key. Alle Rechte vorbehalten. | |
* | |
* Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form, | |
* mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig: | |
* | |
* 1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright, | |
* die Liste der Bedingungen und den folgenden Haftungsausschluss im Quelltext |
This file contains 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
/* | |
* Copyright (c) 2021. | |
* | |
* Juergen Key. Alle Rechte vorbehalten. | |
* | |
* Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form, | |
* mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig: | |
* | |
* 1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright, | |
* die Liste der Bedingungen und den folgenden Haftungsausschluss im Quelltext |
This file contains 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
/* | |
* Copyright (c) 2021. | |
* | |
* Juergen Key. Alle Rechte vorbehalten. | |
* | |
* Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form, | |
* mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig: | |
* | |
* 1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright, | |
* die Liste der Bedingungen und den folgenden Haftungsausschluss im Quelltext |
This file contains 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 | |
rawurlencode() { | |
local string="${1}" | |
local strlen=${#string} | |
local encoded="" | |
local pos c o | |
for (( pos=0 ; pos<strlen ; pos++ )); do | |
c=${string:$pos:1} |
This file contains 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 | |
#https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command | |
rawurlencode() { | |
local string="${1}" | |
local strlen=${#string} | |
local encoded="" | |
local pos c o | |
for (( pos=0 ; pos<strlen ; pos++ )); do | |
c=${string:$pos:1} |
This file contains 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
/* | |
* Copyright (c) 2020. | |
* | |
* Juergen Key. Alle Rechte vorbehalten. | |
* | |
* Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form, | |
* mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig: | |
* | |
* 1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright, | |
* die Liste der Bedingungen und den folgenden Haftungsausschluss im Quelltext |
NewerOlder