This requires the bibtex-parser package also.
First, download the dependencies and package to the ~/.jupyter/custom location
This requires the bibtex-parser package also.
First, download the dependencies and package to the ~/.jupyter/custom location
$ cd ~/first | |
$ virtualenv my-venv | |
$ grep 'VIRTUAL_ENV=' my-venv/bin/activate | |
VIRTUAL_ENV="/home/username/first/my-venv" | |
$ virtualenv --relocatable my-venv | |
Making script my-venv/bin/easy_install relative | |
Making script my-venv/bin/easy_install-2.7 relative | |
Making script my-venv/bin/pip relative | |
Making script my-venv/bin/pip2 relative | |
Making script my-venv/bin/pip2.7 relative |
cd - # go to previuos directory
pushd level-1/level-2
# do work ...
popd
# now we're back to the directory we started in
``` | |
git init <repo> | |
cd <repo> | |
git remote add -f origin <url> | |
git config core.sparseCheckout true | |
echo "some/dir/" >> .git/info/sparse-checkout | |
echo "another/sub/tree" >> .git/info/sparse-checkout | |
```` |
for dep in $(pip show python-neutronclient | grep Requires | sed 's/Requires: //g; s/,//g') ; do sudo pip uninstall -y $dep ; done | |
pip uninstall -y python-neutronclient | |
Source: http://stackoverflow.com/a/32698209/4828478 |
# patched from nerdfonts https://github.com/ryanoasis/nerd-fonts | |
"terminal.integrated.fontFamily": "'RobotoMono Nerd Font'" |
git init --bare $HOME/.dotfiles | |
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' | |
dotfiles config --local status.showUntrackedFiles no | |
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc | |
dotfiles status | |
dotfiles add .bashrc | |
dotfiles add .i3/config | |
dotfiles add .config/i3 | |
dotfiles add .config/termite |
# check.packages function: install and load multiple R packages. | |
# Check to see if packages are installed. Install them if they are not, then load them into the R session. | |
check.packages <- function(pkg){ | |
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
if (length(new.pkg)) | |
install.packages(new.pkg, dependencies = TRUE) | |
sapply(pkg, require, character.only = TRUE) | |
} | |
# Usage example |
# Latex Makefile using latexmk | |
# Modified by Dogukan Cagatay <[email protected]> | |
# Originally from : http://tex.stackexchange.com/a/40759 | |
# | |
# Change only the variable below to the name of the main tex file. | |
PROJNAME=main | |
# You want latexmk to *always* run, because make does not have all the info. | |
# Also, include non-file targets in .PHONY so they are run regardless of any | |
# file of the given name existing. |