Skip to content

Instantly share code, notes, and snippets.

View sadanandkenganal's full-sized avatar

Sadanand Kenganal sadanandkenganal

View GitHub Profile
@sadanandkenganal
sadanandkenganal / git_push_server_port.md
Created October 6, 2015 18:06
Git push with server port

1. Git clone

git clone  ssh://user@ipaddr:port_nu/path_to_git_on_server

OR

Do it on server machine

1. login through ssh, 
 ssh user@ip -pport_nu -v
@sadanandkenganal
sadanandkenganal / mcrypt_ext_missing.md
Created October 8, 2015 04:37
The requested PHP extension ext-mcrypt * is missing from your system
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt 
sudo service apache2 restart
@sadanandkenganal
sadanandkenganal / terminal_appearance_mac_os_x.md
Created February 9, 2016 06:05
How to Improve the Terminal Appearance in Mac OS X

Steps to setup

  1. Open Terminal and type nano .bash_profile
  2. Paste the following :
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
@sadanandkenganal
sadanandkenganal / install_drush_on_mac.md
Last active May 9, 2016 04:25
Installing Drush on Mac
@sadanandkenganal
sadanandkenganal / drupal_coding_standards_check.md
Last active May 18, 2016 09:42
Detects violations of a defined set of coding standards. It works with Drupal 6, 7, or 8.

Detects violations of a defined set of coding standards. It works with Drupal 6, 7, or 8.

PHP_CodeSniffer is a library that tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. It works with Drupal 6, 7, or 8.

Coder contains "sniffs" for PHP CodeSniffer. These "sniffs" tell PHP CodeSniffer whether code meets Drupal coding standards or not.

Steps

1.First, make sure Composer is installed correctly: