<?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>Tue, 09 Jun 2026 14:00:01 +0000</lastBuildDate>
    <item>
      <title>(Bash) Encrypt your /home partition - Dorgendubal</title>
      <link>https://snipplr.com/view/16402/encrypt-your-home-partition</link>
      <description>&lt;p&gt;Ideal if you have a laptop. If someone steals it, he will not be able to read all your mails and documents with precious information (about passwords, accounts, credit cards, private stuffs, etc...).&#13;
&#13;
This snippet is considering that you are using Ubuntu as OS and you already have a dedicated partition for home (/dev/sda5 in my example).&#13;
&#13;
* Steps 1-3 are pre-requirements.&#13;
* Steps 5-7 encrypts the partition and formats it as ext3 (make sure that you have a backup of your home somewhere!!!)&#13;
* Steps 10 and 13 are not commands but lines to be added (or modified) in the editing files (Step 9 and 12). You have to be familiar with /etc/fstab to understand it.&#13;
* Other steps are for configuring your system such your home partition gets automatically mounted on startup (you will be prompted for password during boot). &#13;
&#13;
Enjoy security!&lt;/p&gt;</description>
      <pubDate>Sun, 28 Jun 2009 10:51:04 UTC</pubDate>
      <guid>https://snipplr.com/view/16402/encrypt-your-home-partition</guid>
    </item>
    <item>
      <title>(Bash) Resize all images in directory - Dorgendubal</title>
      <link>https://snipplr.com/view/12810/resize-all-images-in-directory</link>
      <description>&lt;p&gt;* Resized images are generated into TARGET_DIR.&#13;
* Change the resolution (800x800 in my example) and quality (80) as you want.&#13;
* The command keeps the image's proportion. 1600x1200 will be converted into 800x600, 1200x1600 into 600x800.&#13;
&#13;
_Notice_: the command does also resize images in sub-directories but put them in the same target directory (overwrites any existing file).&lt;/p&gt;</description>
      <pubDate>Wed, 04 Mar 2009 21:43:51 UTC</pubDate>
      <guid>https://snipplr.com/view/12810/resize-all-images-in-directory</guid>
    </item>
    <item>
      <title>(Bash) Share terminal / console with another person - Dorgendubal</title>
      <link>https://snipplr.com/view/12703/share-terminal--console-with-another-person</link>
      <description>&lt;p&gt;Useful to remotely assist another person. &#13;
1. Connect to his computer using ssh&#13;
2. Execute first command listed below&#13;
3. The other person must open a terminal and execute the second command&#13;
4. Both are connected to the same terminal "screen"&lt;/p&gt;</description>
      <pubDate>Sun, 01 Mar 2009 13:30:13 UTC</pubDate>
      <guid>https://snipplr.com/view/12703/share-terminal--console-with-another-person</guid>
    </item>
    <item>
      <title>(Bash) Find in which jar a class is defined - Dorgendubal</title>
      <link>https://snipplr.com/view/12702/find-in-which-jar-a-class-is-defined</link>
      <description>&lt;p&gt;Useful when you have to deal with ClassNotFoundException. The command looks for all jar in the current directory and any sub-directory, and checks if the jar contains the specified class. The command lists all matching jars.&lt;/p&gt;</description>
      <pubDate>Sun, 01 Mar 2009 13:16:43 UTC</pubDate>
      <guid>https://snipplr.com/view/12702/find-in-which-jar-a-class-is-defined</guid>
    </item>
    <item>
      <title>(Bash) Synchronize two folders - Dorgendubal</title>
      <link>https://snipplr.com/view/12694/synchronize-two-folders</link>
      <description>&lt;p&gt;Useful to quickly backup a folder by synchronizing it to another partition/disk.&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 22:28:39 UTC</pubDate>
      <guid>https://snipplr.com/view/12694/synchronize-two-folders</guid>
    </item>
    <item>
      <title>(Bash) List all listening processes and open ports - Dorgendubal</title>
      <link>https://snipplr.com/view/12693/list-all-listening-processes-and-open-ports</link>
      <description>&lt;p&gt;Useful to quickly identify processes listening to ports (to eventually kill them).&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 22:20:03 UTC</pubDate>
      <guid>https://snipplr.com/view/12693/list-all-listening-processes-and-open-ports</guid>
    </item>
    <item>
      <title>(Bash) Convert encoding of all matching files in directory and sub-directories - Dorgendubal</title>
      <link>https://snipplr.com/view/12692/convert-encoding-of-all-matching-files-in-directory-and-subdirectories</link>
      <description>&lt;p&gt;Useful to convert all matching files from one encoding to another.&#13;
Some examples:&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 22:12:24 UTC</pubDate>
      <guid>https://snipplr.com/view/12692/convert-encoding-of-all-matching-files-in-directory-and-subdirectories</guid>
    </item>
    <item>
      <title>(Bash) updating remote website using ssh - Dorgendubal</title>
      <link>https://snipplr.com/view/12691/updating-remote-website-using-ssh</link>
      <description>&lt;p&gt;* _HOST_: remote host&#13;
* _PORT_: ssh port (default 22)&#13;
* _PATH_: remote path to synchronize&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 21:55:41 UTC</pubDate>
      <guid>https://snipplr.com/view/12691/updating-remote-website-using-ssh</guid>
    </item>
  </channel>
</rss>
