Skip to content

Instantly share code, notes, and snippets.

View filipenevola's full-sized avatar

Filipe Névola filipenevola

View GitHub Profile
@filipenevola
filipenevola / local-replica-set-with-oplog.md
Last active October 31, 2018 14:00 — forked from richsilv/local-replica-set-with-oplog.md
Setting up a local MongoDB 4.0.x replica set with oplog for use with Meteor

From an appropriate location:

mkdir -p /srv/mongodb/rs0-0 /srv/mongodb/rs0-1 /srv/mongodb/rs0-2
mongod --port 27018 --dbpath /srv/mongodb/rs0-0 --replSet rs0 --smallfiles --oplogSize 128 &
mongod --port 27018 --dbpath /srv/mongodb/rs0-1 --replSet rs0 --smallfiles --oplogSize 128 &
mongod --port 27019 --dbpath /srv/mongodb/rs0-2 --replSet rs0 --smallfiles --oplogSize 128 &
mongo --port 27017
@filipenevola
filipenevola / migrate_repo.sh
Last active May 3, 2020 14:58 — forked from mariozig/migrate_repo.sh
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
REPO_NAME=website
FROM=git@gitlab.com:quave/$REPO_NAME.git
TO=git@github.com:quavedev/$REPO_NAME.git
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
git clone --mirror $FROM