Skip to content

Instantly share code, notes, and snippets.

<?php
$file = $argv[1];
$threashold = $argv[2] ?? 5;
// Load image
$image = imagecreatefrompng($file);
if (!$image) {
exit(2);
}
blueprint:
name: "BTNW Quick toggle to set brighness"
description: "Change brighness with quick on-off toggle"
domain: automation
input:
switch:
name: Switch
description: Switch to turn on-off-on.
selector:
entity:
[
{
"BTTTriggerType" : 132,
"BTTTriggerTypeDescription" : "Built In: TipTap Left (2 Fingers Fix)",
"BTTTriggerClass" : "BTTTriggerTypeTouchpadBuiltIn",
"BTTPredefinedActionType" : -1,
"BTTPredefinedActionName" : "No Action",
"BTTAutoAdaptActionToKeyboardLayout" : true,
"BTTShortcutToSend" : "59,56,48",
"BTTEnabled2" : 1,

Keybase proof

I hereby claim:

  • I am lintaba on github.
  • I am lintaba (https://keybase.io/lintaba) on keybase.
  • I have a public key ASAPOBaAWOGNo9L-zcFurbeespRWPpniJFtkIl9BdSQpPAo

To claim this, I am signing this object:

<?php
set_time_limit(-1);
define('KB',1024);
define('MB',KB*1024);
?>
<html><head><style>quote{border:1px solid gray;margin-left:5px;display:block;}</style></head><body>
<?php
if(!isset($_GET["to"])){die("paraméter(to) hiányzik (pl archive)");}
if(!isset($_GET["from"])){die("paraméter(from) hiányzik (pl ./");}
"Why don’t you go back to your desk and tail call yourself?",
"I never believed in chaos theory until I saw your variable naming convention!",
"Your commit is writing checks your merge can’t cash.",
"Your code, just like C. Has no class!",
"Your coding methods are so backwards they’ve added it to the school curriculum in Texas!",
"Your code runs so slow your data brings sleeping bags to camp-out in the cache lines.",
"More unit tests? No! What your code needs is petrol and a match.",
"Imagine an egg hitting a concrete pavement, that’s how hard-wired, inflexible and brittle your code is.",
"Don't worry about it, I'll get someone technical to do this.",
"You're slower then a Java app.",