Skip to content

Instantly share code, notes, and snippets.

View utkarshp64's full-sized avatar
🎯
Focusing

Utkarsh Pathak utkarshp64

🎯
Focusing
  • Pune, India
View GitHub Profile
@utkarshp64
utkarshp64 / webdev_online_resources.md
Created June 25, 2019 16:52 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@utkarshp64
utkarshp64 / multiFilter.js
Created June 10, 2019 15:10 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple criteria.
/**
* Filters an array of objects with multiple criteria.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria as the property names
* @return {Array}
*/
function multiFilter(array, filters) {
const filterKeys = Object.keys(filters);
// filters all elements passing the criteria
@utkarshp64
utkarshp64 / Mkcert - Create SSL Certificates.txt
Created November 22, 2018 11:34
Mkcert - Create SSL Certificates for Local Development on Linux
mkdir -p ~/linuxbrew/.linuxbrew
git clone https://github.com/Linuxbrew/brew.git .linuxbrew
PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$(brew --prefix)/share/man:$MANPATH"
export MANPATH="$(brew --prefix)/share/man:$MANPATH"
brew install mkcert
mkcert invoizet.com '*.invoizet.com' cevatest.test.invoize.info ceva.uat.invoize.com
sudo su
cp invoizet.com+3.pem /etc/ssl/certs/
cp invoizet.com+3-key.pem /etc/ssl/private/