Skip to content

Instantly share code, notes, and snippets.

@mdsaleemj
mdsaleemj / modules.md
Last active August 29, 2015 14:27 — forked from aubinlrx/modules.md
Node modules
@mdsaleemj
mdsaleemj / prototypes.js
Last active September 11, 2015 13:47 — forked from torgeir/prototypes.js
javascript's __proto__ and prototype explained
/**
* __proto__ and prototype
* - the __proto__ property the instance's 'parent' up the prototype chain
* - the prototype property refers what new instances of the type will have their __proto__ set to, i.e. what will be the new instance's 'parent' up the prototype chain
*/
/* Given */
function Object () {}
Object.prototype = {
__proto__: null
@mdsaleemj
mdsaleemj / Install_Oracle_JDK_in_Ubuntu_12.04
Created October 14, 2015 13:29
Installing JDK in Ubuntu 12.04
Hi,
I wanted to install the Oracle JDK in my ubuntu which already contains OpenJDK. Oracle doesn't official supports any repoistory
for ubuntu.
There are two possible ways now
1. Download and install JDK/JRE from Oracle manually.
2. Use PPA(Personal Package Archives) - This is not official and maintained by community and people say it as insecure.
So , for time being i chose to install via PPA
@mdsaleemj
mdsaleemj / install_execstack_on_ubuntu.md
Created October 19, 2015 07:07
How to install execstack on Ubuntu and Arch Linux

Execstack is a great tool for learning and training on Linux. It is a program which sets, clears, or queries the executable stack flag of ELF binaries and shared libraries. When I was looking to install it I took me a bit to find which package to install it in.

You can install with :

Ubuntu

$ sudo apt-get install prelink

Arch Linux

@mdsaleemj
mdsaleemj / 01-intro.md
Created November 4, 2015 09:03 — forked from dwayne/01-intro.md
My notes from the book "ng-book: The Complete Book on AngularJS by Ari Lerner".

Introduction

Author: Ari Lerner.

AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:

  • Module support
  • DOM manipulation
  • Animations
  • Templating
@mdsaleemj
mdsaleemj / storing and downloading binary data in mongodb
Last active November 21, 2018 12:40
storing and downloading binary data in mongodb without grid-fs
//The below model is used to book a travel ride.
//The uploaded file is parsed in the formidable multipart body parser and stored in req.files.fileField.
//File is read from , in my code, req.files.file
var rideModel = function(){
var rideSchema = new Schema({
email : String,
corp_id : String,
name : String,
manager: String,
@mdsaleemj
mdsaleemj / front-end-development.md
Last active October 26, 2017 07:03
Front End development

Hi, This is my place to gather any ideas/concepts/resources related to frontend development. Right now , front dev is vast and there lot of things for different types of front end projects .

BEST Resources is : FrontEnd Master - gitbook (also pdf available in drive). This book gives nice overview of overall front-end Engineering and describes lot of different disciplines with in front end dev.

#####NOTE##### This guide needs to constantly maintained and refined and grouped in different sections for better understanding. Also, refer to git where lot of resources available for front dev and related curricula.

@mdsaleemj
mdsaleemj / openssl-extract-private-key-from-pfx.md
Last active January 21, 2022 07:43
openssl-extract-private-key-from-pfx

Customers sometimes have a need to export a certificate and private key from a Windows computer to separate certificate and key files for use elsewhere. Windows doesn't provide the means to complete this process.

Exporting Certificates from the Windows Certificate Store describes how to export a certificate and private key into a single .pfx file. Follow the procedure below to extract separate certificate and private key files from the .pfx file.

Procedure:

Take the file you exported (e.g. certname.pfx) and copy it to a system where you have OpenSSL installed. Note: the *.pfx file is in PKCS#12 format and includes both the certificate and the private key.

Run the following command to export the private key: openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes

#####Messaging System or Queues#####

This concept is especially useful in web applications where it's impossible to handle a complex task during a short HTTP request window. Reference about different queueing tools : http://queues.io/


#####Key Value Database####


@mdsaleemj
mdsaleemj / Software-Development-Principles.md
Last active February 25, 2017 17:55
Software Development Priniciples

The purpose of this gist is to know more about the software developing principles in general. This intention is to explore and know more about software development from industry leaders like Martin Flowers, Robrt Martin(aka UncleBob ) and many .

In addition to that , learning and practising programming and desing skill with emphasis on necessary programming styles like OOP and FP needs to be encouraged.
This guide is started as rough draft and will serve to contain information about resources , leaders to follow, topics under software development.

##Software Development