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
| --- | |
| 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
| #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
| 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
| <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 |
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
| <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
| #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 |
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 | |
| #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 |
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
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <time.h> | |
| using namespace std; | |
| int createZombie() { | |
| if (rand() % 67 < 10) | |
| return 11; |