Search This Blog

Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Wednesday, December 25, 2013

Print file in a beautiful way with its syntax highlighted on the Linux bash console

The Linux 'cat' program lacks the syntax recognition and highlighting features. If you want to print a file in a beautiful way with its syntax highlighted you can use our wrapper: scat. 

It is a wrapper around the source-highlight tool that automatically recognizes the syntax and prints the file on stdout. The source code is taken from the github repo of Japh Woldrich: https://github.com/trapd00r/utils

Installation
 
cd $HOME
mkdir $HOME/tools
cd $HOME/tools
wget https://raw.github.com/trapd00r/utils/master/scat
chmod a+x scat

export PATH=$PATH:~/tools

Demonstration


Friday, March 22, 2013

Code changes in Openstack Grizzly release

There is almost a new Openstack version called Grizzly around the corner. Some stats what can we expect base on [1] and [2].

nova
added lines 281036
removed lines 214574
total lines added 66462
commits 1889

https://github.com/openstack/nova/graphs/code-frequency
Quantum
added lines 92376
removed lines 41864
total lines added 50512
commits 602

https://github.com/openstack/quantum/graphs/code-frequency
Keystone
added lines 28488
removed lines 17265
total lines added 11223
commits 289
Glance
added lines 15717
removed lines 13163
total lines added 2554
commits 253
Cinder
added lines 73344
removed lines 72825
total lines added 519
commits 306

https://github.com/openstack/cinder/graphs/code-frequency
Horizon
added lines 187351
removed lines 125838
total lines added 61513
commits 160
Swift
added lines 17270
removed lines 6313
total lines added 10957
commits 222

https://github.com/openstack/swift/graphs/code-frequency
References
  1. http://www.slideshare.net/enovance/meetup-open-stackgrizzly-17372714
  2. https://github.com/openstack