Skip to content

Instantly share code, notes, and snippets.

View mrgonext's full-sized avatar

Teen mrgonext

View GitHub Profile
@mrgonext
mrgonext / 1. Install Redis
Created August 23, 2017 03:32 — forked from pbolduc/1. Install Redis
Install redis on CentOS 7
# see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/
# --- Compiling ---
$ yum install gcc make tcl
$ REDIS_VER=3.2.3
$ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz
$ tar xzvf redis-$REDIS_VER.tar.gz
$ cd redis-$REDIS_VER
$ make
$ make test
@mrgonext
mrgonext / BackupGitlab.sh
Created December 1, 2015 06:52 — forked from yyfrankyy/BackupGitlab.sh
Backup Gitlab Day by day to Dropbox
#!/bin/sh
# You might want to put this script in crontab, backup day by day.
#
# $ sudo -u git -H crontab -l
# $ 0 0 1 * * /path/to/your/BackupGitlab.sh
cd /home/git/gitlab
/usr/local/bin/bundle exec rake gitlab:backup:create RAILS_ENV=production