Skip to content

Instantly share code, notes, and snippets.

Benny Chandra artistio

Block or report user

Report or block artistio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@artistio
artistio / NodeMCU_BME280.ino
Created Feb 10, 2019
Program untuk membaca BME280 dengan NodeMCU
View NodeMCU_BME280.ino
/* NodeMCU_BME280.ino
* Program untuk membaca suhu dan kelembaban dari sensor BME280 (I2C)
* menggunakan NodeMCU
*
* Hak cipta (c) 2019 x.benny.id. All rights reserved.
* https://x.benny.id
*/
#include <Adafruit_Sensor.h>
@artistio
artistio / NodeMCU_DHT22_WiFi_TS_DS.ino
Created Dec 9, 2018
Mengirimkan data DHT22 ke ThingSpeak, dengan Deep Sleep
View NodeMCU_DHT22_WiFi_TS_DS.ino
/**
* 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>
@artistio
artistio / sendThingSpeak.ino
Created Dec 9, 2018
File ini berisi fungsi untuk mengirimkan data ke ThingSpeak
View sendThingSpeak.ino
/**
* File sendThingSpeak.ino
*
* int sendThingSpeak(float temp, float hum)
*
* Fungsi: Mengirimkan suhu (field0) dan kelembaban(field1) ke ThingSpeak
*
* Return Value: TBD
*
* Hak cipta (c) 2018 x.benny.id.
@artistio
artistio / NodeMCU_DHT22_WiFi_TS.ino
Created Dec 9, 2018
Membaca suhu dan kelembaban dengan sensor DHT22, lalu mengirimkan ke ThingSpeak
View NodeMCU_DHT22_WiFi_TS.ino
/**
* 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>
View NodeMCU_DHT22_WiFi.ino
/**
* 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>
@artistio
artistio / startWiFi.ino
Created Dec 9, 2018
Fungsi wrapper untuk memulai koneksi WiFi di NodeMCU
View startWiFi.ino
/**
* 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
@artistio
artistio / NodeMCU_DHT22.ino
Last active Dec 9, 2018
Contoh program untuk membaca data sensor DHT22 dengan NodeMCU.
View NodeMCU_DHT22.ino
/**
* 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>
@artistio
artistio / my.cnf
Created Jul 14, 2016
MySQL configuration file for low memory server. This config disable InnoDB so MySQL use less memory. Might not work for MySQL 5.7, where InnoDB can't be disabled
View my.cnf
#
# 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.
@artistio
artistio / fpm-pool.conf
Created Jul 14, 2016
Configuation file of php-fpm, used by fastcgi (NGINX or Wordpress)
View fpm-pool.conf
; 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'
@artistio
artistio / wp-ms
Created Jul 14, 2016
NGINX site specification to run Wordpress Multisite with Domain Mapping. This site use fastcgi cache to speed up PHP execution Support HTTPS is also available. To use, put this file in /etc/nginx/site-available, and symlink to /etc/nginx/site-enabled
View wp-ms
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;
You can’t perform that action at this time.