Skip to content

Instantly share code, notes, and snippets.

View harishanchu's full-sized avatar
🎯
Focusing

Harish Ambady harishanchu

🎯
Focusing
View GitHub Profile
@harishanchu
harishanchu / openssl.MD
Created January 12, 2018 14:49 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

The following is a VERY rough draft of an article I am working on for Alex MacCaw's @maccman's Book. It is very rough, but even now a worthwhile read. Suggestions / comments are very welcome! Please help me :-)

Introduction

JavaScriptMVC (JMVC) is an open-source jQuery-based JavaScript framework. It is nearly a comprehensive (holistic) front-end development framework, packaging utilities for testing, dependency management, documentation, and a host of useful jQuery plugins.

Yet every part of JavaScriptMVC can be used without every other part, making the library lightweight. Its Class, Model, View, and Controller combined are only 7k minified and compressed, yet even they can be used independently. JavaScriptMVC's independence lets you start small and scale to meet the challenges of the most complex applications on the web.

This chapter covers only JavaScriptMVC's $.Class, $.Model, $.View, and $.Controller. The following describes each component:

@harishanchu
harishanchu / early_response.php
Last active December 25, 2015 06:39
php asynchronous requests
<?php
/**
* With following script you can make multiple php requests in a same session asynchronously
*/
// script can run forever..
set_time_limit(0);
// tell the client the request has finished processing
header('Connection: close');
@harishanchu
harishanchu / typeracer.com-cheat.js
Last active August 28, 2023 04:54
typeracer.com cheat
//Before you start typing open your developer console and paste the following script
//Now pressing any key will result in to correct key press untill you reach next space key.
//I made the user push space to move further, so that someone viewing your typing will think you are not faking.
//warning: Site detects the WPM above 100 and asks you to do a captcha test.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type.
jQuery.noConflict();
@harishanchu
harishanchu / typinclub.com-cheat.js
Last active March 5, 2022 02:53
typingclub.com cheat js
//Before you start typing open your developer console and paste the following script
//To enable/disable faking press (cntrl+b).
//Now pressing any key will result in to correct key press.
//Script also produces random mistakes with random characters so that viewers will think you are not faking.
var enable = false;
$(document).unbind("keydown"), $(document).keydown(function (e) {
if (e.which === 66 && (e.ctrlKey || e.metaKey)) {
if (enable) enable = false;
else enable = true