Skip to content

Instantly share code, notes, and snippets.

View rezigned's full-sized avatar

rezigned rezigned

View GitHub Profile
@rezigned
rezigned / svn.md
Last active April 15, 2018 15:56
SVN Commands

Useful SVN commands

Find difference between two branches

svn diff --old {branch_a} --new {branch_b}

Switch to a new branch

@rezigned
rezigned / screen.md
Last active December 22, 2015 03:38
Essential Guide to UNIX `screen` command

How to use screen command

Create a new screen session

screen

Detach from current session

Crtl-a + d
@rezigned
rezigned / start-process.md
Last active December 19, 2015 18:18
Unix commands

Start a process on server startup

CentOS

chkconfig --add <service>
chkconfig --level 345 <service> on
chkconfig --del <service>
@rezigned
rezigned / centos.md
Last active December 17, 2015 01:39
Installing Gitlab 5.1 on CentOS

Installing Gitlab 5.1 on CentOS 6.4

Install essential tools & required packages

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y groupinstall "Development Tools"
yum install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib zlib-devel openssl-devel libyaml-devel readline readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick libicu libicu-devel libffi-devel make bzip2 autoconf automake libtool bison iconv-devel redis

Install Redis

@rezigned
rezigned / centos.md
Last active December 16, 2015 13:29
Installing Graphite on OS X Mountain Lion & Cent OS
# Install EPEL
rpm -ivh http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-5.noarch.rpm

# Instll dependencies
yum install Django pycairo bitmap bitmap-fonts python-pip gcc python-devel mod_wsgi perl django-tagging

pip-python install carbon
pip-python install carbon
pip-python install whisper
@rezigned
rezigned / plugins.md
Last active December 14, 2015 15:19
VI Settings

NERDTree

NERDTree is a vim plugin that allows you to explore your filesystem/directories in the form of a tree.

Installation

NERDTree suggests that we should install it by using https://github.com/tpope/vim-pathogen. So, Let's install pathogen first.

mkdir -p ~/.vim/autoload ~/.vim/bundle; \
@rezigned
rezigned / install-sphinx-doc.md
Last active December 12, 2015 07:58
Installation & Setup

How to install Sphinx Doc and Create a new Project on OSX

Prerequisites

  • Xcode Command Line tools

Steps

# You might need to execute this command with 'root' previllage
@rezigned
rezigned / Makefile.md
Last active December 11, 2015 04:48
Troubleshooting

Makefile:6: *** missing separator. Stop.

This is because most Unix make programs require TABs not spaces.

Solution

Make sure to convert spaces to tab!

@rezigned
rezigned / dump-data.md
Last active December 10, 2015 03:08
MySQL commands

How to export data

# mysqldump -u {username} -p {database} > {filename}

mysqldump -u john -p mydb > mydb-dump.sql

How to export specific tables

@rezigned
rezigned / README.md
Last active August 19, 2021 22:31
Simple deploy script

A simple script for deploy from git repository.

How it works

Assume we have the following project structures

$PROJECT_NAME:

Project name. This could be anything. for example sample