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
/*CREATE TABLE IF NOT EXISTS `product` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`product_name` varchar(200) DEFAULT NULL,
`product_price` int(11) DEFAULT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
*/
var mysql = require('mysql');
var con = mysql.createConnection({
---
version: '2'
services:
jupyter:
image: jupyter/scipy-notebook
container_name: jupyter
command: start.sh jupyter lab --LabApp.token='*******************' --LabApp.allow_remote_access='True' --LabApp.allow_origin='*'
restart: always
@ryanbekabe
ryanbekabe / Apache_vHost_SSL_GoDaddy_Grade_A.conf
Created January 7, 2021 16:18
Apache vHost SSL GoDaddy Grade A
#https://www.ssllabs.com/ssltest/analyze.html?d=prblm.com
#Server version: Apache/2.4.6 (CentOS)
#Server built: Nov 16 2020 16:18:20
#OpenSSL 1.0.2k-fips 26 Jan 2017
#/etc/httpd/conf/httpd.conf
#Include /etc/httpd/conf/prblmssl.conf
#/etc/httpd/conf/prblmssl.conf
#https://github.com/narbehaj/ssl-checker
#https://github.com/TKCERT/testssl.sh-webfrontend
#https://www.sslshopper.com/ssl-checker.html#hostname=prblm.com
@ryanbekabe
ryanbekabe / Cipher_Suites_List.txt
Created January 10, 2021 09:16
Cipher Suites List
https://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/210533-SSL-Cipher-Strength-Details.html
ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD
ECDHE-ECDSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AESGCM(256) Mac=AEAD
ECDHE-RSA-AES256-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA384
ECDHE-ECDSA-AES256-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA384
ECDHE-RSA-AES256-SHA SSLv3 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA1
ECDHE-ECDSA-AES256-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA1
SRP-DSS-AES-256-CBC-SHA SSLv3 Kx=SRP Au=DSS Enc=AES(256) Mac=SHA1
SRP-RSA-AES-256-CBC-SHA SSLv3 Kx=SRP Au=RSA Enc=AES(256) Mac=SHA1
SRP-AES-256-CBC-SHA SSLv3 Kx=SRP Au=SRP Enc=AES(256) Mac=SHA1
@ryanbekabe
ryanbekabe / Apache_A_Plus_Grade_SSL.conf
Created January 11, 2021 06:37
Apache A Plus Grade SSL Let's Encrypt
<VirtualHost *:80>
ServerName www.rek.my.id
ServerAlias rek.my.id
ServerAdmin bekabeipa@gmail.com
DocumentRoot /var/www/html
<Directory /var/www/html>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
(function ($) {
$.fn.DuplicateWindow = function () {
var localStorageTimeout = (5) * 1000; // 15,000 milliseconds = 15 seconds.
var localStorageResetInterval = (1/2) * 1000; // 10,000 milliseconds = 10 seconds.
var localStorageTabKey = 'my-application-browser-tab'; //source: https://www.jqueryscript.net/other/check-duplicate-browser-tab-window.html
var sessionStorageGuidKey = 'browser-tab-guid'; //dep: https://code.jquery.com/jquery-3.3.1.slim.min.js
var ItemType = {
Session: 1,
Local: 2
<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/
@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
@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 / 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;