[Here is a picture of myself]
I am a PhD student in mathematics at the University of Freiburg under the supervision of Prof. Stefan Kebekus. I am working on algebraic geometry, mainly on birational geometry but also interested in derived categories.
Email: pedro.nunez [at] math.uni-freiburg.de
Address: University of Freiburg Mathematical Institute (Office 420) Ernst-Zermelo-Straße 1 79104 Freiburg im Breisgau, Germany
# Variables
GITHUBUSERNAME=yourusername
# Functions
push() {
# Push local changes on a repository to GitHub
# By default, all files are added
# Unnecessary files can be avoided with .gitignore
# First argument is the name of the repository
# If no arguments, then push dotfiles
# Remaining arguments are used as a commit message
# If at most one argument, then use "Some updates" as commit message
if [ $# = 0 ]; then
cd ~/git/dotfiles;
git add .;
git commit -m "Some updates";
git push origin master;
cd;
elif [ $# = 1 ]; then
cd ~/git/$1;
git add .;
git commit -m "Some updates";
git push origin master;
cd;
else
cd ~/git/$1;
git add .;
git commit -m "${*:2}";
git push origin master;
cd;
fi
}
pull() {
# Pull changes from GitHub to your local folder
# First argument is the name of the repository
# If no arguments, then pull dotfiles
if [ $#= 0 ]; then
cd ~/git/dotfiles;
git pull origin master;
cd;
else
cd ~/git/$1;
git pull origin master;
cd;
fi
}
cd ~/git/templates
mkdir article
cd article
touch main.tex
touch main.bib
echo "\documentclass{article}" >> main.tex
echo "\begin{document}" >> main.tex
echo "This is a new article!" >> main.tex
echo "\bibliography{main}" >> main.tex
echo "\end{document}" >> main.tex
new() {
# Create a new latex document with the corresponding git repository
# First argument is the name of the template
# Second argument is the name of the new folder and repository
cd ~/git;
mkdir $2;
cd $2;
touch README.md;
cp ~/git/templates/$1/main.tex main.tex;
git init;
git add .;
git commit -m "First commit";
hub create -p $GITHUBUSERNAME/$2;
git push origin master;
cd;
echo "alias $2=\"cd ~/git/$2; vim main.tex\";" >> .bash_aliases;
source .bash_aliases;
}
b() {
# Open some book in the book folder
# If single author: "first three letters of name"+"last two digits of year"
# If two or more authors: "initial letters of authors"+"last two digits of year"
xdg-open ~/refs/books/$1* & exit;
}
nnoremap <F2> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>
inoremap <F2> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>
vnoremap <F2> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>
nnoremap <F5> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>:! xdg-open main.pdf &<CR>
inoremap <F5> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>:! xdg-open main.pdf &<CR>
vnoremap <F5> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>:! xdg-open main.pdf &<CR>
nnoremap <F6> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>:! termux-open main.pdf &<CR>
inoremap <F6> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>:! termux-open main.pdf &<CR>
vnoremap <F6> <Esc>:w<CR>:! latexmk -pdf main.tex<CR>:! termux-open main.pdf &<CR>
nnoremap <F10> <Esc>:w<CR>:! latexmk -c<CR>
inoremap <F10> <Esc>:w<CR>:! latexmk -c<CR>
vnoremap <F10> <Esc>:w<CR>:! latexmk -c<CR>