Skip to content

Instantly share code, notes, and snippets.

View AlbertMorenoDEV's full-sized avatar

Albert Moreno AlbertMorenoDEV

View GitHub Profile
@brunokrebs
brunokrebs / run-mysql-docker.sh
Last active September 21, 2019 18:08
Just a reminder on how to run, stop, and remove a MySQL instance on docker.
docker run --name mysql \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=my-password \
-e MYSQL_DATABASE=some-db-name \
-e MYSQL_USER=some-user \
-e MYSQL_PASSWORD=some-user-password \
-d mysql:5.7
docker stop mysql
docker rm mysql
@justmoon
justmoon / custom-error.js
Last active June 26, 2024 09:36 — forked from subfuzion/error.md
Creating custom Error classes in Node.js
'use strict';
module.exports = function CustomError(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.extra = extra;
};
require('util').inherits(module.exports, Error);
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"