Remove Large Files in Git

TL;DR: BFG is your friend. java -jar bfg.jar -b 50M myrepo-bfg.git for example The other day I’ve committed a rather large file by mistake (generated movie of the git commit history). This was a bit annoying because all other developers would have suddenly to check out a 1G file :( with no LFS support… As […]

Android Studio: Change the Cache Location

Note: This is an updated article to reflect the stable release of AS. If you are looking for the old one, please see here. Android Studio (AS) creates a local directory .AndroidStudio to cache its own data. In most environments, this is acceptable. However, the size of the directory can easily exceed 300Mb and, if […]

Insert in PostgreSQL in (Almost) Constant Time

One of the things I did was to write a script to insert records in a PostgreSQL database. The records have with a quite simple structure: id – char(20) content – XML field aside – XML field I was working with a sample of 10,000 entries out of 40 million and the script went through […]

Scroll to top