This article is based on my Stackoverflow answer - Django query lookup 'startswith' on table fields.
Let's say you have a table of partial postal codes:
| codes |
----------
| A1A |
This article is based on my Stackoverflow answer - Django query lookup 'startswith' on table fields.
Let's say you have a table of partial postal codes:
| codes |
----------
| A1A |
Clone a fresh copy of the repository using ssh and --mirror
flag
git clone --mirror git://example.com/some-big-repo.git
Download the bfg.jar file from BFG Repo-cleaner
Run BFG on the repo:
java -jar bfg.jar --delete-files "*.csv" some-big-repo.git
Generally from a development machine, you would want to set up a ssh key that allows you to access your entire Github account, and access all of the repos under that account, here is how you can do that.
Generate a ssh key to be used from your machine to access your entire Github account:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
When prompted "Enter file in which to save the key", you can specify something like: /Users/<username>/.ssh/github
This should result in a private and public key pair being created:
As of July 2021, installing Python Xgboost on the M1 Macs is still confusing. The Python Xgboost library relies on Scipy, which requires a Fortran compiler, which is not available because GCC is not yet available for M1 (while Scipy does not support Flang). You may succeed in installing Python xgboost library without doing what I have described below and yet encounter issue running the library. I find the easiest thing currently is to just run Terminal with Rosetta, and go from there...
Terminal
app -> Get Info -> Check Open using Rosetta
Terminal Rosetta
and only make the duplicated app run in Rosetta modeC:\Users\oscar\.bashrc