d33tah's weblog

“I feel like a criminal and I have to be god at the same time”

Probably the deepest analysis of the hacker culture I saw so far, done by a sociologist:

Source: https://media.ccc.de/v/32c3-7207-i_feel_like_a_criminal_and_i_have_to_be_god_at_the_same_time


( Dodaj komentarz )

Today I learned: xterm can display images!

Source: http://www.howtogeek.com/103574/how-to-browse-from-the-linux-terminal-with-w3m/


( Dodaj komentarz )

Narzędzie do migracji z Joggera do Wordpressa

Ostatnio coraz częściej myślałem o migracji na samodzielnie hostowanego bloga na Wordpressie - chociażby dlatego, że brakuje mi obsługi TLS czy bardziej nowoczesnych szablonów. Nie chciałem się jednak rozstawać z treścią, którą zebrałem przez ostatnie siedem lat i dlatego postanowiłem sprawdzić, jak ciężko byłoby zaimportować Joggerowy eksport danych do Wordpressa. Niestety, narzędzia które wypróbowałem nie pozwalały na pełny import - brakowało na przykład przywracania komentarzy. Ostatecznie napisałem własny program w tym celu. Podstawowa funkcjonalność już istnieje, resztę pewnie dodam niedługo.

Kod źródłowy: https://github.com/d33tah/joggerpl-tools/tree/master/wordpress-import

Dajcie znać w razie problemów z obsługą narzędzia - chętnie pomogę.


( Dodaj komentarz )

LVM SSD cache - first impressions

I recently decided to buy an SSD drive in order to use it as a cache for the rest of my storage. My reasoning was that I don't want to just put my OS on the drive, because: 1) most of my OS doesn't require a speedup (rarely used programs, documentation, etc) and 2) I work on a lot of non-OS data that I would also like to see sped up. Given the volume I was interested in and the amount of money I was willing to spend, I decided that just adding more RAM is not an option and bought Samsung SSD 850 EVO. I backed up all of my data (which on its own took two days because I needed to move some things around) and read up on my caching options.

At first I was interested in dm-cache or bcache, but then got tempted by LVM's caching features. I didn't know much about LVM at that point, so I figured it's about time to learn a bit. I read lvmcache(7) and quickly realized that I'll need to revise my current setup. First of all, I obviously needed to migrate to LVM, which basically meant creating my partition table from scratch. Moreover, I had two separate partitions for two separate disks (pretty much OS and data) and lvmcache could only create cache pools for single logical volumes. I decided that since I was planning to use writeback cache, my setup is not going to be secure anyway, so I can as well combine those two disks into a single LV and just make sure I back them up more often. I installed Fedora 23 with LVM that had no caching yet, backed it up for future reference and decided to play.


Czytaj dalej... ( Dodaj komentarz )

Wcześniejsze wpisy

Kategorie

Sponsorowane

Wolna kultura - książki

Wolna kultura - muzyka