This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName www.rek.my.id | |
ServerAlias rek.my.id | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/html | |
<Directory /var/www/html> | |
AllowOverride All | |
Require all granted | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/error.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |