Skip to content

Instantly share code, notes, and snippets.

View jandolejs's full-sized avatar
👋
Hi there

Jan Dolejš jandolejs

👋
Hi there
View GitHub Profile
blueprint:
name: Switch Aqara D1
domain: automation
input:
switch:
name: Button switch Device
selector:
entity:
domain: sensor
multiple: true
@jandolejs
jandolejs / Bash errors.md
Last active April 4, 2023 02:41
PlayBook

The input device is not a TTY

  • command: ./bin/magento module:status | grep Vendorname_ | grep -v -e '^$' | xargs ./bin/magento mod:dis
  • solved: bin/magento module:disable $(bin/magento module:status | grep '^Vendorname_' | grep -v '^List|^None|^Magento|^$')
@jandolejs
jandolejs / sign.html
Last active November 8, 2022 09:00
My OLD sign in gmail
<div>
<table>
<tr>
<td rowspan="5">
<img style="width: 75px; border-radius: 10%;" src="https://s.gravatar.com/avatar/c95ada5f36801d354b11fb0672b7d267?s=80">
</td>
<td>
<table cellspacing="0" cellpadding="0" border="0" style="line-height: 1.8em; padding: 0 5px;">
@jandolejs
jandolejs / change_invoice_dph.sql
Last active November 8, 2022 08:58
Change dph on invoices (mainly for merchants who complains about wrong tax amount)
-- manualni zemna sazby dph pouze na fakturach (nyni na 27%)
UPDATE
sales_flat_invoice
SET tax_amount = ROUND(grand_total - (grand_total / 1.21), 2),
base_tax_amount = ROUND(base_grand_total - (base_grand_total / 1.21), 2),
cod_fee = ROUND((cod_fee + cod_tax_amount) / 1.21, 2),
base_cod_fee = ROUND((base_cod_fee + base_cod_tax_amount) / 1.21, 2),
cod_tax_amount = ROUND((cod_fee + cod_tax_amount) - ((cod_fee + cod_tax_amount) / 1.21), 2),
@jandolejs
jandolejs / obec.sh
Last active November 8, 2022 08:54 — forked from SunnyDark99/obec.sh
/*
* Created by SharpDevelop.
* User: prero
* Date: 22.05.2020
* Time: 14:23
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
javascript: (function() {
var pzko = "";
var header = document.querySelector('#partial-discussion-header h1.gh-header-title .js-issue-title');
if (header) {pzko = header.innerText.trim().match(/^PZ-\d+/); }
pzko = window.prompt("Zadej číslo úkolu", pzko);
if (pzko.match(/^\d+$/)) {pzko = "PZ-" +pzko; }

Keybase proof

I hereby claim:

  • I am jandolejs1999 on github.
  • I am jandolejs (https://keybase.io/jandolejs) on keybase.
  • I have a public key ASAxztvxvhvjcztJp33gtM8f_KYOwOzrtst4Ku2BVoMCqwo

To claim this, I am signing this object: