<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 15:08:12 +0000</lastBuildDate>
    <item>
      <title>(Java) Print file with line number, line lenght and starting line - mahome</title>
      <link>https://snipplr.com/view/72661/print-file-with-line-number-line-lenght-and-starting-line</link>
      <description>&lt;p&gt;This is useful to view files with long lines like MySQL dumps.&#13;
&#13;
Example output: line, lenght, first characters (as defined in `substr`)&#13;
&#13;
        1       19     -- MySQL dump 10.11&#13;
        2        2     --&#13;
        3       36     -- Host: localhost    Database: live&#13;
        4       57     -- ------------------------------------------------------&#13;
        5       40     -- Server version	5.0.51a-3ubuntu5.4-log&#13;
        6        0     &#13;
        7       65     /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;&#13;
        8       67     /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;&#13;
        9       65     /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;&#13;
       10       27     /*!40101 SET NAMES utf8 */;&lt;/p&gt;</description>
      <pubDate>Thu, 17 Oct 2013 20:42:45 UTC</pubDate>
      <guid>https://snipplr.com/view/72661/print-file-with-line-number-line-lenght-and-starting-line</guid>
    </item>
    <item>
      <title>(Bash) Read file line by line - mahome</title>
      <link>https://snipplr.com/view/17725/read-file-line-by-line</link>
      <description>&lt;p&gt;bash, read, line&#13;
&#13;
1. $ cat myFile | readByLine&#13;
2. $ readByLine&lt;/p&gt;</description>
      <pubDate>Fri, 31 Jul 2009 05:24:30 UTC</pubDate>
      <guid>https://snipplr.com/view/17725/read-file-line-by-line</guid>
    </item>
    <item>
      <title>(Java) C3P0 DataSource Config (Connection-Pool) - mahome</title>
      <link>https://snipplr.com/view/14725/c3p0-datasource-config-connectionpool</link>
      <description>&lt;p&gt;Tags: C3P0, datasource, spring, database, java&lt;/p&gt;</description>
      <pubDate>Tue, 05 May 2009 09:16:44 UTC</pubDate>
      <guid>https://snipplr.com/view/14725/c3p0-datasource-config-connectionpool</guid>
    </item>
    <item>
      <title>(Bash) Iterate through years and months - mahome</title>
      <link>https://snipplr.com/view/13843/iterate-through-years-and-months</link>
      <description>&lt;p&gt;This script gives a list of year month combinations from 2006 to 2010.&#13;
Also have a look at [cal](http://en.wikipedia.org/wiki/Cal_(Unix)), if you are doing something with dates.&#13;
&#13;
Tags: seq, year, month, bash, loop, for&lt;/p&gt;</description>
      <pubDate>Tue, 07 Apr 2009 03:21:37 UTC</pubDate>
      <guid>https://snipplr.com/view/13843/iterate-through-years-and-months</guid>
    </item>
    <item>
      <title>(Groovy) Bash Script to start custom Groovy Scripts everywhere - mahome</title>
      <link>https://snipplr.com/view/13814/bash-script-to-start-custom-groovy-scripts-everywhere</link>
      <description>&lt;p&gt;Put this script in your path and you can start your scripts located in ~/.groovy/scripts from everywhere.&#13;
&#13;
Tags: Bash, Linux, Groovy&lt;/p&gt;</description>
      <pubDate>Mon, 06 Apr 2009 03:23:32 UTC</pubDate>
      <guid>https://snipplr.com/view/13814/bash-script-to-start-custom-groovy-scripts-everywhere</guid>
    </item>
    <item>
      <title>(Java) JBoss Mail-Config with Authentication - mahome</title>
      <link>https://snipplr.com/view/13702/jboss-mailconfig-with-authentication</link>
      <description>&lt;p&gt;This is the default Mail-Config file mail-service.xml by JBoss with the additional line for authentication.&lt;/p&gt;</description>
      <pubDate>Thu, 02 Apr 2009 04:40:15 UTC</pubDate>
      <guid>https://snipplr.com/view/13702/jboss-mailconfig-with-authentication</guid>
    </item>
    <item>
      <title>(Java) JavaMail - Sending with Authentication - mahome</title>
      <link>https://snipplr.com/view/13667/javamail--sending-with-authentication</link>
      <description>&lt;p&gt;Simple Mail Example.&#13;
&#13;
Tags: SMTP, Mail, Java&#13;
&#13;
[JavaMail (Sun)](http://java.sun.com/products/javamail/)&#13;
[JavaMail (Galileo)](http://openbook.galileocomputing.de/javainsel8/javainsel_18_012.htm#mj2a4110a634c82a3f676d8f87a50d6567)&lt;/p&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:44:09 UTC</pubDate>
      <guid>https://snipplr.com/view/13667/javamail--sending-with-authentication</guid>
    </item>
  </channel>
</rss>
