Skip to content

Instantly share code, notes, and snippets.

View adykto's full-sized avatar

Alonso Mendez adykto

View GitHub Profile
@adykto
adykto / .bashrc
Last active September 3, 2017 08:03
Linux environment
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)$
git config --global color.ui auto
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
@adykto
adykto / .htaccess
Last active August 29, 2015 13:56
PHP setup on .htaccess
# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
# enable PHP error logging
php_flag log_errors on
php_value error_log /home/path/public_html/domain/PHP_errors.log
# prevent access to PHP error log
sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
&&
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
&&
@adykto
adykto / DevEnvironment
Last active December 21, 2015 12:08
Vim Setup
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl https://gist.githubusercontent.com/adykto/5544806/raw/22fb8ef9fece48d656fa9a03d3186dcd8deb7f70/.vimrc > ~/.vimrc
curl https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim > ~/.vim/autoload/pathogen.vim
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-fugitive.git
git clone git://github.com/scrooloose/nerdtree.git
git clone git://github.com/airblade/vim-gitgutter.git
git clone git://github.com/majutsushi/tagbar.git
git clone git://github.com/Raimondi/delimitMate.git
git clone git://github.com/tpope/vim-sensible.git
@adykto
adykto / Default(Linux).sublime-keymap
Last active December 17, 2015 08:39
Sublime Text 3 custom preferences
[
{
"keys": ["shift+f11"],
"command": "toggle_menu"
},
{
"keys": ["ctrl+f11"],
"command": "toggle_side_bar"
},
]
@adykto
adykto / .vimrc
Last active December 17, 2015 03:39
My .vimrc :)
:start
filetype off
call pathogen#infect('bundle/{}')
call pathogen#helptags()
filetype plugin indent on
set t_Co=256
colorscheme distinguished