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
#!/usr/bin/python
# Coded By izocin
# Turkey
import requests, re, urllib2, os, sys, codecs,binascii, json
from multiprocessing.dummy import Pool
from time import time as timer
import time
from random import sample as rand
@ryanbekabe
ryanbekabe / bot.py
Created October 9, 2023 02:34 — forked from kuldeep1337/bot.py
import requests, sys, os, re
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
from time import time as timer
from platform import system
from colorama import Fore
from colorama import Style
from pprint import pprint
from colorama import init
@ryanbekabe
ryanbekabe / export_db_csv.py
Created March 9, 2023 06:26 — forked from madan712/export_db_csv.py
Python - Export database table to csv file
import mysql.connector
def fetch_table_data(table_name):
# The connect() constructor creates a connection to the MySQL server and returns a MySQLConnection object.
cnx = mysql.connector.connect(
host='localhost',
database='schema',
user='user',
password='password'
@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"
#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 / 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
---
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