Friday tip: How to quickly serve files from any directory

This tip is very short, but in my opinion very useful. I used it so many times and it saved me in some situations.

When you need to share files from a directory just go this directory and run:

now you can see the list of files in your browser. You may access it on port 8000 via url:


If you want it to listen on different port just run:

Using SimpleHTTPServer you can even host simple HTML websites. It’s not recommended for longer period but in some situations it may be useful.

Data-compression-000018493884_Large 1

Friday tip: Use pbzip2 or pigz for parallel compression and decompression

Today I’m starting new series: “Friday Tip”. (I hope) each Friday I will post short blog post with some tip about Raspberry Pi usage. Usually it will be some interesting command or configuration option.

First tip is about file compression for new Raspberry Pi 2 users.

On Linux systems bzip2 and gzip formats are very popular. bzip2 and gzip commands are designed to run only on one CPU but Pi2 has 4 cores! Continue reading…

Measuring tape

New PyPy release

On 1 june PyPy 2.6 was released. Besides some compatibility changes there were added also some performance improvements:

  • Slight improvement in frame sizes, improving some benchmarks
  • Internal refactoring and cleanups leading to improved JIT performance
  • Improved IO performance of zlib and bz2 modules
  • We continue to improve the JIT’s optimizations. Our benchmark suite is now over 7 times faster than cpython

Continue reading…

Measuring tape

Python and PyPy on Raspberry Pi 1 nad 2 – Benchmarks

The new Raspberry Pi is out. How fast is it? About 6x they say, 6x using 4 cores! What about one core? How fast will your code run? Let’s use The Grand Unified Python Benchmark Suite and check it. What is it?

This project is intended to be an authoritative source of benchmarks for all
Python implementations. The focus is on real-world benchmarks, rather than
synthetic benchmarks, using whole applications when possible.

Continue reading…

Hello world!

Welcome to RPi Tips. The site where you can find a lot of tips for Raspberry Pi and Linux users. Stay tuned for more…