This file contains hidden or 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
timedatectl set-timezone Asia/Jakarta | |
apt install software-properties-common | |
add-apt-repository ppa:ondrej/php | |
apt-get update | |
apt-get install php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath | |
apt-get install php7.4 php7.4-mysql php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath | |
php -m | |
apt update | |
apt install mysql-server | |
apt install mariadb-server mariadb-client |
This file contains hidden or 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
// 14:20 28/09/2022 | |
// Adapted from https://curl.haxx.se/libcurl/c/https.html | |
// Source https://www.devdungeon.com/content/curl-tutorial, https://stackoverflow.com/questions/4984391/cmd-line-rename-file-with-date-and-time | |
// disable : 4996 https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(C4996)%26rd%3Dtrue&view=msvc-170 | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <string> | |
#include <curl.h> |
This file contains hidden or 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
//18:41 23/08/2022 | |
//NodeMCU ESP8266 Kendalikan 2 Relay Modul via Web dari WiFi NodeMCU. www.hanyajasa.com. source cncstore ap switch, Cnc Store 12345678, 337337 | |
#include <ESP8266WiFi.h> //memasukan library NodeMCU | |
#define matikanrelay digitalWrite(1,LOW) | |
#define hidupkanrelay digitalWrite(1,HIGH) | |
#define matikanrelayb digitalWrite(2,LOW) | |
#define hidupkanrelayb digitalWrite(2,HIGH) | |
int saklaroff; | |
const char* ssid = "WiFi IoT HanyaJasa"; |
This file contains hidden or 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
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#define USE_SERIAL Serial | |
ESP8266WiFiMulti WiFiMulti; | |
int randTemp; | |
String url; | |
void setup() { | |
USE_SERIAL.begin(115200); |
This file contains hidden or 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
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#define USE_SERIAL Serial | |
ESP8266WiFiMulti WiFiMulti; | |
int randTemp; | |
String url; | |
void setup() { | |
USE_SERIAL.begin(115200); |
This file contains hidden or 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
#hanyajasa.com 10/10/2021 | |
#https://youtu.be/I8beTf8PiBs | |
#Live Streaming OBS ke VPS Nginx RTMP, Play via Browser | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |
This file contains hidden or 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
#include <iostream> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> | |
using namespace std; | |
int createZombie() { | |
if (rand() % 67 < 10) | |
return 11; |
This file contains hidden or 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
#!/usr/bin/python | |
#based on the ideas from http://synack.me/blog/implementing-http-live-streaming | |
# Run this script and then launch the following pipeline: | |
# gst-launch videotestsrc pattern=ball ! video/x-raw-rgb, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! tcpclientsink port=9999 | |
from Queue import Queue | |
from threading import Thread | |
from socket import socket | |
from select import select | |
from wsgiref.simple_server import WSGIServer, make_server, WSGIRequestHandler |
This file contains hidden or 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
#Ryan Bekabe | hanyajasa.com | [email protected] | |
am stack list | |
am start -n com.cetusplay.remoteservice/com.wukongtv.wkhelper.MainActivity | |
am force-stop com.cetusplay.remoteservice | |
pm clear com.cetusplay.remoteservice | |
am start -n be.mygod.vpnhotspot/be.mygod.vpnhotspot.MainActivity | |
am start -n com.android.tv.settings/com.android.tv.settings.MainSettings |