Skip to content

Instantly share code, notes, and snippets.

@brenbl
brenbl / .gitignore
Created January 31, 2014 14:41 — forked from Rud5G/.gitignore
# magento gitignore from htdocs
#
# https://gist.github.com/Rud5G/4148997
htdocs/app/etc/local.xml
htdocs/media/*
!htdocs/media/.htaccess
htdocs/var/*
!htdocs/var/.htaccess
@brenbl
brenbl / gist:4724051
Created February 6, 2013 17:05 — forked from Rud5G/vimrc.vim
"
" mkdir -p ~/.vim/{backup,syntax,tmp}
"
set autoindent " lines following an indented line will have the same indentation as the previous line.
set expandtab " resplace tabs with actuall spaces
set shiftwidth=4 " softtabs width 4.
set tabstop=4 " tabs are 4 spaces
" those 4 are needed to use :%retab
@brenbl
brenbl / ll.sh
Created February 6, 2013 17:01 — forked from Rud5G/ll.sh
#!/bin/bash
clear
# parameter 2 is set.
if [ ! -z "$2" ]
then
echo "grep"
R=$(ls -ahls $1 | grep -i -c $2)
ls -ahls --color=auto $1 | grep -i $2