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
<html>
<head>
<script src='https://meet.jit.si/external_api.js'></script>
</head>
<body>
<h1>Hello</h1>
<button id="start" type="button">Start</button>
<div id="jitsi-container">
</div>
<!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 - HanyaJasa.Com </h3>
</div>
<div class="posts-section">
<div class="post-bar">
@ryanbekabe
ryanbekabe / perl_reload_apache.pl
Created August 5, 2020 04:32
Perl Reload Apache
#!/usr/bin/perl
{
package MyWebServer;
use HTTP::Server::Simple::CGI;
use base qw(HTTP::Server::Simple::CGI);
my %dispatch = (
'/hello' => \&resp_hello,
'/subdomain' => \&resp_subdomain,
# ...
);
@ryanbekabe
ryanbekabe / reload_apache.js
Created August 5, 2020 04:19
NodeJS Reload Apache
//node reload_apache.js
//Penerapan dari KSKK E-Learning Madrasah Generator: https://bekabe.my.id/
//Under: IDC (I Don't Care) License, karena setiap yang terpublik adalah untuk publik, dan jika tidak ingin terpublik, tidak usah dipublik
const http = require('http');
const hostname = 'hanyajasa.com';
const port = 8080;
const { exec } = require("child_process");
const server = http.createServer((req, res) => {
@ryanbekabe
ryanbekabe / py_reload_apache.py
Last active August 5, 2020 04:26
Python Reload Apache
#!/usr/bin/env python3
#Penerapan dari KSKK E-Learning Madrasah Generator: https://bekabe.my.id/
#Under: IDC (I Don't Care) License, karena setiap yang terpublik adalah untuk publik, dan jika tidak ingin terpublik, tidak usah dipublik
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
import os
port = 8080
class commandhanlder(BaseHTTPRequestHandler):
def _set_response(self):
@ryanbekabe
ryanbekabe / README.md
Created July 20, 2020 00:43 — forked from nichtich/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@ryanbekabe
ryanbekabe / emoji.php
Created July 15, 2020 13:39 — forked from battis/emoji.php
Trying to store/retrieve/display Unicode emoji in a MySQL database
<?php
// MySQL schema
/*
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`text` text,
`blob` blob,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
@ryanbekabe
ryanbekabe / vhost.py
Last active May 11, 2020 06:08 — forked from fideloper/vhost.py
Create vHost Ubuntu Lamp-Server (bash and python)
#! /usr/bin/python3.5
#Ubuntu 16.04.6 LTS
#Apache/2.4.18 (Ubuntu)
#Source: https://gist.githubusercontent.com/fideloper/2710970/raw/cbe308f44bfd299a3f410bb1a06aa67a2753763a/vhost.py
#Modif: 12:43 11/05/2020 - [email protected] - hanyajasa.com
#Example: python3.5 vhost.py -d /var/www/html/lab -s lab.bekabe.my.id
from sys import argv
from os.path import exists
from os import makedirs
# Using Android IP Webcam video / mjpeg .jpg stream (tested) in Python37 OpenCV
# TheBekabe - HanyaJasa.Com - [email protected]
import urllib
import urllib.request
import cv2
import numpy as np
import time
# Replace the URL with your own IPwebcam shot.jpg IP:port
@ryanbekabe
ryanbekabe / python_audio_streaming.py
Last active August 9, 2024 07:29
Python Audio from Mic to streaming
from flask import Flask, Response,render_template
import pyaudio
app = Flask(__name__)
#audio1 = pyaudio.PyAudio()
p = pyaudio.PyAudio()
def generate_wav(self, raw):
"""