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
#-------------Setup---------------- | |
import Ed | |
Ed.EdisonVersion = Ed.V2 | |
Ed.DistanceUnits = Ed.CM | |
Ed.Tempo = Ed.TEMPO_MEDIUM | |
#--------Your code below----------- |
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
# VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish version is 6 | |
vcl 4.0; | |
import directors; | |
import std; | |
# The minimal Varnish version is 6.0 | |
# For SSL offloading, pass the following header in your proxy server or load balancer: 'X-Forwarded-Proto: https' | |
# Define probe used for heartbeat |
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
#!/bin/bash | |
# Zmienne | |
GITLAB_API="https://gitlab.com/api/v4" # Zmień na adres swojego GitLab | |
GROUP_ID="19" # Zmień na ID grupy, z której chcesz wyciągnąć projekty | |
DEPLOY_KEY_ID=$1 # Zmień na ID klucza deploy | |
# Print helpFunction in case parameters are empty | |
if [ -z "$DEPLOY_KEY_ID" ] | |
then |
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
if (pimcore.globalmanager.exists("object_" + this.getStore().getAt(index).data.id)) { | |
// Your implementation | |
} |
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
from(bucket: "home_assistant") | |
|> range(start: -30d) | |
|> filter(fn: (r) => r._measurement == "imp" and r._field == "value") | |
|> aggregateWindow(every: 1d, fn: spread, createEmpty: false) | |
|> map(fn: (r) => ({r with _value: r._value / 1000.0 })) | |
|> yield(name: "daily total") |
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
<div class="dashboard"> | |
<header> | |
<div class="f fe"> | |
<div class="icon icon-w"></div> | |
<div class="heading"> | |
<h5 class="date">1 Feb 2019</h5> | |
<h2 class="title">Cloudy</h2> | |
</div> | |
</div> | |
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
var panel = new Ext.form.FormPanel({ | |
title: 'Example', | |
width: 350, | |
items: [], | |
listeners: { | |
add: function(me, component, index) { | |
component.on('change', function(f,n,o) { | |
alert('detected! '+f.label+' value changed from '+o+' to '+n); | |
console.log(component.startValue); | |
}); |
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
binary_sensor: | |
- platform: template | |
sensors: | |
pc_relay_cwu_pump: | |
friendly_name: "Pompa CWU" | |
value_template: "{{ state_attr('sensor.heat_pump', 'relay_cwu_pump') }}" | |
device_class: power | |
pc_relay_co_pump: | |
friendly_name: "Pompa CO" | |
value_template: "{{ state_attr('sensor.heat_pump', 'relay_co_pump') }}" |
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
version: '3' | |
# Run after run container: | |
# Create user wujku which runs as the FTP system user. By default, the user will be chrooted to /home/ftpuser. | |
# $ docker exec -it pure-ftpd pure-pw useradd wujku -u ftpuser -d /home/ftpuser -m | |
# Update the database using the command | |
# $ docker exec -it pure-ftpd pure-pw mkdb | |
services: | |
ftpd_server: |
NewerOlder