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
esphome: | |
name: lego_holder_light | |
platform: ESP8266 | |
board: nodemcuv2 | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_passwd | |
fast_connect: true | |
power_save_mode: none |
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
stages: | |
- test | |
- deploy | |
- notify | |
test: | |
stage: test | |
image: homeassistant/amd64-homeassistant:0.83.3 | |
before_script: | |
- hass --version |
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
1,2c1 | |
< dist: trusty | |
< sudo: required | |
--- | |
> image: debian | |
4c3,4 | |
< language: c++ | |
--- | |
> stages: | |
> - build |
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 | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { | |
$scheme = "https"; | |
$_SERVER['HTTPS'] = 'on'; | |
} else { | |
$scheme = "http"; | |
} | |
define('WP_SITEURL', $scheme . '://' . $_SERVER['HTTP_HOST']); | |
define('WP_HOME', $scheme . '://' . $_SERVER['HTTP_HOST']); |
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
<ifmodule mod_ssl.c> | |
<virtualhost *:443> | |
ServerName gyengus.hu | |
ServerAlias www.gyengus.hu | |
RequestHeader set X-Forwarded-Proto "https" | |
ProxyPreserveHost on | |
ProxyPass / http://localhost:8888/ | |
ProxyPassReverse / http://localhost:8888/ |
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: "2" | |
services: | |
wordpress: | |
build: . | |
#image: ulsmith/alpine-apache-php7 | |
volumes: | |
- ./www:/app/public | |
- ./logs:/var/log | |
environment: |
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
int led = D7; | |
SYSTEM_MODE(AUTOMATIC); //connect to cloud | |
void setup() { | |
pinMode(led, OUTPUT); | |
Particle.publish("Local IP", String(WiFi.localIP())); | |
} | |
void loop() { |
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 | |
$title = ""; | |
if (isset($_POST['title'])) $title = $_POST['title']; | |
$text = ""; | |
if (isset($_POST['text'])) $text = $_POST['text']; | |
$dest = ""; | |
if (isset($_POST['dest'])) $dest = $_POST['dest']; | |
if ($title and $text) { | |
$url = "https://api.pushbullet.com/v2/pushes"; |
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
#include "OneWire.h" | |
OneWire ds(D3); | |
void btn_handler(void); | |
int readTemp(String command); | |
void pushbulletTemp(void); | |
uint8_t gateway_ip[] = {192, 168, 0, 11}; | |
int gateway_port = 80; |
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
I2C1.setup({scl: B6, sda: B7}); | |
var bmp = require("BMP085").connect(I2C1, 3); | |
function readBTN() { | |
if (digitalRead(BTN1) == 1) { | |
LED1.write(true); | |
bmp.getPressure(function(d) { | |
console.log(new Date().toString()); | |
console.log("Pressure: " + d.pressure + " Pa"); | |
console.log("Temperature: " + d.temperature + " °C"); |
NewerOlder