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
#include "secrets.h" | |
#include "ThingSpeak.h" | |
#include <DHTesp.h> | |
#include <ESP8266WiFi.h> | |
#include <SFE_BMP180.h> | |
#include <Wire.h> | |
#define BUILTIN_LED1 D4 //GPIO2 | |
#define BUILTIN_LED2 D0 //GPIO16 | |
#define DHTpin D5 //GPIO14 |
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
#define SECRET_SSID "default" | |
#define SECRET_PASS "" | |
#define BUILTIN_LED1 D4 //GPIO2 | |
#define BUILTIN_LED2 D0 //GPIO16 | |
#define MUX_A D5 //GPIO14 | |
#define MUX_B D2 //GPIO4 | |
#define MUX_C D1 //GPIO5 | |
#include <DHTesp.h> |
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
#include <DHTesp.h> | |
DHTesp dht; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
Serial.println(); | |
Serial.println("Estado\tHumedad (%)\tTemperatura (C)\t(F)\tIndice de Calor (C)\t(F)"); | |
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
const short int BUILTIN_LED1 = 2; //GPI02 | |
const short int BUILTIN_LED2 = 16; //GPI016 | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(BUILTIN_LED1, OUTPUT); | |
pinMode(BUILTIN_LED2, OUTPUT); | |
} | |
void loop() { |
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 | |
### ABOUT | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### Simply edit the rsync line in the script to whatever parameters you need. | |
# Trap interrupts and exit instead of continuing the loop | |
trap "echo Exited!; exit;" SIGINT SIGTERM | |
MAX_RETRIES=50 |
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/sh | |
set -e | |
set -x | |
mkdir temp | |
cd temp | |
wget http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe | |
cabextract -L -F ppviewer.cab PowerPointViewer.exe | |
cabextract ppviewer.cab |
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
<?php | |
function find($criteria, $array, &$match){ | |
$found = array_key_exists($criteria, $array); | |
if ($found === false){ | |
foreach ($array as $value){ | |
if (is_array($value)){ | |
if (!find($criteria, $value, $match)){ | |
continue; | |
} else { |
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 | |
# Enables a site, just like a2ensite command, from Apache2. | |
SITES_AVAILABLE_CONFIG_DIR="/opt/nginx/sites-available"; | |
SITES_ENABLED_CONFIG_DIR="/opt/nginx/sites-enabled"; | |
if [ $1 ]; then | |
if [ -f "${SITES_ENABLED_CONFIG_DIR}/${1}" ]; then | |
echo "Site ${1} was already enabled!"; | |
elif [ ! -w $SITES_ENABLED_CONFIG_DIR ]; then |
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
{ | |
"application_id":"APP-ID", | |
"src":"http://www.google.com/logos/2011/houdini11-hp.jpg", | |
"functions":[ | |
{ | |
"name":"trim", | |
"functions":[ | |
{ | |
"name":"watermark", | |
"params":{ |
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
{ | |
"application_id": "APP-ID", | |
"src" : "http://www.google.com/logos/2011/houdini11-hp.jpg", | |
"functions" : | |
[ | |
{ | |
"name" : "trim", | |
"functions" : [ | |
{ | |
"name": "watermark", |
NewerOlder