Use below command to install a RPM package on Fedora / CentOS.
Python startup time
Wow, Python startup time is worse than I thought. Here’s some data from a fast Ubuntu box. I ran all commands a bunch of times to warm caches.
That last one’s a bit of a winner; -S means “don’t load site modules” and comes from this ExpertsExchange discussion. I lose /usr/local/lib; if I manually add that in my script I get my minimal libgit2 program down to 6ms.
partial table dump using mysqldump
There are times when you only want to take partial dump of a mysql table. You can use mysqldump command with one extra option "--where". You will have to provide your where clause (partial dump condition) in the "--" where option. Below is the command to take a partial dump of a table. Related Posts: … Continue reading partial table dump using mysqldump
Developer gets honest
https://twitter.com/dhh/status/834146806594433025 https://twitter.com/gileadslostson/status/836260440359514112 https://twitter.com/tdierks/status/835912924329836545 https://twitter.com/lukas_kollmer/status/835764121043779584 https://twitter.com/nathggns/status/835669591691051010 https://twitter.com/otfrom/status/835505479199653888 https://twitter.com/magnars/status/834683466130345984 https://twitter.com/MollyATX/status/834605666887151617 https://twitter.com/tedneward/status/834171595706994688
Install Go 1.8 on Fedora / Ubuntu
You can follow below steps to install Go 1.8 on Fedora / Ubuntu. (It should work for other Linux distribution as well but it is only tested for Ubuntu / Fedora). Step 1: Download the Go 1.8 bundle by clicking here. Step 2: Extract the downloaded bundle using below command, Step 3: Add below to your … Continue reading Install Go 1.8 on Fedora / Ubuntu
Mysql Dump in XML format
To take dump in XML format you have to provide an extra option in default mysqldump command. This can be useful in cases where you want to migrate your MySQL database to some other database. You can use below command to take MySQL Database dump in XML format. or For example if you have a database … Continue reading Mysql Dump in XML format
Handling two Django models in a single POST
There are times when, you want to handle multiple Django models in a single POST request (By this i meant data posted from html form/ template contains data of two different Django models). I was struggling with this few months back and got a fantastic reference link from #django on IRC. You can use the below method as … Continue reading Handling two Django models in a single POST
django-userena: User Management Application for Django.
Source: django-userena: User Management Application for Django.
Set up SSH on Github
If you want to setup SSH trust between your local development machine & a project hosted on Github, please follow the process below & you will be able to setup it. This process is tested on Fedora/ Ubuntu but it should work on any Linux based OS. On your local Linux machine please generate a … Continue reading Set up SSH on Github
Cinnamon Desktop on Fedora
Installing Cinnamon desktop on fedora is very easy. You can execute the below command from your terminal. How to change existing desktop You can restart your fedora system & while signing in you can select it from a available options settings which is present alongside signin button. You can also install other fedora Desktop, Mate … Continue reading Cinnamon Desktop on Fedora