Skip to content

Instantly share code, notes, and snippets.

View Disane87's full-sized avatar
📱
Working from home

Marco Franke Disane87

📱
Working from home
View GitHub Profile
@Disane87
Disane87 / sdtdconfig.xml
Created July 31, 2024 07:04
7 Dasys to die server config
<?xml version="1.0"?>
<ServerSettings>
<!-- GENERAL SERVER SETTINGS -->
<!-- Server representation -->
<property name="ServerName" value="Disano"/> <!-- Whatever you want the name of the server to be. -->
<property name="ServerDescription" value="A 7 Days to Die server"/> <!-- Whatever you want the server description to be, will be shown in the server browser. -->
<property name="ServerWebsiteURL" value=""/> <!-- Website URL for the server, will be shown in the serverbrowser as a clickable link -->
<property name="ServerPassword" value=""/> <!-- Password to gain entry to the server -->
<property name="ServerLoginConfirmationText" value="" /> <!-- If set the user will see the message during joining the server and has to confirm it before continuing. For more complex changes to this window you can change the "serverjoinrulesdialog" window in XUi -->
@Disane87
Disane87 / weather-warning.yaml
Created July 21, 2024 19:50
DWD Weather warning HomeAssistant
alias: 🌊 Wetterwarnung DWD
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.kreis_viersen_current_warning_level
above: 0
condition: []
action:
- service: notify.notify
data:
@Disane87
Disane87 / printer.cfg
Created December 5, 2023 15:39
Creality Ender 3S1 Klipper
##################Creality Ender 3 S1 Klipper Config - 3DPrintBeginner###################
######Full guide: https://3dprintbeginner.com/how-to-install-klipper-on-ender-3-s1/######
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA5
@Disane87
Disane87 / voice-synth.json
Created November 20, 2023 14:14
Elevenlabs n8n voice synth
{
"name": "Create Voice Synth with ElevenLabs",
"nodes": [
{
"parameters": {
"method": "POST",
"url": "https://api.elevenlabs.io/v1/text-to-speech/pNInz6obpgDQGcFmaJgB",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
@Disane87
Disane87 / solar-tab.yaml
Created November 15, 2023 21:41
Solar Dashboard-Tab for Home Assistant
- title: Solar
path: solar
icon: mdi:solar-power-variant
badges: []
cards:
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Unterstand
- type: horizontal-stack
@Disane87
Disane87 / README.md
Last active November 9, 2023 08:58
Wordpress to ghost redirections creator

Just execute the script and paste the .htaccess content from <IfModule mod_rewrite.c> into yours.

Cheers 🎉

@Disane87
Disane87 / spoolman.json
Last active October 4, 2023 14:40
OpenAPI Spoolman
{
"openapi": "3.1.0",
"info": {
"title": "Spoolman REST API v1",
"version": "1.0.0"
},
"paths": {
"/info": {
"get": {
"summary": "Info",
@Disane87
Disane87 / printer.cfg
Last active August 19, 2023 14:09
Klipper Ender 3s1
##################Creality Ender 3 S1 Klipper Config - 3DPrintBeginner###################
######Full guide: https://3dprintbeginner.com/how-to-install-klipper-on-ender-3-s1/######
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA5
@Disane87
Disane87 / app.module.ts
Created April 15, 2020 07:25
NestJS Plugin-System
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { PluginModule } from './plugin/plugin.module';
@Module({
imports: [PluginModule.registerPluginsAsync()],
controllers: [AppController],
providers: [AppService],
})
@Disane87
Disane87 / orderby.extension.ts
Created March 5, 2020 22:13
Array orderBy by properties in array type
type FlattenIfArray<T> = T extends (infer R)[] ? R : T;
interface Array<T> {
orderBy<K extends keyof FlattenIfArray<T>>(key: K): Array<any>;
}
Array.prototype.orderBy = function<K>(key: K): Array<any> {
return this.sort((a: any, b: any) => a[key] - b[key]);
}