Skip to content

Instantly share code, notes, and snippets.

View bahuma20's full-sized avatar
🤪

Max Bachhuber bahuma20

🤪
View GitHub Profile
@bahuma20
bahuma20 / resume.json
Created February 12, 2024 15:16
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Max Bachhuber",
"label": "Software-Entwickler, Backend Developer, Full-Stack-Developer, Serien-Junkie, Kolpingjugendlicher, Open Source Liebhaber, Early Adopter, Smart Home Spezialist",
"image": "https://bahuma.io/files/profile.jpg",
"email": "max.bachhuber@bahuma.io",
"phone": "+49 175 422 4666",
"url": "https://bahuma.io",
"summary": "Ich habe mich auf cloudbasierte Softwareentwicklung spezialisiert und in diesem Bereich auch schon viele Projekte realisiert und Erfahrung sowohl in der Backend- als auch in der Frontend-Entwicklung aufgebaut.",
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds">
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
<appender name="GOOGLE_CLOUD" class="com.google.cloud.logging.logback.LoggingAppender">
<log>management-area.log</log>
<springProfile name="test">
<logDestinationProjectId>ecom-oci-test</logDestinationProjectId>
</springProfile>
@bahuma20
bahuma20 / mastodon_import_cypher.cypher
Last active July 7, 2023 22:19
Import Mastodon posts into Neo4J using Cypher and apoc
// Required parameters:
// - instance -> The mastodon instance. For example "mastodon.social"
// - account -> Mastodon username. For example "bahuma20"
CALL apoc.periodic.commit('
// Create the platform node for this instance
MERGE (platform:Platform {instance: $instance, type: "mastodon"})
ON CREATE SET platform.instance = $instance,
platform.type = "mastodon"
@bahuma20
bahuma20 / script.js
Created September 7, 2020 13:00
Push Notification aktualisieren
let reg;
navigator.serviceWorker.register('/service_worker.js').then(registration => {
console.log('service worker registered');
reg = registration;
}).catch(e => console.error(e));
let timeremaing = 10;
let interval;
http://www.grolmsnet.de/kerbtut/
https://help.ubuntu.com/community/Kerberos
https://gist.github.com/ashrithr/4767927948eca70845db

Keybase proof

I hereby claim:

  • I am bahuma20 on github.
  • I am bahuma20 (https://keybase.io/bahuma20) on keybase.
  • I have a public key whose fingerprint is EB49 CAB0 06FE 2CC7 E939 C0D1 D8A4 AF96 FF3C 583E

To claim this, I am signing this object:

@bahuma20
bahuma20 / mysql_sftp_backup_script.sh
Created April 8, 2016 14:30
Export a mysql database and move the dump to another server via sftp
#!/bin/bash
DBNAME="dbname"
DBHOST="localhost"
DBUSER="root"
DBPASS="12345"
SFTPUSER="username"
SFTPHOST="host"
SFTPPATH="/path/to/backup/directory"
@bahuma20
bahuma20 / Google Scrollbar Style
Created June 8, 2015 08:57
Style Webkit Scrollbars like google does in Google+
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #FFF;
-webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
background: #CCC;
-webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);