Skip to content

Instantly share code, notes, and snippets.

View Isengo1989's full-sized avatar
🏠
Working from home

Micha Hobert Isengo1989

🏠
Working from home
View GitHub Profile
@Isengo1989
Isengo1989 / LoginSuccessHandler.php
Last active November 19, 2018 18:04 — forked from marydn/LoginSuccessHandler.php
Custom URL redirect by role after success login on Symfony 2 using a service listener without FOSUser Bundle.
# src/Security/LoginFormAuthenticator.php
<?php
namespace App\Security;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
This file has been truncated, but you can view the full file.
{"openapi":"3.0.0","info":{"title":"Shopware Admin API","description":"This endpoint reference contains an overview of all endpoints comprising the Shopware Admin API.\n\nFor a better overview, all CRUD-endpoints are hidden by default. If you want to show also CRUD-endpoints\nadd the query parameter `type=jsonapi`.","version":"6.5.3.1"},"servers":[{"url":"http:\/\/production.test\/api"}],"paths":{"\/acl-role":{"get":{"tags":["Acl Role"],"summary":"List with basic information of Acl Role resources","description":"Available since: 6.0.0.0","operationId":"getAclRoleList","parameters":[{"name":"limit","in":"query","description":"Max amount of resources to be returned in a page","schema":{"type":"integer"}},{"name":"page","in":"query","description":"The page to be returned","schema":{"type":"integer"}},{"name":"query","in":"query","description":"Encoded SwagQL in JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"List of Acl Role resources.","content":{"application\/vnd.api+json":{"schema":{"all
@Isengo1989
Isengo1989 / motion-illuminance.yaml
Created February 1, 2024 08:29 — forked from Danielbook/motion-illuminance.yaml
Motion and Illuminance level
blueprint:
name: Motion-activated Light with illuminance
description: Turn on a light when motion is detected and illuminance is below a set Lux level.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
@Isengo1989
Isengo1989 / eod.sh
Last active April 12, 2024 06:53
Small script to save EOD (end of day) / work log messages and output them when needed. Can also be used to publish via Slack webhook
#!/bin/bash
# Use a variable for the text file name
textFileName="/home/YOUR_USER/eod.txt"
# Config variable for time logging (adds datetime infront of each entry)
timeLogged=false
# Slack webhook URL (only used on publish)
slackWebhook="https://hooks.slack.com/services/XXXXXXXXXXXXXXXX/XXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXX"