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
server { | |
listen 80; | |
server_name learn.mydomain.com; | |
return 301 https://learn.mydomain.com$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name learn.mydomain.com; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style media="all"> | |
body { | |
width: 7cm; | |
margin: 0 auto; | |
} |
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
FROM ubuntu:12.04 | |
MAINTAINER Alexander Kiryukhin <[email protected]> | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php5 php5-mysql php5-sybase php5-gd php-pear php-apc php5-curl curl lynx-cur php5-xdebug php5-memcached memcached wget | |
RUN a2enmod php5 |
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 | |
include "../koneksi.php"; | |
@session_start(); | |
$username = mysqli_real_escape_string($konek, $_POST['username']); | |
$password = mysqli_real_escape_string($konek, $_POST['password']); | |
$password = md5($password); | |
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
// WARNING !!! | |
// HIGH -> default relay 2 channel | |
// OUTPUT | |
const int PIN_COMPRESSOR = 2; | |
const int PIN_FAN = 4; | |
const int PIN_LAMPU = 7; | |
const int PIN_HEATER = 8; | |
const int PIN_FIRE_ON = 12; | |
const int PIN_FIRE_OFF = 13; |
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
/** | |
* Program untuk jarak | |
*/ | |
#include <Streaming.h> | |
#include <Ethernet.h> | |
#include <SPI.h> | |
#include <MemoryFree.h> | |
#include <Agentuino.h> | |
#include <Flash.h> |
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 <elapsedMillis.h> | |
elapsedMillis timer0; | |
#define interval 300000 | |
// WARNING !!! | |
// HIGH -> default relay 2 channel | |
// OUTPUT | |
const int PIN_COMPRESSOR = 2; |
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
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.2", SYMLINK+="serial1" | |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.3", SYMLINK+="serial2" | |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.4", SYMLINK+="serial3" | |
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", KERNELS=="1-1.5", SYMLINK+="serial4" |
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
/** | |
* Program untuk membaca arus, gas, suhu, kelembaban, jarak | |
*/ | |
#include <Streaming.h> | |
#include <Ethernet.h> | |
#include <SPI.h> | |
#include <MemoryFree.h> | |
#include <Agentuino.h> | |
#include <Flash.h> |
NewerOlder