Skip to content

Instantly share code, notes, and snippets.

View lakshmipriyamukundan's full-sized avatar
🎯
Focusing

Lakshmipriya lakshmipriyamukundan

🎯
Focusing
View GitHub Profile
@phortuin
phortuin / signing-git-commits.md
Last active May 4, 2024 18:58
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@delwar2016
delwar2016 / Using Sinon to stub Mongoose calls and return Promise
Last active May 23, 2023 08:25
Using Sinon to stub Mongoose calls and return Promise
Suppose we have a schema as follows
var User = require('./schemas/UserSchema').User;
and we want to write unit test for like bellow code:
var getUserById = function () {
return User.findOne({_id: '001'}).exec();
};
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 3, 2024 18:53
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@tbrianjones
tbrianjones / free_email_provider_domains.txt
Last active May 4, 2024 17:03
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com