This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the folowing helpers in Home Assistant: | |
# Name | Entity ID | Type | |
# ---------------------------------------------------------------------------------------------------------------- | |
# wordclock_status | input_boolean.wordclock_status | input_boolean | |
# Wordclock IP | input_text.wordclock_ip | input_text (Min:0 Max:100,Text) Enter the IP-Adress of your Wordclock | |
# wordclock_ambi_b | input_number.wordclock_ambi_b | input_number (Min:0 Max:255, Step:1) | |
# wordclock_ambi_g | input_number.wordclock_ambi_g | input_number (Min:0 Max:255, Step:1) | |
# wordclock_ambi_r | input_number.wordclock_ambi_r | input_number (Min:0 Max:255, Step:1) | |
# wordclock_ambi_brightness | input_number.wordclock_ambi_brightness | input_number (Min:1 Max:255, Step:1) | |
# wordclock_display_b | input_number.wordclock_display_b | i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Shelly BLU RC-4 Button Control (Short, Long, and Double Press) | |
description: Automate actions using Shelly BLU RC-4's 4 buttons with different press types. | |
domain: automation | |
input: | |
button_device: | |
name: Shelly BLU RC-4 | |
description: Select the Shelly BLU RC-4 remote. | |
selector: | |
device: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
function HelloWorld() { | |
echo "Hello World"; | |
} | |
HelloWorld(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vorher (Zeile 471): | |
echo "<li".$class."><a ".$href." title=\"".$lightbox_title." - ".$echo_text."\">"._01gallery_getThumb($galverz,stripslashes($pics['filename']),"_tb")."</a></li>\n"; | |
// Nachher | |
echo "<li".$class."><a ".$href." title=\"".$lightbox_title."\">"._01gallery_getThumb($galverz,stripslashes($pics['filename']),"_tb")."</a></li>\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
$publicKey = "-----BEGIN PUBLIC KEY----- | |
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXJcP2N6NtcN26Q8nVaidXOA0w | |
RxWK2HQTblIaQdGRDjqTvhrSlFuV5N4jz7w/w8uskP20G7ZQ+CkHwIXrWk76KZJn | |
pdoOHPO6AqRmEFgV5Q6Y1CR77mvnT9O21hTnfzfyyiAdQC2oO8M9/jeLRPTAqmkG | |
xdQa8iepUz4BwrrHmwIDAQAB | |
-----END PUBLIC KEY-----"; | |
// Verify integrity of Payload | |
$result = openssl_verify($_POST['payload'], base64_decode($_POST['signature']), $publicKey); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var giframe; | |
var gURL; | |
function periodicResize(iframe){ | |
giframe = iframe; | |
setInterval(resizeIframe, 500); | |
} | |
function resizeIframe() { | |
if(giframe.contentWindow.document.body != null && giframe.contentWindow.document.body.scrollHeight > 0){ | |
if(giframe.contentWindow.document.URL != gURL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
session_start(); | |
$secCode = rand(100000,999999); | |
$_SESSION['antispam_'.$_GET['formid']] = md5($secCode); | |
// get from: http://www.01-scripts.de/01scripts/01pics/sec.jpg | |
$im = imagecreatefromjpeg("sec.jpg"); | |
// get from: http://www.01-scripts.de/01scripts/01pics/verdanab.ttf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Folgende zusaetzliche CSS-Eigenschaften muessen ggf. in eine externe CSS-Datei eingefuegt werden: | |
/* SLIMBOX */ | |
#lbOverlay { | |
position: fixed; | |
z-index: 9999; | |
left: 0; | |
top: 0; | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
// MySQL-Einstellungen: | |
$host = "localhost"; //Host/Server ihrer Mysql-Datenbank | |
$database = "test"; //Datenbankname | |
$user = "user"; //Usernamen für Mysql-Datenbank | |
$passw = ""; //Passwort zur Mysql-Datenbank | |
$table = "mantis_plugin_source_changeset_table"; |
NewerOlder