Skip to content

Instantly share code, notes, and snippets.

View meauris's full-sized avatar

Maurice meauris

  • the Netherlands
View GitHub Profile
@meauris
meauris / gist:9746ca6b82191ad3431703fa3f7f3ec5
Last active September 29, 2018 19:25
Edited version of the original blink example for ESP8266
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is active low on the ESP-01)
delay(500); // Wait for a second
@meauris
meauris / ruby.2.4.1-for-puppet-setup.sh
Last active October 31, 2017 20:57 — forked from mustafaturan/ruby.2.6.3-setup.sh
ruby 2.4.1 setup for centos 6.x
#!/usr/bin/env bash
# repository
start_installation()
{
# system update
yum -y update
yum -y install httpd httpd-devel mod_ssl gcc gcc-c++ liburl-devel openssl-devel
# ruby 2.4.1
@meauris
meauris / gist:8fdc9cbf4fe075154300bd5db3d686f3
Created March 14, 2017 17:54
intervallometer using millis
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
To upload to your Gemma or Trinket:
1) Select the proper board from the Tools->Board Menu
2) Select USBtinyISP from the Tools->Programmer
3) Plug in the Gemma/Trinket, make sure you see the green LED lit