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
<!DOCTYPE html>
<html>
<br/><input type='hidden' id='id' name='id' size='30' value='anon'></input>
<script src="https://meet.jit.si/external_api.js"></script>
<div class="col-lg-9 col-md-8">
<div class="company-title2">
<h3><i class="fa fa-camera"></i> VCall - Room </h3>
</div>
<div class="posts-section">
<div class="post-bar">
@ryanbekabe
ryanbekabe / setup-mysql-replication.sh
Created November 28, 2022 07:30 — forked from ZsBT/setup-mysql-replication.sh
create mysql/mariadb master-master replication
#!/bin/bash
#
# setup mysql replication.
# run this script parallel on both servers as we need log file name and position on the other node
#
#
ROOT_PASS="rootP@ssw0rd"
REPLI_PASS="replicationP@ssw0rd"
SIBLING_IP="1.2.3.4"
@ryanbekabe
ryanbekabe / manual_install_php_mysql.sh
Created October 31, 2022 01:55
Manual install PHP7.4 dan Database MySQL MariaDB server Ubuntu 18
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
@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 / 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 / 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" >