Skip to content

Instantly share code, notes, and snippets.

View paukul's full-sized avatar

Pascal Friederich paukul

View GitHub Profile
@paukul
paukul / gcm-high-prio.sh
Created November 21, 2017 23:47 — forked from sebastianbenz/gcm-high-prio.sh
Send high priority GCM messages via curl (Android Doze mode & App Standby testing)
curl -X POST \
-H "Authorization: key= YOUR-API-KEY" \
-H "Content-Type: application/json" \
-d '{
"registration_ids": [
"YOUR-GCM-REGISTRATION-ID"
],
"data": {
"message": "Hello Message"
},
/*
Basic Arduino example for K-Series sensor
Created by Jason Berger
Co2meter.com
Rewritten for WiFi-functionality of an ESP8266
and connected to a Senseair S8 CO2-sensor
20151116: Added Philips Hue functionality
by Markus Ulsass
*/
def all_servers
# go figure...
[:server_1, :server_2, :server_3]
end
def run(stuff)
@active_servers.each {|s| puts "Running #{stuff} on #{s}" }
end
def on(server, &block)