<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alan Kiš on Medium]]></title>
        <description><![CDATA[Stories by Alan Kiš on Medium]]></description>
        <link>https://medium.com/@alankis?source=rss-76452c5a8889------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DQpuCFIN7NzTWm1q.jpg</url>
            <title>Stories by Alan Kiš on Medium</title>
            <link>https://medium.com/@alankis?source=rss-76452c5a8889------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 07:45:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alankis/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DevOps on AWS like a Rockstar]]></title>
            <link>https://medium.com/globaldatanet/devops-on-aws-like-a-rockstar-ca1a89bffa29?source=rss-76452c5a8889------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca1a89bffa29</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Alan Kiš]]></dc:creator>
            <pubDate>Thu, 06 Jun 2019 10:55:40 GMT</pubDate>
            <atom:updated>2019-06-06T10:55:40.393Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://aytomic.com/">Aytomic</a>, a software development company, today uses a wide range of AWS services and tools which helps it deliver services and solutions in an efficient way with the minimal operational effort which then again helps it to focus more on the innovation and development.</p><p>We at <a href="https://globaldatanet.com/">globaldatanet </a>as their AWS DevOps Partner and friends have helped Aytomic to focus on development while taking care of DevOps and Security on AWS.</p><h3>Security Baseline</h3><p>As a starting point, security, especially at IoT related companies, must be everyone’s primary concern. Having that in mind, we as AWS experts, have helped them to build the secure environment starting with detailed and thorough security assessments and remediation following all the principles and rules from the AWS Well Architected Framework, AWS Trusted Advisor and AWS Security Best Practices.</p><p>In addition, we have heavily utilized the AWS Config and CloudWatch alarms to monitor any change in the infrastructure such as changes in IAM policies, root account usages, instance changes, VPC changes, security groups, and NACLs changes and to constantly monitor any suspicious activity or a change that could end with possible security incident or breach.</p><h3>Logging</h3><p>Amazon Elasticsearch Service makes it easy to deploy, secure and operate ElasticSearch cluster what gives endless options and possibilities to get the visibility of the data and important metrics in real time. Combining the managed Elasticsearch cluster with CloudWatch subscription filters and Lambda functions, raw platform data can be used as an actionable insight in a quick and secure way.</p><h3>Data Storage</h3><p>Data persistence was another requirement and Amazon RDS makes it easy to set up, operate and scale a database in the cloud without heavy lifting, including the provisioning, database setup, patching and backups. It allows a team to focus solely on the actual data and data structuring and modeling, and still having the benefits as fast performance, high availability and security.</p><p>To maintain the security, network isolation of resources and integration with IAM provides an additional layer of security together with encryption at rest and in transit.</p><h3>Golden AMI Pipeline</h3><p>One of the goals was to build a complete pipeline in order to deliver the Golden AMI as a baseline AMI for all the services. We have successfully built the complete pipeline using only services and tools that are available on the AWS, starting with the existing code repository all the way to the CodePipeline, AWS Systems Manager, Lambda functions, CloudFormation templates, and AWS managed Chef Opsworks server. As part of security guidelines, we have also implemented the AWS Inspector to check the images for known vulnerabilities.</p><h3>Configuration Management</h3><p>Using the CodePipeline as well as CodeBuild and AWS OpsWorks together with the Chef Automate have helped us to achieve another goal, which is continuous Chef cookbooks integration testing and delivery.</p><p>Why this is important for us? Any Chef server should be a hub of tested and trusted cookbooks that could be added to the node run list easily. However, the testing and delivery of the cookbooks to the Chef server can be a tedious task. To simplify this process, we have fully leveraged AWS products and technologies to create a pipeline that executes integration tests and delivers the cookbooks to the Chef server. That allowed automation of a regular and essential part of the cookbook development without any operational overhead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RLTEVmbsj7LIZwwI" /></figure><h3>AWS EC2 SSH keys management with IAM</h3><p>Using native AWS toolset (IAM) we were able to implement a solution to overcome the burden of AWS EC2 SSH keys management without sharing the keys using the IAM to store and retrieve the public SSH keys together with the <em>sshd’s </em>AuthorizedKeysCommand. Integration with the IAM makes it possible to restrict the SSH access to the specific users and simplifies EC2 SSH keys management at a single point.</p><h3>Background information</h3><p>At <a href="https://aytomic.com/">Aytomic</a> we provide custom software solutions. We have a team of highly experienced developers and we have experience in IoT engineering (hardware design and firmware development), mobile development and software architecture.</p><p><a href="https://globaldatanet.com/">globaldatanet</a> specializes in DevOps and Security on the Amazon Web Services (AWS) cloud and provides AWS DevOps Professional Services worldwide. Our experienced team of AWS DevOps Engineers helps clients to deliver cloud-native and serverless applications in a faster, innovative and secure way using cutting-edge tools and DevOps methods. globaldatanet is an AWS Consulting partner with a focus on DevOps, Security, and Serverless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca1a89bffa29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/globaldatanet/devops-on-aws-like-a-rockstar-ca1a89bffa29">DevOps on AWS like a Rockstar</a> was originally published in <a href="https://medium.com/globaldatanet">globaldatanet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby — All paths leads to pry]]></title>
            <link>https://medium.com/@alankis/ruby-all-paths-leads-to-pry-1b5db23792b8?source=rss-76452c5a8889------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5db23792b8</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Alan Kiš]]></dc:creator>
            <pubDate>Tue, 20 Sep 2016 19:05:29 GMT</pubDate>
            <atom:updated>2016-09-20T19:05:29.589Z</atom:updated>
            <content:encoded><![CDATA[<p>Often, in any programming language you will need and use some sort of interactive programming shell. Of course, you already have one in Ruby, it is called irb. IRB stands for “interactive ruby” and is a tool to interactively execute ruby expressions read from the standard input.Idea behind irb, is simple, and it is based on REPL concept. What REPL is?</p><p>REPL is READ — EVAL — PRINT-LOOP.</p><p>And it is really easy to implement one by yourself in Ruby language. In just one line of code.</p><pre>$ loop { p eval gets }</pre><p>Code is pretty straightforward, p stand shorthand inspect, where eval executes code which Ruby gets from commandline.</p><p>But what if you want to use something more powerfull?</p><p>Answer is pry, and you most allready heard of it.</p><p>As Pry is distributed as gem, you can install it with:</p><pre>$ gem install pry pry-doc --no-ri --no-rdoc</pre><p>pry-doc is here to get access to Ruby Core documentation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5db23792b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oh, no! A Linux command line?]]></title>
            <link>https://medium.com/@alankis/oh-no-a-linux-command-line-71f9594e86db?source=rss-76452c5a8889------2</link>
            <guid isPermaLink="false">https://medium.com/p/71f9594e86db</guid>
            <category><![CDATA[zsh]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Alan Kiš]]></dc:creator>
            <pubDate>Tue, 20 Sep 2016 19:04:50 GMT</pubDate>
            <atom:updated>2016-09-20T19:04:50.882Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Ruby or even Rails, you spent a lot of time typing commands in Linux command line interface. It is mostly dark and ugly window with a lot of text, but you noticed browsing the Internets, StackOwerflow and other interesting Ruby (on Rails) blog, that there is a hope. Collorfull rainbows, unicorns, glitter and gold, and that’s all in your favorite terminal window.</p><h4>Where to start from?</h4><p>First things first. There is a lot of various Linux shells. If you have even installed Ruby or tried Ruby’s IRB, chance that you used one are big. Where <em>bash </em>or <em>dash </em>are in group of most popular shells, there are also other ones. Like fish or zsh. If you are lucky one, there are many ways that you can improve everyday life by choosing zsh. Installing <em>zsh </em>is easy as one, two, three. Ok, it isn’t, but you are allowed to use you favorite package manager. If you are on Ubuntu, run following:</p><pre>$ sudo apt-get install zsh</pre><p>If you have ensured, that <em>zsh </em>is actually installed, by runing:</p><pre>$ which zsh</pre><p>What would return,</p><pre>$ /usr/bin/zsh</pre><p>you are ready to move forward. If you are running Ubuntu, use <em>chsh </em>to change your default shell:</p><pre>$ chsh -s /usr/bin/zsh</pre><p>or you can use:</p><pre>$ chsh -s $(which zsh)</pre><p>Exit your shell, log out you current session and then login, and your brand new shell, <em>zsh </em>is here. Not convinced? Try running:</p><pre>$ echo $SHELL </pre><p>and if you get <strong><em>/usr/bin/zsh, </em></strong>you are good to go.</p><h4>Wan’t to spice up you shell even more?</h4><p>If your answer is <strong>yes, </strong>you have came to right place. So, let’s start. You can do a lot of stuff with your zsh, but first you should install <strong>oh-my-zsh</strong><em>. </em>But you might wonder, what “oh-my-zsh” is? According to its creator,”oh-my-zsh” is:</p><blockquote><strong>Oh My Zsh is a way of life!</strong></blockquote><p>Or, in simple:</p><blockquote>Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout…</blockquote><p>Installing oh-my-zsh is pretty straightforward, after you fetched and executed installation script, “oh-my-zsh” will even backup you old .zshrc file.</p><pre>$ sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)&quot;</pre><p>You noticed allready, how your life, ehm, shell changed? Told you so.</p><h4>Shell status line and other extras</h4><p>You noticed how some people have this cute little status line in bottom of their shells? Well, it is time to get one for you, too.</p><p>First you will need to install python-pip, which is Python package manager:</p><pre>$ sudo apt-get install python-pip</pre><p>If you are using Ubuntu, there is no root user by default, so just use <strong>sudo</strong>, instead <strong>su -c </strong>and use <strong>pip </strong>to install Powerline.</p><pre>$ sudo pip install git+git://github.com/Lokaltog/powerline</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71f9594e86db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Ruby on your desk. The right way.]]></title>
            <link>https://medium.com/@alankis/getting-ruby-on-your-desk-the-right-way-16c3648369a5?source=rss-76452c5a8889------2</link>
            <guid isPermaLink="false">https://medium.com/p/16c3648369a5</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Alan Kiš]]></dc:creator>
            <pubDate>Tue, 20 Sep 2016 19:04:22 GMT</pubDate>
            <atom:updated>2016-09-20T19:04:22.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*0ymjuhHOLf-FvqHobaBRJA.png" /></figure><p>Ruby, ruby, ruby. It is all about Ruby. But where all those Rubies are? Certainly not on you table, but if you follow along this post, you will get on on your notebook or desktop machine in few little steps. Follow along, it is really easy.</p><h4>Should I download and compile binaries?</h4><p>For first time Rubyst, there is always fear that installing Ruby would involve obtaining Ruby source code, ( if you want, you can get one here, it is <a href="https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz">latest stable release</a>, 2.3.0 at time of writing this post), and run all those nasty Linux commands like ./configure, make and make install. Of course, you can get your hands dirty, but even good folks here at <a href="http://ruby-lang.com/">ruby-lang.com</a> stated:</p><blockquote>Using the third-party tools or package managers might be a better idea, though, because the installed Ruby won’t be managed by any tools.</blockquote><h4>Ruby package manager, what is that?</h4><p>Ruby package manager. Sounds familiar? Well, you are on right track. It isn&#39;t <em>apt-get</em> or<em> brew. </em>Nor <em>pacman </em>if you are consuming Arch. It is a toolset for managing various Ruby version. At same time. Pretty neat?</p><p>As Ruby version managers are not officially supported in “official” way, many Rubyists are using Ruby manager to manage their Ruby versions. There are three of them currently in the wild (yeah, chruby, rvm and lastly but not intentionally rbenv), and you can find a lot of helpful informations from their respective community. You can find a lot of cons&amp;prons on <em>Internets </em>regarding one or another Ruby version manager, but somehow, I choose to stick with rbenv.</p><h4>Why should I use rbenv?</h4><p>Why don’t? I won’t bother you with technical details, or trying to evangelize rbenv. But what is most important for me using Ruby version manager is:</p><ul><li>you don’t need to have a configuration file, which means, on <em>dotfile </em>less in your github repo</li><li>you don’t have to load rbenv to your shell</li></ul><p>Yes, you to should use rbenv. Even if you can’t install Ruby itself using rbenv.</p><h4>Groom your app’s Ruby environment with rbenv</h4><ol><li>Clone rbenv.git from GitHub and checkout to ~/.rbenv</li></ol><p>Obviouslly, you will need Git installed on your machine, if not apt-get, yum something or brew should be used to install Git.</p><pre>$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16c3648369a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[‘sass-rails’ — There was an error…]]></title>
            <link>https://medium.com/@alankis/sass-rails-there-was-an-error-d995e0c83ec0?source=rss-76452c5a8889------2</link>
            <guid isPermaLink="false">https://medium.com/p/d995e0c83ec0</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Alan Kiš]]></dc:creator>
            <pubDate>Sun, 24 Apr 2016 17:37:49 GMT</pubDate>
            <atom:updated>2016-04-24T17:37:49.586Z</atom:updated>
            <content:encoded><![CDATA[<p>Often, specially when following some older Rails material, you will encounter nasty error after running bundle install, which will says something like this:</p><blockquote>There was an error while trying to load the gem ‘sass-rails’. (Bundler::GemRequireError)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KzmrlUr5UdMtQIBg9Fr4xg.png" /></figure><p>There will be also a full backtrace error log, but what is most important is part <strong>the gem ‘sass-rails’ </strong>which actually tells us to which gem is this error actually related.</p><p>In here mentioned case, the problem is in ‘sass-rails’ gem, which is Sass adapter for Rails assets pipeline. Quick look over to <a href="https://rubygems.org/gems/sass-rails">RubyGems</a> would indicate that latest stable version is 5.0.4. So why not to install latest version?</p><p>Process should be easy straight forward. First we will remove old 5.0.1 version running:</p><pre>$ gem uninstall sass-rails<br></pre><p>After uninstalling specific version or all found sass-rails version (gem uninstall will ask you to uninstall specific gem version or all), you can run gem install ‘gem name’ without specifying version to install latest stable gem version, so let us do it:</p><pre>$ gem install sass-rails</pre><p>After we install desired gem, we also should update our application Gemfile. You can use your favorite text editor (Vi is just perfect), and alter line specifying gem version, in my case this was changing ‘sass-rails’ from 5.0.1 to 5.0.4.</p><pre>gem ‘sass-rails’, ‘5.0.4’</pre><p>And then run ‘bundle update’. You also should notify in bundler output that you are using latest version, like this:</p><pre>Using sass-rails 5.0.4 (was 5.0.1)</pre><p>And latest, you can list all locally installed gems, running:</p><pre>$ gem list -l<br></pre><p>And check gem version in output window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6asd3dIrc41Lc3wsWuf15Q.png" /></figure><p>That’s all folks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d995e0c83ec0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Rails gem, the quick way]]></title>
            <link>https://medium.com/@alankis/installing-rails-gem-the-quick-way-2a5ad8e562a2?source=rss-76452c5a8889------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a5ad8e562a2</guid>
            <category><![CDATA[gem]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Alan Kiš]]></dc:creator>
            <pubDate>Sat, 23 Apr 2016 18:26:13 GMT</pubDate>
            <atom:updated>2016-09-20T18:55:22.659Z</atom:updated>
            <content:encoded><![CDATA[<p>So you are going on with your next Rails project. You can’t wait to start, so you hit CTRL+ALT+T to open you favorite terminal window, and you have entered something like:</p><pre>$ rails new my_cool_app</pre><p>And now what? Why does it take it so long? After a few moments, you will see something similar to output bellow. But WHY is gem install actually installing and parsing documentation?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*iYwTvJd7AxTtLvmr4ifXDw.png" /></figure><p>Because you actually <strong>NOT </strong>specified to install it without documentation, and on some systems without any particularly rule, installing and generating documentation can take some amount of time.</p><h4>So how to do ‘gem install’ without documentation?</h4><p>Easy. Even running ‘gem install — help’ can give you quick overview over some switch with which you can alter ‘gem install’ default behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*cwjls-j8aaIJo1YwX148Jw.png" /></figure><p>So, for example you can run something like this to install specific Rails version, and without any documentation:</p><pre>$ gem install rails --no-rdoc --no-ri -v 4.2.0<br></pre><p>Which obviously will install Rails 4.2.0 gem and without any docs and spare some of your time. Hoooray!</p><p><strong>Note:</strong></p><p>As ‘gem install — help’ stated, using ‘ — no-rdoc’ and ‘ — no-ri’ is deprecated, you can use following syntax, and modify previous command like this: (of course, that you ran ‘gem uninstall rails’ before it.</p><pre>$ gem install rails --no-document -v 4.2.0</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a5ad8e562a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>