I hereby claim:
- I am noerw on github.
- I am norwin (https://keybase.io/norwin) on keybase.
- I have a public key ASAMx_UrJ8tm28iZ2aOGLr5PpqWnNChNJ4oUb84zdiIPAwo
To claim this, I am signing this object:
# 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 = "") |
# 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) { |
#!/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 |
/* | |
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 | |
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":"[email protected]","password":"12345678"}' | jq .token | tr -d '"') | |
# user login | |
OSEM_TOKEN=$(curl -H "content-type: application/json" $OSEM_API/users/sign-in -d '{"email":"[email protected]","password":"12345678"}' | jq .token | tr -d '"') |
function Decoder (bytes, port) { | |
'use strict'; | |
let boxes = []; | |
// maps LoRa ports to openSenseMap configurations | |
// should contain | |
// [ | |
// TEMPSENSOR_ID, | |
// HUMISENSOR_ID |
I hereby claim:
To claim this, I am signing this object:
#!/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 |
#!/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 |