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: airrohr | |
platform: ESP8266 | |
board: nodemcuv2 | |
# Enable logging | |
logger: | |
level: WARN | |
# Enable Home Assistant API |
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
require "bundler" | |
Bundler.setup | |
require 'json' | |
require 'excon' | |
# get token | |
login_response = Excon.post('https://api.prod.eed.ista.com/login', | |
body: '{"email":"email", "password":"password","fromMobileApp":true}', | |
headers: { "Content-Type" => "application/json" } | |
) |
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/sh | |
# PROVIDE: cortex | |
# REQUIRE: DAEMON | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf to enable cortex: | |
# | |
# cortex_enable (bool): Set to "NO" by default. |
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
sensor: | |
- platform: rest | |
name: luftdaten | |
resource: http://192.168.1.149/data.json | |
scan_interval: 100 | |
json_attributes: | |
- sensordatavalues | |
value_template: '{{ value_json.age }}' | |
- platform: template | |
sensors: |
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
DO LANGUAGE plpgsql $$ | |
DECLARE counter INTEGER = 1; | |
DECLARE tick INTEGER = 1; | |
BEGIN | |
WHILE counter > 0 LOOP | |
UPDATE table | |
SET field = NULL | |
WHERE id IN ( | |
SELECT id | |
FROM table |
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
mkdir /tmp/zroot | |
zpool import -fR /tmp/zroot zroot | |
mkdir /tmp/root | |
mount -t zfs zroot/ROOT/default /tmp/root |
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
#!/home/rof/.rvm/rubies/ruby-2.2.0/bin/ruby | |
require 'json' | |
require 'net/http' | |
class CodeshipRestartBuild | |
def self.restart_build | |
self.new.restart_build | |
end |
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
package bitmask | |
import ( | |
"encoding/binary" | |
"bytes" | |
"fmt" | |
) | |
type Channelmask struct { | |
A3 bool |
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
{ | |
"places": [ | |
{ | |
"name": "Surf Shak", | |
"SSID": "Bar Surf", | |
"password": "shak2525" | |
}, | |
{ | |
"name": "Hostal Rutamar", | |
"SSID": "HOSTAL RUTAMAR", |
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
NoMethodError at /merchants/xxx/transparent_redirect_requests | |
undefined method `[]' for nil:NilClass | |
file: | |
base.rb | |
location: html? | |
line: | |
117 | |
BACKTRACE | |
(expand) | |
JUMP TO: |
NewerOlder