Skip to content

Instantly share code, notes, and snippets.

View artistio's full-sized avatar

Benny Chandra artistio

View GitHub Profile
@artistio
artistio / dump1090.sh
Created May 1, 2020 01:56
File/script untuk menjalankan dump1090 otomatis setiap restart
#!/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 February 10, 2019 11:40
Program untuk membaca BME280 dengan NodeMCU
/* 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 December 9, 2018 11:20
Mengirimkan data DHT22 ke ThingSpeak, dengan Deep Sleep
/**
* 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 December 9, 2018 10:59
File ini berisi fungsi untuk mengirimkan data ke ThingSpeak
/**
* 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 December 9, 2018 10:54
Membaca suhu dan kelembaban dengan sensor DHT22, lalu mengirimkan ke ThingSpeak
/**
* 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>
/**
* 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 December 9, 2018 09:22
Fungsi wrapper untuk memulai koneksi WiFi di NodeMCU
/**
* 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 December 9, 2018 08:42
Contoh program untuk membaca data sensor DHT22 dengan NodeMCU.
/**
* 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 July 14, 2016 13:58
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
#
# 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 July 14, 2016 13:56
Configuation file of php-fpm, used by fastcgi (NGINX or Wordpress)
; 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'