This file contains 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 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 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 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 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 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 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 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 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 | bekabeipa@gmail.com | |
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 |
This file contains 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
<html> | |
<div id="result"> | |
</div> | |
<script> | |
let localStorageTimeout = 15 * 1000; // 15,000 milliseconds = 15 seconds. | |
let localStorageResetInterval = 10 * 1000; // 10,000 milliseconds = 10 seconds. | |
let localStorageTabKey = 'test-application-browser-tab'; //https://stackoverflow.com/questions/11008177/stop-people-having-my-website-loaded-on-multiple-tabs/45717724#45717724 | |
let sessionStorageGuidKey = 'browser-tab-guid'; //https://jsfiddle.net/yex8k2ts/30/ |