Fork me on GitHub

Other articles


  1. playing with cp

    Published: Mon 19 October 2015
    By Jepio

    In misc.

    BTRFS breathes new air into the old cp command. Suddenly it can be used to create instantaneous copy-on-write (CoW) snapshots of single files via cp --reflink.

    When you want to convert a folder to a subvolume, you are best of with the following commands:

    # mv folder folder_old
    # btrfs su create ...
    read more
  2. pushing and popping

    Published: Fri 09 October 2015
    By Jepio

    In shell.

    Today's blog post will be about da pushing and da poppin'. More specifically the shell kind.

    pushd <dir> is like cd <dir> except that it puts your previous location on the directory stack before changing directory.

    The directory stack can be inspected with dirs. The top is on the ...

    read more
  3. Threads are processes

    The standard thread implementation on linux is pthreads and processes can easily be created by issuing a fork function call. While I was studying processes recently and reading the man pages for clone I found two important pieces of information:

    • threads are commonly implemented using clone.
    • the fork function calls ...
    read more
  4. push %rbp; mov %rsp,%rbp

    There. Do I have your attention? With this post my intention is to finally figure out what this pair of instructions actually mean. I mean, they show up everywhere. To do this I'd like to deal with a simple C example.

    int main(void)
    {
        for (int i = 0; i ...
    read more
  5. Dynamic linking and the RUNPATH

    If you want to have binaries and libraries portable across linux systems, or even portable across locations on your filesystem, you need to know a bit about dynamic linking.

    First read man ld.so, this will tell you about where libraries are looked up when they are being searched for ...

    read more
  6. Late to the (SystemD)inner party

    Published: Mon 21 September 2015
    By Jepio

    In misc.

    I may be coming late to the SystemD bashing party, but I'd just like to say that I disagree with all of the opponents of this init system. It makes sense to have all of the basic components in one place (journal, basic networking), it does speed up booting ...

    read more
  7. Vmstat rocks

    Published: Tue 15 September 2015
    By Jepio

    In misc.

    Something I find myself doing constantly is monitoring the performance of my machines. CPU usage, VM (virtual memory) usage and the likes.

    The goto-application for this purpose is top. Top is great, and can be used on linux as well as BSD's, which I have been experimenting with recently ...

    read more
  8. To BSD or not be

    Published: Sun 30 August 2015
    By Jepio

    In misc.

    I became interested in BSD's this week. The thought of installing one on my hardware had been crawling around my head ever since someone told me their "plan for the weekend is to install an original Unix while my girlfriend is away".

    So I dived in and tried what ...

    read more
  9. Command line clipboard managment

    Published: Sat 04 July 2015
    By Jepio

    In misc.

    I can't believe how awesome this is, it's the greatest thing to happen to me since I got a laptop with a physical middle button which finally made separating the CLIPBOARD-SELECTION buffer feasible. It's xsel!

    xsel -b < file.in
    xsel -b > file.out
    

    and more, can be ...

    read more
  10. Where the hell is the vectorization report?

    Everyone should care about vectorization. It's relatively easy for the compiler to do on it's own compared to stuff like auto-parallelisation, and can yield high performance gains on certain parts of the code. The win can be anything from 2x to 8x, depending on what data type we ...

    read more
  11. Bash's here documents

    I'm just about to finish reading the fantastic essay by Neal Stephanson entitled "In the Beginning was the Command Line" and I stumbled upon this quote:

    Unix is hard to learn. The process of learning it is one of multiple small epiphanies. Typically you are just on the verge ...

    read more
  12. Yet another vim feature I didn't know about

    Published: Mon 01 June 2015
    By Jepio

    In misc.

    As I was editting a python script this morning, I acidentally entered K in normal mode. Vim quickly hid and revelead a shell which contained two lines:

    no Python documentation found for 'd'

    Press ENTER or type command to continue

    What is this sorcery, I thought to myself. I quickly ...

    read more
  13. Windows... blows?

    Published: Fri 29 May 2015
    By Jepio

    In misc.

    I'm not usually a hater against Windows but this time I feel it's time to speak up. I wanted to install Windows 8 on my new laptop, but since it doesn't have a CD/DVD drive (and I wouldn't want it) I wanted to load the ...

    read more
  14. Finally a new laptop

    The time of my old laptop has come, it has finally died on me under mysterious circumstances1. It was a Samsung R530, with a T4400 2.2 GHz dual core processor. Since I use gentoo most of the time I have to compile (almost) all of my packages from ...

    read more
  15. Embedding a gist in post

    Published: Tue 10 March 2015
    By Jepio

    In test.

    I want to share a python trick with you, that I have found to be very useful. And since I want to also find out how to embed gists, I decided to use this post as a testing ground.

    read more
  16. First code sample

    I'm trying out the syntax highlighting extension to markdown available in pelican. Here it goes

    #include <vector>
    
    int main()
    {
        std::vector c = { 1, 2, 3 };
        for (auto&& e : c) {
            e -= 1;
        }
        return c[2];
    }
    

    Now let's see how this looks.

    read more
  17. My first post

    Published: Tue 10 March 2015
    By Jepio

    In test.

    This is my first post on my pelican based website. I tried Jekyll and JekyllBootstrap first, but since I know neither ruby nor css, I couldn't customize my website at all. But with a python based generator, this shouldn't be an issue anymore. So: Hello, World to you!

    read more

blogroll

social