Skip to content

Instantly share code, notes, and snippets.

View BenMatheja's full-sized avatar
🎯
Focusing

Ben Matheja BenMatheja

🎯
Focusing
  • Dr. ing. h.c. F. Porsche AG
  • Stuttgart
View GitHub Profile
@BenMatheja
BenMatheja / config.gateway.json
Last active December 5, 2020 21:21
This USG configuration Redirects DNS traffic to my pihole at .9, .10 and .11. In addition forwarded traffic is disguised so the client will not recognize that he did not hit 8.8.8.8
{
"service": {
"nat": {
"rule": {
"1": {
"description": "DNS Redirect to pihole",
"destination": {
"address": "!192.168.1.1-192.168.1.11",
"port": "53"
},

Keybase proof

I hereby claim:

  • I am benmatheja on github.
  • I am benmatheja (https://keybase.io/benmatheja) on keybase.
  • I have a public key whose fingerprint is A6C0 3B7C 3C79 89BC 55A2 E0DB 51AD 55C9 A872 7DD0

To claim this, I am signing this object:

estimatePeaks = function (dfOfClusters) {
# helper: source: https://github.com/kerschke/flacco/blob/master/R/feature_ela_distribution.R
number_of_peaks = function(x, smoothing.bandwidth = "SJ", modemass.threshold = 0.01, ...) {
intdens = function(a, b) {
mean(y[a:b]) * diff(d$x[c(a, b)])
}
d = density(x, bw = smoothing.bandwidth, ...)
y = d$y
n = length(y)
index = 2L : (n - 1L)
2016/02/16 18:16:02 [INFO] EOLIS - Beginne das HLB-Testdatenset zu erzeugen.
2016/02/16 18:16:03 [INFO] EOLIS - Retrieving technical feasible battery<->scenario assignments for 89 scenarios and 200 batteries
Loading required package: slam
Using the GLPK callable library version 4.47
2016/02/16 18:35:50 [INFO] EOLIS - Found technical feasible batteries for 86 scenarios
----------------------
New Assignment - Battery Leaf BatteryPack and Zwischenspeicher
Beginning Creation of Variant 1
Minimum Configuration added following services
16 Gewährleistung 2 Jahre
After import eclipse might complain about different java facets version.
Solution: In the properties of the affected project, choose Project Facets on the left side and change the Java version to use to 1.6
-persistence-test project displays a high number of various errors after import
no solution, but apparently not necessary to run the project
After trying to refactor the project names, an XML Problem (Attribute "xmlns" was already specified for element "web-app".) appears for -Web project
Solution: remove one xmlns definition in line 2 of the web.xml
At server startup, it might complain in the console about missing hsql dependencies
@BenMatheja
BenMatheja / gist:10068241
Last active August 29, 2015 13:58
CUPS Configuration for RaspberryPI
#
# "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
#!/bin/bash
#
# This starts and stops shairport
#
### BEGIN INIT INFO
# Provides: shairport
# Required-Start: $network
# Required-Stop:
# Short-Description: shairport - Airtunes emulator!
# Description: Airtunes emulator!
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
hello