Skip to content

Instantly share code, notes, and snippets.

View Paulo-Martins's full-sized avatar

Paulo Martins Paulo-Martins

View GitHub Profile
@Paulo-Martins
Paulo-Martins / express-passport-local.md
Created October 29, 2017 18:56 — forked from phalkunz/express-passport-local.md
Setup local (username/password) authentication in express.js (using passport.js)

Setup the project folder

    mkdir passport-local
    npm init
    # Use default values for npm init prompts

Install required packages

@Paulo-Martins
Paulo-Martins / gist:f4284b5bf187530e7b84fbedbdc9fec9
Created July 31, 2016 21:29 — forked from zipizap/gist:4976977
Add user to group, and make changes take effect *without logout/login* using *newgrp* This solution is very limited - it will only update the groups in the current shell session. New shells sessions will not have the groups updated - you can update them manually with this method, or better yet, you can logout/login so that the group update is ma…
# How to add user into group, and make changes take effect *without logout/login*: the *newgrp* command
#
# Do note that this method will only update the groups, in the current shell session (and its child-processes).
# New shell sessions will not have the groups updated - either use this method to update the groups in each shell
# session, or logout/login to make the group update permanent by default
#
# In short:
# $ sudo adduser user_x my_grp
# $ newgrp my_grp && newgrp
#
@Paulo-Martins
Paulo-Martins / LFCS_study
Created May 26, 2016 11:33 — forked from gojun077/LFCS_study
LFCS Study Outline 2015.02.28
* LFCS Domains 2015.02
Note - the domains will change somewhat in March 2015. SW RAID
with mdadm will be removed
** The Command Line
*** Editing text files on the CLI
Covers the use of the basic text editors nano and gedit as well
as the advanced editors _vi_ and _emacs_
- nano
simple CLI-based text editor