Skip to content

Instantly share code, notes, and snippets.

View Barry1's full-sized avatar
💭
stay safe 👍

Bastian Ebeling Barry1

💭
stay safe 👍
View GitHub Profile
@Barry1
Barry1 / CloudComputing.md
Last active May 10, 2020 12:12
Cloud Computing - kostenlose Angebote
@Barry1
Barry1 / VisualStudioBuildTools.md
Last active May 11, 2021 19:59
Some helping links for faster getting MS Visual Studio Build Tools

Visual Studio Build Tools

@Barry1
Barry1 / H2O-usage.py
Last active May 25, 2020 14:44
some helpful ideas for H2O
import h2o
import pandas
Inputdaten = pandas.Dataframe()
PREDICT_COL_NAME = 'tbd'
def pddf2h2odf(pddf: pandas.DataFrame) -> h2o.H2OFrame:
# %% Sometimes, H2O adds duplicated to pandas-dataframes
# Solution from https://stackoverflow.com/a/59588925/617339
srcindexnameforlaterdeletion = pddf.index.name
@Barry1
Barry1 / plotwithuncertainty.py
Created May 28, 2020 19:00
plot two columns against each other with local uncertainty bands by windowing
import pandas
def plotwithuncertainty(data: pandas.DataFrame,
x: str,
y: str,
windowlen: int = max(10, round(len(data) / 100)),
**pltops) -> None:
evalobj = data[[x, y]].reset_index().rolling(
window=windowlen, center=True, on=x)
@Barry1
Barry1 / plotwithuncertainty.md
Last active June 7, 2020 11:06
statistical appoach, plot two columns against each other with local uncertainty bands by local linear regression
@Barry1
Barry1 / PythonTips.md
Last active June 14, 2020 11:48
Bastians Python Tipps und Tricks

Bastians Python-Tipps

Interpreter

Pakete

Plots

Ein Übersichtsartikel ist hier zu finden. | Paketname | Zweck | Anmerkungen |

@Barry1
Barry1 / datapredictionqualityplot.py
Last active June 13, 2020 12:25
function for showing graph with ci bands for quality of given of linear regression modell
import matplotlib.pyplot
from numpy import sqrt
import pandas
from scipy.special import erfinv
from typing import Union
def dataqualityplot(
data: pandas.DataFrame,
x: str,
@Barry1
Barry1 / Android SSH.md
Last active June 8, 2020 04:31
Android-Gerät bei SSH-Konsole pflegen

Android-Gerät per SSH-Konsole pflegen

Mit Hilfe der App SSHelper kann auf ein (nicht gerootetes) Android-Gerät per SSH zugegriffen werden. Eine gute Beschreibung der Möglichkeiten mit der Software sowie Tips und Tricks sind unter https://arachnoid.com/android/SSHelper/index.html (falls nicht verfügbar, alternativ http://archive.is/wip/dezC9) zu finden.

SSH-Verbindung einrichten

  • ggf. ssh-keygen
  • ssh-copy-id
  • Empfehlung: Password-Login dann deaktivieren
  • ~/.ssh/config mit host #HANDY-IP# port 2222 schreiben

Ordner synchronisieren

rsync -azzv --no-perms --no-times --size-only #HANDY-IP#:~/SDCard/#PFAD# #LOKALPFAD#

@Barry1
Barry1 / OpenStack.md
Last active July 30, 2020 19:12
Notizen zur Installation und Nutzung zum Experimentieren mit OpenStack
@Barry1
Barry1 / winboot2linux.md
Last active July 26, 2020 14:39
Mit dem Windows-Boot-Manager Dual Boot in installiertes Linux

Linux aus dem Windows-Boot-Manager starten

Mit Hilfe des Kommandozeilen-Tools bcdedit und dem Windows-DD-Clone von http://www.chrysocome.net/dd ist ein Eintrag eines installierten Linux in das Windows-Boot-Menü kein Problem

Vorbereitung

Es wird der Linux-Boot-Sektor benötigt, und zwar von Windows aus lesbar. Dieser kann am leichtesten mit dem Tool dd extrahiert werden. Im laufenden Linux geht das direkt aus der Konsole. Annahme, das System ist auf der Partition /dev/sda5:

dd if=/dev/sda5 of=/winmount/linux.bin bs=512 count=1

Für Windows-User ist der direkte Download und ausführen in der Kommandozeile mit Administrator-Rechten der Weg.