e0ne's comments

How to get hardware info in Linux console/CLI

Published at October 2, 2018 ·  2 min read

Sometimes it’s needed to get hardware information on your Linux desktop or server using the command line only. Of course, you can do everything via CLI in Linux. Here just some reminders for myself how to do it. Most of the information you can get using the following three commands: lspci - list all PCI devices lshw - list hardware dmidecode - DMI table decoder Using multiple keys to these CLI tools you can get everything you need....

How to run CKAN tests

Published at January 4, 2018 ·  3 min read

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. CKAN makes it easy to publish, share and use data. It powers datahub.io, catalog.data.gov and europeandataportal.eu/data/en/dataset among many other sites. http://ckan.org/ Open source world is interesting and challenging. Sometimes it’s easy and cheap. Sometimes it’s hard to contribute and costs a lot. Looking into the CKAN I was surprised that it’s used by government portals....

Remote console via SSH with own bashrc

Published at August 9, 2017 ·  1 min read

I think, most of us have customized bash or zsh environment. I’m too lazy to switch from bash to zsh, so I use bash on my laptop. There are some benefits: bash is still the more popular shell, so it exists on mostly Linux-based servers. That’s why I try to use my .bashrc wherever it’s possible. But on a remote server, sometimes you don’t have the own user account. That’s why I’ve added a very simple alias for ssh command to mine [....

This test is too slow

Published at July 28, 2017 ·  1 min read

Sometimes we need to understand why unit-test is so slow. Sometimes I’m to lazy to go deep to understand why. That’s why I’ve created a very simple profiled class to make unit-tests profiling fast and simple. I used only cProfile, so it will work on any Python project. It’s so simple, so I can’t talk about it more. You can install it via ‘pip install ProfiledTest’ and use it like:...

Using OpenStack Cinder with LIO target

Published at February 23, 2017 ·  2 min read

What is LIO target? Linux-OI Target is a Linux SCSI target introduced in a kernel v.2.6.38 and supports different fabrics modules like FibreChannel, iSCSI, iSER, etc. It works in a kernel space, so it’s faster than tgtd which is used in Cinder by default. Why do we still use tgtd instead of more faster LIO in Cinder by default? It’s only because we have to support rolling upgrades and we don’t know how to migrate from TGTd to LIO in a such way and pass Grenade successfully....

iTerm2 - The Best Terminal App

Published at August 15, 2016 ·  1 min read

I don’t like to post reviews. But this app is amazing! I use it more than 3 years and just want to share with you a list of my favorite features:   Split Panes - I started use iTerm2 because of it. Just press Cmd+d to split current panel. Cmd+Alt+Arrow to move between the panels Search - Cmd+f to search throm commands and their output it work for the all session history Inline images - seriously, you can view images in your terminal....

Attach Cinder Volume to the Ironic Instance without Nova

Published at January 13, 2016 ·  3 min read

OpenStack Cinder provides an API to attach/detach volume to Nova instances. This is public, but not documented API which is used only by Nova now. In scope of “Attach/detach volumes without Nova” [1] blueprint we introduce new python-cinderclient extension to provide attach/detach API not only for Nova called python-brick-cinderclient-ext. Before Mitaka release everybody who want to use Cinder volumes not only with Nova instances have to create hardening scripts based on python-cinderclient and os-brick [3] projects to make it done....

A very short manual named How to run OpenStack Horizon integration tests or How to run Selenuim tests without GUI

Published at September 3, 2015 ·  1 min read

Didn’t google “how to run horizon integration tests” unswer in 10 seconds. Making note how to do it. My development environment usually looks like: macbook + VM with Ubuntu Server or CentOS without GUI. I try to run all tests inside VMs. In case of Selenium tests, I need some preparation for it: $ sudo apt-get install firefox this command will install FireFox. Selenium has WebDriver for it out of the box $ sudo apt-get install xvfb...

How to exdend your VM's drive size in 8 steps

Published at August 31, 2015 ·  3 min read

It’s my first try to blog in English. Feel free to comment for any typo, grammar errors, etc. There are nothing new, nothing innovative below. There are just a step-by-step guide to not forget and to not google each time when I need it. Usually, on my dev environment, I’ve got KVM instances with disk images in QCOW format. So time to time I need to extend my virtual disks to get more free space....

Пятничное: рабочий день программиста

Published at July 31, 2015 ·  1 min read

Все нижесказанное является выдумкой автора. Все совпадения с действительностью являются абсолютно случайными. И, как говортся: в каждой шутке есть доля шутки.  11:00. Пришел на работу. Нужно сделать кофе. 11:10. Хорошо, теперь можно пописать код. 11:11. Что за [IMPORTANT] письмо такое свалилось? 12:30. Разгреб почту, ответил начальству, поддержке и коллегам. Можно писать код. 12:45. Синк-ап. 13:00. Нужно написать недельный репорт чем занимался. 13:30. Обед - не сегодня, лучше попишу код....



Archives

2018 (2)
2017 (3)
2016 (2)
2015 (3)
2014 (5)
2013 (17)
2012 (22)
2011 (35)
2010 (25)
2009 (35)
2008 (32)
2007 (2)