Find a slow part of your Python/Ruby/Lua application that could use some speeding up and then write an extension for it in C.
Some useful reading:
http://dan.iel.fm/posts/python-c-extensions/
https://blog.jcoglan.com/2012/07/29/your-first-ruby-native-e...