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 / 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 / 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 / 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 / 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 / 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,
# ...
);
<!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">
<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>
#!/usr/bin/python
# https://gist.github.com/bortzmeyer/1284249
# https://www.cnpython.com/qa/53070
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
<?php
echo 'example:<br/> ping.rhs.im/nslookup.php?cek=rhs.im<br/>';
#$output = shell_exec('ping -c 4 '.$_GET['cek']);
$output = shell_exec('nslookup -q=txt _acme-challenge.'.$_GET['cek']);
echo "<br/>----<br/><pre>$output</pre>";
?>
@ryanbekabe
ryanbekabe / python_flask_ssl.py
Created October 12, 2020 01:00
Pyton Flask with SSL Let's Encrypt
#Pyton Flask with SSL Let's Encrypt
#Source: https://bits.mdminhazulhaque.io/python/run-flask-app-with-let's-encrypt-ssl-certificate.html
import requests
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=['GET'])
def serve():
return "Hello world", 200