#Cli

Click - Implement CLI Without Pain

Published at February 16, 2019 ·  1 min read

I didn’t write reviews for libraries for a while. Honestly, I don’t want to write a review for click because a reading of it will require more time than you try it. It’s an awesome library which is really easy to use. E.g.: @click.command() @click.option('--command', prompt='command name: clone or update', help='Clone or update repos') def main(command): if command == 'clone': clone() elif command == 'update': update() I didn’t find anything like this for Python....


Why I don't like React

Published at February 8, 2019 ·  2 min read

I wanted to name this post as ‘pros and cons of React’, but I didn’t find good benefits that would push me to use this library. One thing I like that it tries to promote reactive programming, but it does it not really good, IMO. I like Rxjs and I really think that there are a lot of great things which could be borrowed from Rxjs to React to make it more functional....


How to Get Hardware Info in MacOS From CLI

Published at February 7, 2019 ·  1 min read

I know that most MacOS users use GUI instead of CLI but sometimes it’s faster to use CLI. A also prefer command line when I need to copy results: it’s easier to copy text rather than do snapshots even with hotkeys and send it. There are two tools I use to get hardware info: system_profiler and sysctl. I do not like to copy the documentation, so I just drop a few most interesting for me commands:...


Some Useful Git Commands

Published at January 11, 2019 ·  2 min read

Since I started blogging in English, I think I can translate some useful posts even they were written a few years ago. It’s a translation of the same post in Russian I’m tired to blog the same so I created this blog post to have everything in one place. Set username/email for git: $ git config --global user.email "e0ne@e0ne.info" $ git config --global user.name "e0ne" You can omit to set it global and it will be set only for the current repository....


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....


Tags

.net .net-framework .net-framework-3.5 agile ajax ajax-control-toolkit ampq ansible apache asp.net asp.net-mvc automation axum babel bash benchmark blog blog-engine bootstrap buildout c# cache centos chrome ci cinder ckan cli cloud code-review codeplex community config debugger deface dependencies development-environment devices devstack devtime disks django dlr dns docker dockerimage dos easy_install elmah encoding environment-variables error event events everything-as-a-code exception exceptions fabrik firefox flask foreach forms fstab gae gcc gerrit git github go google google-app-engine grep hack hacked hardware headless horizon hound html hugo iaas ienumerable iis internet iptables iron-python ironic iscsi java-script javascript jenkins jquery js jsx kharkivpy kiss kombu kvm kyiv lettuce libvirt linux lio loci logging loopback losetup lvm mac-os macos mercurial microsoft microsoft-sync-framework mobile mono ms-office msbuild networking news nginx npm npx offtopic oop open-source open-xml opensource openstack openvswitch os packages paraller-development patterns-practices performance php pika pip plugins pnp podcast popup postgresql profiler project protocols proxy pycamp pycharm pycon pykyiv pylint pypi python python-3 qcow quantum qumy rabbitmq rar react reactjs refactoring rfc rhel search-engine security selenium server shell silverlight socket software-engineering source-control sourcegear-vault sources sql sql-server sql-server-express sqlalchemy ssh static-site sublimetext svg tests tgt tipfy tornado typescript uapycon ui uneta unit-tests upgrades usability vim virtualenv visual-studio vitrage vm vue.js vuejs web-development web-server web-service web_root webpack webroot windows windows-live word-press x32 x64 xcode xml xss xvfb интернет-магазин книги


Archives

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