warning: this list of endpoints was discovered empirically
in case you want to restrict Kibana access to read only, whitelist the following endpoints:
- GET
/app/kibana - GET
/bundles/* - GET
/plugins/* - GET
/api/saved_objects/_find
| #!/usr/bin/env bash | |
| shader=$1 # first argument is path to shader | |
| renderstart=0 # seconds | |
| renderend=20 | |
| resolutionx=1920 | |
| resolutiony=1080 | |
| wallduration=20 # seconds, minimum 1 |
| #!/bin/bash | |
| base=/var/www/intern/data/pages | |
| doku='https://DOKUWIKIHOST/doku.php?id=' | |
| filelist=`find $base -type f -name '*.txt'` | |
| echo -e "gonna fetch `wc -w <<< $filelist` pages!11!!\n" | |
| for file in $filelist; do |
I hereby claim:
To claim this, I am signing this object:
| function Decoder (bytes, port) { | |
| 'use strict'; | |
| let boxes = []; | |
| // maps LoRa ports to openSenseMap configurations | |
| // should contain | |
| // [ | |
| // TEMPSENSOR_ID, | |
| // HUMISENSOR_ID |
| #!/bin/bash | |
| OSEM_API=https://api.osem.vo1d.space | |
| #OSEM_API=http://localhost:8000 | |
| # register user | |
| OSEM_TOKEN=$(curl -H "content-type: application/json" $OSEM_API/users/register -d '{"name":"firstname","email":"test@test.de","password":"12345678"}' | jq .token | tr -d '"') | |
| # user login | |
| OSEM_TOKEN=$(curl -H "content-type: application/json" $OSEM_API/users/sign-in -d '{"email":"test@test.de","password":"12345678"}' | jq .token | tr -d '"') |
| /* | |
| TODO: | |
| - mongo performance optimieren | |
| - in db migration framework einbetten: https://github.com/mattes/migrate | |
| - filter measurements to update by date | |
| IDEAS zur optimierung | |
| - multithreaded. 4 statt 1? | |
| -> 3 packt mein laptop, 50% schneller | |
| - indexes entfernen? https://docs.mongodb.com/v3.2/core/write-performance/ -> besserer write |
| #!/bin/bash | |
| # create a backup of owncloud & upgrade to the latest version | |
| # requires root. depends on mysqldump, wget, tar | |
| # should run on any linux machine | |
| # | |
| # - disables all apps | |
| # - performs a mysqldump | |
| # - backups the current installation | |
| # - gets the new archive & installs it |
| # i know, this is a really stupid hack, but "necessary" for | |
| # this issue: https://github.com/rstudio/leaflet/issues/212 | |
| #' @describe creates a list of RGB values in ascending order, | |
| #' with the blue channel beeing the least significant, | |
| #' and the red channel beeing the most significant. | |
| #' @param bitdepth The bitdepth of the values to create. | |
| #' defaults to 8bit, and creates ~16kk values | |
| #' @return a matrix containing the RGB values as integers. | |
| rgbIntMatrix <- function(bitdepth = 8) { |
| # dependencies on fedora23: | |
| # gdal-devel geos-devel proj-devel proj-nad proj-epsg | |
| library(htmlwidgets) | |
| library(raster) | |
| library(leaflet) | |
| # PATHS TO INPUT / OUTPUT FILES | |
| projectPath = "/home/kreis/git/geotiff/" | |
| #imgPath = paste(projectPath,"data/cea.tif", sep = "") |