Skip to content

Instantly share code, notes, and snippets.

View alanmsmxyz's full-sized avatar
🖤

Alan alanmsmxyz

🖤
View GitHub Profile
#include "DHT.h"'
#include <ESP8266WiFi.h>
#include "ThingSpeak.h"
// LOOP CONFIG
#define LOOP_DELAY 5000 // equal to 50
// WIFI AUTH
#define WIFI_SSID "[REPLACE]"
#define WIFI_PASSWORD "[REPLACE]"
block_id timestamp
0 2013-08-30 08:00:00
1 2013-08-31 23:00:00
2 2013-09-03 03:00:00
3 2013-09-03 16:00:00
4 2013-09-18 10:00:00
5 2014-05-21 13:00:00
6 2014-05-28 12:00:00
7 2014-05-28 13:00:00
8 2014-05-28 14:00:00
@alanmsmxyz
alanmsmxyz / lemp.sh
Created September 3, 2020 07:55
Bash script to start / stop LEMP services (Nginx, MySQL, and PHP-FPM) via systemd.
#!/bin/bash
# Bash script to start / stop LEMP services (Nginx, MySQL, and PHP-FPM) via systemd.
# Usage lemp.sh [start|stop|restart]
# Check if the script run as root
if [ `whoami` != 'root' ]; then
echo "You need to run this as root"
exit
fi
@alanmsmxyz
alanmsmxyz / lamp.sh
Last active September 3, 2020 07:54
Bash script to start / stop LAMP services (Apache, MySQL/MariaDB, and PHP-FPM) via systemd.
#!/bin/bash
# Bash script to start / stop LAMP services (Apache, MySQL/MariaDB, and PHP-FPM) via systemd.
# Usage lamp.sh [start|stop|restart]
# Check if the script run as root
if [ `whoami` != 'root' ]; then
echo "You need to run this as root"
exit
fi
@alanmsmxyz
alanmsmxyz / decimalToBinary.go
Created September 6, 2019 07:56
Simple algorithm to convert decimal to binary in golang
/*
* decimalToBinary.go
* Simple algorithm to convert decimal to binary in golang
*
* 2019 - Mochamad Syarief Maulana
*/
package main
import "fmt"