Skip to content

Instantly share code, notes, and snippets.

View afeijo's full-sized avatar
🏠
Working from home

Alessandro Feijó afeijo

🏠
Working from home
View GitHub Profile
@afeijo
afeijo / .vimrc
Last active February 9, 2018 12:25
My VIM configuration
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
if has("autocmd")
" Drupal *.module and *.install files.
augroup module
autocmd BufRead,BufNewFile *.module set filetype=php
@afeijo
afeijo / new_module.sh
Last active December 21, 2015 04:58
Bash script to create the skeleton files for a new Drupal 7 module
#!/bin/bash
# usage: download the script, place it in the modules folder, and execute with your new module name as the parameter.
# bash new_module.sh CustomModule
mkdir $1
cd $1
## .info file
echo "name = $1" > $1.info
@afeijo
afeijo / .screenrc
Created June 16, 2012 02:39
My .screenrc and .bashrc files
startup_message off
vbell off
autodetach on
#escape /
defscrollback 5000
#caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %c"
hardstatus alwayslastline
hardstatus string '%{= kG}%{C}Screen: %{c}%{= kG}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{C} %d-%m %{W}%c %{g}]'
@afeijo
afeijo / linux notes
Created June 15, 2012 21:55
Feijo linux notes
#duplicar DVD
k9copy
#medir uso da conexão
bmon
# contar arquivos
ls -R | wc -l
# atualizar postfix aliases
@afeijo
afeijo / drush_bash.sh
Created January 25, 2012 13:20 — forked from barraponto/drush_bash.sh
Drush Bash Tricks
# Drush-Bash tricks 0.2
# Copyright Nuvole 2010, Capi Etheriel 2012.
# License: GPL 3, see http://www.gnu.org/licenses/gpl.html
# For a quick start: copy this entire file to the end of the .bashrc
# file in your home directory and it will be enabled at your next
# login. See http://nuvole.org/node/26 for more details and options.
# Drupal and Drush aliases.
# To be added at the end of .bashrc.
@revagomes
revagomes / .profile_example
Created June 8, 2011 18:58
.profile aliases and functions
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Directory navigation aliases
alias ..='cd ..'
alias ...='..;..'
alias ....='..;..;..'
alias .....='..;..;..;..'