Author Archive

Which process opened a file?

March 1, 2015 Leave a comment

Ever wondered who (which process) opened a given file? There is a Unix command to answer this question called lsof (“list open files”). Read more about it at wikipedia.

Execute the following script:

#!/usr/bin/env python3


def main():
    f = open("/tmp/who.txt", "w")
    input("Press any key to continue...")


if __name__ == "__main__":

Make it executable and run it. In another terminal issue the command “lsof /tmp/who.txt“. You’ll get a similar output:

$ cd /tmp

$ lsof who.txt 
python3 1288  jabba    3w   REG   0,32        0   27 who.txt

$ ps 1288
 1288 pts/0    S+     0:00 python3 ./

The file who.txt was opened by the process with PID 1288, which is the script.

Categories: bash Tags: , , ,

Commodore 64 books

February 26, 2015 Leave a comment

Here is a nice collection of C-64 books: .

The great Coomodore archive is here: .

Categories: book, commodore

What comes after torrent?

February 23, 2015 Leave a comment

Today I found an excellent application called Popcorn Time. Are you tired of waiting 10 minutes for your torrent to be fully downloaded? Watch movies and TV Shows instantly! Popcorn Time streams movies and TV shows from torrents.

You can select quality and subtitles too! Pure awesomeness IMO.

I tried it under Manjaro and it’s available in the AUR. Under Ubuntu just download the archive and it contains a binary executable. And, they also have an Android client!

Popcorn Time uses the following torrent trackers: er.sty//:ptth (HD movies at the smallest file size); hc.vtze//:sptth (TV shows), moc.nahcihurah.www//:ptth (anime).

As I read it in /r/popcorntime, “you can ctrl+v paste magnet links in popcorn time or drag torrent files into it if it doesn’t have the show you want. It will take any torrent, it just only displays YTS and eztv”. Cool.

CBR viewer for Linux

February 13, 2015 Leave a comment

There are several CBR viewers for Linux. I tried MComix and it’s quite nice.

(It is written in Python, BTW.)

Categories: linux Tags: , , ,

Using several Firefox instances with different profiles

February 12, 2015 Leave a comment

If you want to use several Firefox instances with different profiles, read this post.

In short:

  • close Firefox
  • Start Firefox Profile Manager (firefox -P) and create a new profile. Give a specific name to the new profile, e.g. “NewProfile“.
  • Launch Firefox normally. It will start the default (old) profile.
  • Start another Firefox instance with the new profile: firefox -P NewProfile -no-remote

10 million passwords

February 10, 2015 Leave a comment

Do you want 10 million username/password combinations? Strictly for research purposes, of course. If yes, then check out this blog post. Magnet link at the bottom.

Categories: Uncategorized Tags: , ,

[webdev] sortable table

January 29, 2015 Leave a comment

If you create a table with HTML, it’s static. It would be great if you could sort it by various columns. How to do that?

Create the static table (like before) and integrate it with a Javascript library that will make it sortable. I found a great solution for this called tablesorter. You can also find it on github, though the first link conatains more documentation and examples.

Categories: javascript, web Tags: ,

Get every new post delivered to your Inbox.

Join 76 other followers