From Removing and purging files from git history
To remove files which have been recently added to .gitignore
.
git ls-files --ignored --exclude-standard | xargs git rm --cached
# `Fiona` and `Basemap` have conflicting `libgdal` dependencies. | |
# To solve the issue the `libgdal` version has to be fixed to version `2.0.0=0`. | |
conda install -c conda-forge fiona=1.7.0 | |
conda install gdal basemap libgdal=2.0.0=0 | |
conda install krb5 | |
conda install shapely | |
pip install geopandas | |
pip install rasterio | |
conda install -c conda-forge fiona=1.7.0 |
From Removing and purging files from git history
To remove files which have been recently added to .gitignore
.
git ls-files --ignored --exclude-standard | xargs git rm --cached
Decktape offers a Docker image in order to run their presentation converter. If you want to convert a presentation from an instance running on localhost
on a Mac, it is necessary to do some work around.
Decktape's Github Page suggests that we run the following command to save a presentation deployed locally:
>> docker run --rm --net=host -v `pwd`:/slides astefanutti/decktape http://localhost:8000 slides.pdf
However when running the docker from a Mac, Docker is actually running behind a virtual machine and has no access to the localhost. Thus the option --net=host
leads to a connection refused error.
failure() { | |
return 1 | |
} | |
success() { | |
return 0 | |
} | |
success | |
RET_SUCESS=$? |
conda info --json r-essentials | jq -r ' ."r-essentials"[] | select(.version == "1.5.2" and .build == "r3.3.2_0") | .depends[] ' |
conda info --json r-essentials | jq -r ' ."r-essentials"[] | select(.version == "1.5.2" and .build == "r3.3.2_0") | .depends[] ' | awk '{print $1;}' | grep -E '^r-' | xargs -J {} conda uninstall {} |
library('magrittr') | |
library('memisc') | |
# get all .sav files from directory | |
files <- list.files('.', pattern='.sav$', recursive=FALSE) | |
# get the dataframes | |
dfs <- list.files('.', pattern='.sav$', recursive=FALSE) %>% | |
lapply(spss.system.file) %>% | |
lapply(as.data.set) %>% |
pyenv
was failing to install python due the inexistence of the pyexpat
library.
In order to solve this problem, I upgraded brew
, installed and uninstalled openssl
with brew
and installed the HEAD version of pyenv
.
Before installing the required python versions I exported the following flags:
CFLAGS="-I$(brew --prefix openssl)/include"
LDFLAGS="-L$(brew --prefix openssl)/lib"
is:open is:pr assignee:<username> |
On a recent grails project, we're using a git repo that was originally converted from a SVN repo with a ton of large binary objects in it (lots of jar files that really should come from an ivy/maven repo). The .git
directory was over a gigabyte in size and this made it very cumbersome to clone and manipulate.
We decided to leverage git's history rewriting capabilities to make a much smaller repository (and kept our previous repo as a backup just in case).
Here are a few questions/answers that I figured out how to answer with git and some shell commands: