Skip to content

Instantly share code, notes, and snippets.

View jeremlb's full-sized avatar

Jérémi Le Bourhis jeremlb

View GitHub Profile
@LeCoupa
LeCoupa / redis_cheatsheet.bash
Last active April 19, 2026 07:44
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@konstantinzolotarev
konstantinzolotarev / Symfony2PasswordEncode.js
Last active January 22, 2024 10:36
Function for node.js that will encrypt password exactly like Symfony2 PHP framework. So all passwords from Symfony2 will work in your node.js application
'use strict';
var crypto = require('crypto');
var _ = require('lodash');
/**
* Will encrypt password in Symfony2 way using a given salt.
*
* @param {string} password
* @param {string} salt