Skip to content

Instantly share code, notes, and snippets.

Avatar

Benny Chandra artistio

View GitHub Profile
@artistio
artistio / dump1090.sh
Created May 1, 2020
File/script untuk menjalankan dump1090 otomatis setiap restart
View dump1090.sh
#!/bin/bash
### BEGIN INIT INFO
#
# Provides: dump1090
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: dump1090 initscript
@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'