Today I Learned
A collection of concise write-ups on small things I learn day to day across a variety of languages and technologies. These are things that don't really warrant a full blog post.
12 TILs and counting...
- Caching Your Github Password on git
- Change the remote origin of an existing repository
- Revert a commit which has already been pushed to the remote.
- Convert Py2 script to py3 script on macosx
- How to delete all the occurence of a string or int in a list
- Save Login Credentials/Secret Keys in .env files
- Use readline() to get header of the files
After creating a new entry, run ./createReadme.py > README.md
to regenerate
the readme with the new data.
If you are using git, you can install this script as a pre-commit git hook so that it is autogenerated on each commit. Use the following command: cd .git/hooks/ && ln -s ../../createReadme.py pre-commit && cd -
I shamelessly stole the above idea from jima80525/til who claims to have stolen it from others.
© 2017-2018 Udit Vashisht
This repository is licensed under the MIT license. See LICENSE
for
details.