pprint is a very handy module for printing out objects in a humane form.
Unfortunately it doesnt prettyprint
OrderedDict objects properly.
The following is a workaround for printing a
OrderedDict object in a manner close to what pprint does for a regular
dumps method to print the
od = <Your OrderedDict
To stop tracking a file that was previously being tracked by git, do the following:
- add the filename to the
- execute the command
git rm --cached <filename>
Git shall now stop tracking the file
Sublime Text is an amazing text editor. To make it even more awesome, it has extensive support for all actions using keyboard only. This is the first post in my Keyboard Fu Series wherein I shall post random tips and tricks and shortcuts for using keyboard to do all sorts of action in Sublime Text.
So here is the first one.
To shift focus to the sidebar, use the keyboard shortcut
Now you can navigate the folder structure in the sidebar using arrow keys
To enable autologin in Xubuntu
- Open the file /etc/lightdm/lightdm.conf
- Modify the value of the string “autologin-user" with the required user name. Eg: autologin-user=MyLoginName
- Save the file
- Make sure the user is created before modifying the file.
- You can use any text editor instead of leafpad