Skip to content

Instantly share code, notes, and snippets.

View ryanbekabe's full-sized avatar
💭
Cuckoo Sandbox for identify Malware, JupyterLab for Machine Learning

ryanbekabe

💭
Cuckoo Sandbox for identify Malware, JupyterLab for Machine Learning
View GitHub Profile
@ryanbekabe
ryanbekabe / cppcURLdownload.cpp
Last active September 28, 2022 12:54
C/CPP/C++ cURL Download File
// 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>
//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";
#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);
#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);
@ryanbekabe
ryanbekabe / nginx.conf
Created October 10, 2021 06:39
Nginx RTMP Configuration Store HLS to Web with chmod and chown 777 root
#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 {
@ryanbekabe
ryanbekabe / clock.html
Created October 5, 2021 15:22 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@ryanbekabe
ryanbekabe / zombie-war.cpp
Created June 17, 2021 07:32 — forked from sagebind/zombie-war.cpp
A simple game in C++ for a class exercise.
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
using namespace std;
int createZombie() {
if (rand() % 67 < 10)
return 11;
@ryanbekabe
ryanbekabe / live-mjpeg-stream.py
Created June 7, 2021 09:55 — forked from misaelnieto/live-mjpeg-stream.py
Streaming MJPEG over HTTP with gstreamr and python - WSGI version
#!/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
@ryanbekabe
ryanbekabe / android_stb_shell.sh
Created June 5, 2021 04:32
STB Android command
#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
<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/