Sometimes I play around with some idea and after a while I decide I actually want to keep it instead of just abandoning it. So I should save it in a git repo, but I never remember the commands to send my existing codebase to a new empty repo. For future reference, here they are

Run these command...

You can use ulimit -c 0 to disable core dumps, but that obviously won't remove any core files that are already sitting on your filesystem - and sometimes you have no idea where they might be since different stuff can be running in the background from any directory. These files can be a few gigabyt...