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
# mssql-agent-fts-ha-tools
# Maintainers: Microsoft Corporation (twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS
FROM mcr.microsoft.com/mssql-tools
# Install prerequistes since it is needed to get repo config for SQL server
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
@Disane87
Disane87 / app.component.html
Last active March 3, 2020 08:40
medium-disane-angular-router-tabs-routes
<div class="d-flex container-fluid flex-row h-100">
<div class="navigation m-3">
<ul class="nav flex-column nav-pills">
<li class="nav-item" [class.pt-3]="!first" *ngFor="let route of routes; let first = first;">
<a class="nav-link" routerLinkActive="active" [routerLinkActiveOptions]="{exact:true}" [routerLink]="route.path">{{route.component.name }}</a>
</li>
</ul>
</div>
<div class="tab container flex-fill h-100 px-0 bg-white border-bottom d-flex flex-column">
@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]);
}
@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 / 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 / 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 / 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 / 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 / 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 / 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