Skip to content

Instantly share code, notes, and snippets.

View DannyFeliz's full-sized avatar
💻
Building things 👨‍💻

Danny Feliz DannyFeliz

💻
Building things 👨‍💻
View GitHub Profile
blueprint:
name: Alexa Media Player TTS/Announce from Lovelace UI
description: Send a notification (TTS/Announcment) via the Lovelace-Ui with the help of a input select and input text. Uses the TTS component from Alexa Media Player which can be installed from the Home Assistant Community Store (HACS).
domain: automation
input:
message:
name: Message of the notification (Input Text)
description: Input text where the message comes from
selector:
entity:
# https://www.youtube.com/watch?v=Vg8lnG2lKSM
Auto Rename Tag: https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag
Better Comments: https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments
change-case: https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case
Code Spell Checker: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
Spanish - Code Spell Checker: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker-spanish
Duplicate action: https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate
Error Lens: https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
file-icons: https://marketplace.visualstudio.com/items?itemName=file-icons.file-icons
GitHub Copilot: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
@DannyFeliz
DannyFeliz / alarmo.yaml
Last active June 30, 2023 01:01
alarmo.yaml
blueprint:
name: Alarmo Keypad Sync with nightmode
description: Keypad sync with Alarmo added nightmode
domain: automation
input:
state_topic:
name: MQTT State Topic of your Zigbee2MQTT Keypad
description: "The State Topic is composed of your Zigbee2MQTT base_topic (see your Z2M Addon Configuration) and the Friendly Name of your keypad in Z2M. Example: zigbee2mqtt/Keypad"
selector:
function getCards() {
const currentDate = new Date();
const month = currentDate.getMonth() + 1;
const formattedMonth = month < 10 ? `0${month}` : month;
const thisMonth = `${currentDate.getFullYear()}-${formattedMonth}`;
const cards = document.querySelectorAll(
`[name="tempoAllocationCard"][data-date^="${thisMonth}"]`
);
return cards;
type: custom:auto-entities
card:
show_header_toggle: false
title: Running Automations
type: entities
filter:
include:
- domain: automation
attributes:
current: '! 0'
@DannyFeliz
DannyFeliz / entidades.md
Created March 26, 2021 20:55
entidades.md

Requerimientos

Entidades

El nombre de las tablas debe estar en plural, por ejemplo: Users, Currencies, Companies, ...

Company ✅

Columna Tipo Características
@DannyFeliz
DannyFeliz / job.json
Created January 29, 2021 13:44
Job response - faker
{
"Id": 210,
"CreatedAt": "2020-11-01T15:18:39.271Z",
"UpdatedAt": "2021-01-28T18:39:29.314Z",
"DeletedAt": null,
"IsActive": true,
"LocationId": 15,
"Location": {
"Id": 15,
"CreatedAt": "2020-06-23T10:38:36.549Z",
class LoginPageObject {
getEmailInput() {
return cy.get("#email");
}
getPasswordInput() {
return cy.get("#password");
}
}
/// <reference types="cypress" />
import LoginPageObject from "./page/LoginPageObject";
describe('Login Page', () => {
const invalidEmail = "invalid@email";
const validEmail = "fake@email.com";
const loginPage = new LoginPageObject();
beforeEach(() => {
cy.visit("https://memod.com");
@DannyFeliz
DannyFeliz / Guide.md
Created April 26, 2020 22:20
Linux config

Hide desktop icons

gsettings set org.gnome.shell.extensions.desktop-icons show-home false
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false