My .bash_alises

# remove things to trash
alias rm="trash-rm"

# init ipython with pylab support
#alias myipython="ipython --pylab --pdb"
alias myipython="ipython3 --pylab --matplotlib --pdb"

# record from mic 
alias record="rec -c 1 -e signed-integer -b 16 -r 48000"

# download a website
function dwsite {

    if [ "$#" -ne 2  ]; then
        echo "usage dwsite domains site, (eg dwsite"
        wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains $1 --no-parent $2

# debug a program using valgrind (memory leaks)
function myvalgrind {
    valgrind --tool=memcheck --leak-check=full -v --show-leak-kinds=all "$1"

# show windows scroll (ubuntu)
function showscroll {
    gsettings set com.canonical.desktop.interface scrollbar-mode normal

# hide windows scroll (ubuntu)
function hidescroll {
    gsettings reset com.canonical.desktop.interface scrollbar-mode

# compile a .tex file for Plos journal
# usage plos file.tex
function plos {
    basename=$(echo "$1" | cut -d . -f 1)
    echo "$basename"
    latex "$basename.tex"
    bibtex "$basename.aux"
    latex "$basename.tex"
    latex "$basename.tex"
    dvipdf "$basename.dvi"    

# remove aux files
function clean {
    rm *.aux
    rm *.bbl
    rm *.blg
    rm *.log
    rm *.out 
    rm *.synctex.gz

# compile a .tex
# usage mylatex file.tex
function mylatex {
    basename=$(echo $1 | cut -d . -f 1)

    pdflatex -shell-escape "$basename.tex" 
    bibtex "$basename.aux"
    pdflatex -shell-escape "$basename.tex"
    pdflatex -shell-escape "$basename.tex"



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s