Snippets of the day – Thursday, January 30, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! linux bash while statement script This is a very simple example of while statement in linux bin bash console. The while condition terminates after N iterations, printing a counter for each loop. Open the snippet Author:    lbottaro Transpose Query Output in SQL Server This script […]

Snippets of the day – Wednesday, January 8, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Clearcase: Move mastership Move mastership from server1(replica_name1) to Server2(replica_name2) Open the snippet Author:    MarcoDeMagistris Clearcase: How to remove the Clearcase view from Clearcase Register How to remove the Clearcase view from Clearcase Register Open the snippet Author:    MarcoDeMagistris

Snippets of the day – Tuesday, December 31, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Hello World First program in java Open the snippet Author:    jimmy_087 Java: read from USB using RXTX library This is a well-tested class to read from USB device using RXTX library. First of all place rxtxSerial.so (or rxtxSerial.dll) in the classpath. The received bytes are […]

Snippets of the day – Monday, December 30, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Java: generate hprof during runtime To generate hprof may be interesting for debug purpose, most of all before an OutOfMemory occurs on production applications! This .ini option halps to create an hprof to be analyzed before the occurrence of memory errors. See http://docs.oracle.com/javase/7/docs/technotes/samples/hprof.html for further details […]

Snippets of the day – Sunday, December 29, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Bash command to zip some content This command will zip the file file.txt and all the sh files contained in setup folder in a zip named myzip.zip. Then adds the file Third/otherfile.txt in then same archive with the last command Open the snippet Author:    cghersi […]

Snippets of the day – Saturday, December 28, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! C#: Get Enum from Description attribute This is a generic extension method which gets the Description attribute from an Enum Open the snippet Author:    lucky80 Bash command to remove CVS folders from a tree folder Removes all the folders named “CVS” from the tree folder […]