Skip to content

Instantly share code, notes, and snippets.

View chemexus's full-sized avatar
:atom:

Chemexus chemexus

:atom:
View GitHub Profile
@chemexus
chemexus / data-structure.js
Created February 6, 2018 18:22 — forked from sararob/data-structure.js
Role-based security in Firebase
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR
@chemexus
chemexus / .gitconfig
Created August 30, 2017 10:10 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com