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
/* | |
* copyleft 2005 DojoDave <http://www.0j0.org> | |
* http://arduino.berlios.de | |
* | |
* based on an orginal by H. Barragan for the Wiring i/o board | |
*/ | |
int ledPin = 13; // LED connected to digital pin 13 | |
void setup() |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty32" | |
config.omnibus.chef_version = :latest |
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
user www-data; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
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
fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=WP:32m inactive=60m; | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
add_header X-Cache $upstream_cache_status; | |
server { | |
listen [::]:80 ipv6only=off; | |
listen [::]:443 ipv6only=off ssl; | |
# Change the line below according to domain served by this Wordpress. Include all domain | |
server_name example.com *.example.com example.org *.example.org; |
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
; Start a new pool named 'fpm-pool'. | |
; the variable $pool can we used in any directive and will be replaced by the | |
; pool name ('www' here) | |
[www] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'slowlog' | |
; - 'listen' (unixsocket) | |
; - 'chroot' |
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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
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 suhu dan kelembaban dari sensor DHT22 | |
* menggunakan NodeMCU | |
* | |
* Hak cipta (c) 2016 x.benny.id. All rights reserved. | |
* https://x.benny.id | |
*/ | |
// Konfigurasi DHT22 | |
#include <DHT.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
/** | |
* File startWiFi.ino | |
* | |
* int startWiFi(char* ssid, char* pass) | |
* | |
* Fungsi: Memulai koneksi ke WiFi sesuai dengan ssid dan pass | |
* | |
* Return Value: | |
* - 0: Koneksi sukses. Hasil koneksi akan terbaca di Serial Monitor | |
* - 1: Koneksi gagal. Hasil koneksi akan terbaca di Serial Monitor |
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 suhu dan kelembaban dari sensor DHT22 | |
* menggunakan NodeMCU | |
* | |
* Hak cipta (c) 2016 x.benny.id. All rights reserved. | |
* https://x.benny.id | |
*/ | |
// Konfigurasi DHT22 | |
#include <DHT.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
/** | |
* Program untuk membaca suhu dan kelembaban dari sensor DHT22 | |
* menggunakan NodeMCU | |
* | |
* Hak cipta (c) 2016 x.benny.id. All rights reserved. | |
* https://x.benny.id | |
*/ | |
// Konfigurasi DHT22 | |
#include <DHT.h> |
OlderNewer