This file contains hidden or 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
| # /etc/fail2ban/filter.d/traefik-auth.conf | |
| [Definition] | |
| failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .+\" 401 .+$ |
This file contains hidden or 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
| esphome: | |
| name: data-collector | |
| platform: ESP32 | |
| board: esp-wrover-kit | |
| # Enable logging | |
| logger: | |
| # Enable Home Assistant API | |
| api: |
This file contains hidden or 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: |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |