<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vinicius</title>
    <description>The latest articles on DEV Community by Vinicius (@viniciusmartinez).</description>
    <link>https://dev.to/viniciusmartinez</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F203906%2F45ee80c2-c40e-4133-af19-db72beaddf6e.jpg</url>
      <title>DEV Community: Vinicius</title>
      <link>https://dev.to/viniciusmartinez</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/viniciusmartinez"/>
    <language>en</language>
    <item>
      <title>Dicas para o Trabalho em Casa (HomeOffice)</title>
      <dc:creator>Vinicius</dc:creator>
      <pubDate>Mon, 16 Mar 2020 19:57:55 +0000</pubDate>
      <link>https://dev.to/viniciusmartinez/dicas-para-o-trabalho-em-casa-homeoffice-4b9o</link>
      <guid>https://dev.to/viniciusmartinez/dicas-para-o-trabalho-em-casa-homeoffice-4b9o</guid>
      <description>&lt;p&gt;Trabalho na mesma área por mais de 15 anos e por conta dos mais diversos motivos, invariavelmente precisava trabalhar de casa. Dado o momento atual resolvi compartilhar uma pequena lista de algumas &lt;em&gt;dicas&lt;/em&gt; que podem te ajudar nessa nova rotina:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Não é apenas sobre você, mas também sua família. Então tente falar com &lt;strong&gt;TODOS que você ESTÁ TRABALHANDO em casa, DE VERDADE&lt;/strong&gt;. Portanto, tente se "trancar" em algum tipo de porão, escritório em casa ou em qualquer lugar onde você possa ter algum tipo de privacidade. Pode parecer estranho ou até rude no início, mas irá valer a pena;

&lt;ul&gt;
&lt;li&gt;Caso voce não tenha um cômodo ou uma mesa disponível, tente estabelecer algum tipo de indicativo de que voce não pode ser incomodado ou interrompido: estar com fones de ouvido, luzes acesas ou apagadas, música alta, etc.. Qualquer sinal previamente acordado que demonstre que naquele momento voce não pode ser incomodado(a) de maneira alguma;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tente estabelecer uma rotina: café da manhã, tomar banho, trocar de roupa simular seu percurso de ida ao escritório/cliente;&lt;/li&gt;
&lt;li&gt;Ergonomia: camas e sofás são muito confortáveis, mas definitivamente não são a melhor opção para longas horas de trabalho (pelo menos para mim). Não considere (pelo menos nos primeiros dias) esses lugares como ambiente de trabalho;&lt;/li&gt;
&lt;li&gt;Não se esqueça de criar um ambiente razoavelmente agradável - tenha uma garrafinha de água, café, guloseimas por perto;

&lt;ul&gt;
&lt;li&gt;cuidado com os exageros;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;EVITE distrações &lt;strong&gt;PRINCIPALMENTE&lt;/strong&gt; a televisão;&lt;/li&gt;
&lt;li&gt;Faça pausas - tente fazer algumas paradas mediante execução de atividades ou período de tempo, seja pra tomar um café ou até fazer alguns alongamentos.&lt;/li&gt;
&lt;li&gt;Respeite seu tempo/limites. Como você economizará horas preciosas do seu dia com o não deslocamento ao escritório, voce pode acabar trabalhando mais do que deveria. Novamente, tente estabelecer uma rotina com metas, marcos ou qualquer métrica que você usa para controlar sua carga de trabalho. Não exagere muito nisso!

&lt;ul&gt;
&lt;li&gt; Não sei se isso é aplicável a todos os cargos/posições/tarefas, mas pelo menos da minha perspectiva um dos efeitos colaterais mais positivos do trabalho em casa é a &lt;strong&gt;PRODUTIVIDADE;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Sei que pode pode ser difícil para alguns principalmente nos dias atuais, mas tente investir em alguns gadgets para facilitar seu dia dia: monitor extra, teclado externo, mouses sem fio, fones de ouvido.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Caso vocês tenham alguma dúvida, sintam-se livres para mandar colocar abaixo seus comentários, ou mandar um email/tweet.&lt;/p&gt;

&lt;p&gt;Boa sorte à todos.&lt;/p&gt;

</description>
      <category>homeoffice</category>
    </item>
    <item>
      <title>Keycloak (Red Hat Single Sign On) Walkthrough Demo</title>
      <dc:creator>Vinicius</dc:creator>
      <pubDate>Fri, 13 Mar 2020 23:06:02 +0000</pubDate>
      <link>https://dev.to/viniciusmartinez/keycloak-red-hat-single-sign-on-walkthrough-demo-3fi</link>
      <guid>https://dev.to/viniciusmartinez/keycloak-red-hat-single-sign-on-walkthrough-demo-3fi</guid>
      <description>&lt;p&gt;In this &lt;a href="https://github.com/vinicius-martinez/rhsso-walkthrough"&gt;demo&lt;/a&gt;, we're trying to showcase a step-by-step Walkthrough demo guide covering basic capabilities from &lt;a href="https://access.redhat.com/products/red-hat-single-sign-on"&gt;Red Hat Single Sign ON&lt;/a&gt;. You won't need to install anything since we're providing docker images for both &lt;a href="https://hub.docker.com/repository/docker/viniciusmartinez/rhsso73"&gt;Red Hat SSO 7.3&lt;/a&gt; and &lt;a href="https://hub.docker.com/repository/docker/viniciusmartinez/sso-console-app"&gt;SSO Console App&lt;/a&gt; to facilitate the learning experience.&lt;/p&gt;

&lt;p&gt;The following features will be covered:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Starting RHSSO and JS Console App&lt;/li&gt;
&lt;li&gt;Create RHSSO Realm&lt;/li&gt;
&lt;li&gt;Create RHSSO Client APP&lt;/li&gt;
&lt;li&gt;Create RHSSO Roles&lt;/li&gt;
&lt;li&gt;Create RHSSO User&lt;/li&gt;
&lt;li&gt;Enable SignUp&lt;/li&gt;
&lt;li&gt;Change Themes&lt;/li&gt;
&lt;li&gt;User Required Actions&lt;/li&gt;
&lt;li&gt;Social Login&lt;/li&gt;
&lt;li&gt;Two Factor with OTP&lt;/li&gt;
&lt;li&gt;End User Account Management&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Suggestions/feedbacks are much welcome!&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>oauth</category>
      <category>oidc</category>
      <category>jwt</category>
    </item>
    <item>
      <title>Disable Kubecontext (namespace) display on Powerlevel ZSH Theme</title>
      <dc:creator>Vinicius</dc:creator>
      <pubDate>Mon, 25 Nov 2019 18:49:26 +0000</pubDate>
      <link>https://dev.to/viniciusmartinez/disable-kubecontext-namespace-display-on-powerlevel-zsh-theme-3cmb</link>
      <guid>https://dev.to/viniciusmartinez/disable-kubecontext-namespace-display-on-powerlevel-zsh-theme-3cmb</guid>
      <description>&lt;h1&gt;
  
  
  Just give me the solution right away!!!
&lt;/h1&gt;

&lt;p&gt;In order to disable Kubecontext (namespace) display on &lt;a href="https://github.com/romkatv/powerlevel10k" rel="noopener noreferrer"&gt;Powerlevel ZSH Theme&lt;/a&gt;, just comment out or remove the &lt;code&gt;kubecontext&lt;/code&gt; declaration around line &lt;strong&gt;67&lt;/strong&gt; in your current &lt;code&gt;/Users/$yourusername/.p10k.zsh&lt;/code&gt; script. Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
  ...
  # kubecontext # current kubernetes context (https://kubernetes.io/)
  ...
  )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart your terminal and notice the missing &lt;strong&gt;kubernetes Kubecontext (namespace)&lt;/strong&gt; info on your terminal session.&lt;/p&gt;

&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;I've a regular &lt;a href="https://ohmyz.sh/" rel="noopener noreferrer"&gt;Oh My ZSH&lt;/a&gt; user for a few weeks and often times, I try to test new plugins or themes and today (Nov 25) i've came across the &lt;a href="https://github.com/romkatv/powerlevel10k" rel="noopener noreferrer"&gt;Powerlevel ZSH Theme&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I found it so cool that I decided to give it a try, but after finishing the &lt;a href="https://github.com/romkatv/powerlevel10k#installation" rel="noopener noreferrer"&gt;installation process&lt;/a&gt;, the terminal was displaying the &lt;strong&gt;Kubernetes Kubecontext (namespace)&lt;/strong&gt; info, which I strongly want to remove it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F5ql6yefo1ltf7k713phw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F5ql6yefo1ltf7k713phw.png" alt="Powerlevel ZSH Theme Kubernetes Kubecontext"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  The Problem
&lt;/h1&gt;

&lt;p&gt;After going thru the installation one more time (the whole process is managed by a &lt;em&gt;Next, Next, Finish Terminal like experience&lt;/em&gt;), I've noticed that &lt;strong&gt;Kubernetes namespace&lt;/strong&gt; was displayed. Thus, i've decided to double check if there's any &lt;strong&gt;Kubernetes&lt;/strong&gt; related configuration section which I've missed, however, unfortunately the installer offers no feature to change this behaviour.&lt;/p&gt;

&lt;p&gt;After &lt;em&gt;googleing&lt;/em&gt; a little bit about this issue, I've found some open issues (&lt;a href="https://github.com/Powerlevel9k/powerlevel9k/issues/860" rel="noopener noreferrer"&gt;860&lt;/a&gt; , &lt;a href="https://github.com/Powerlevel9k/powerlevel9k/issues/1252" rel="noopener noreferrer"&gt;1252&lt;/a&gt;) on &lt;a href="https://github.com/Powerlevel9k/powerlevel9k/issues" rel="noopener noreferrer"&gt;github&lt;/a&gt; to address this problem, however no solution was pointed out.&lt;/p&gt;

&lt;p&gt;With that said, i thought it was something related to others &lt;em&gt;Oh My ZSH&lt;/em&gt; &lt;a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins" rel="noopener noreferrer"&gt;plugins&lt;/a&gt; such as &lt;a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kube-ps1" rel="noopener noreferrer"&gt;kube-ps1&lt;/a&gt; or some miss configuration on my side, which was not the case.&lt;/p&gt;

&lt;p&gt;Since I couldn't find anything that could shade some light on this issue,  reviewing &lt;em&gt;ZSH configuration&lt;/em&gt; &lt;code&gt;/Users/$yourusername/.zshrc&lt;/code&gt; was my next choice and luckily I've found this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Fixing the Problem
&lt;/h1&gt;

&lt;p&gt;The &lt;strong&gt;p10k.zsh&lt;/strong&gt; script performs all &lt;em&gt;heavy-lifting&lt;/em&gt; for &lt;a href="https://github.com/romkatv/powerlevel10k" rel="noopener noreferrer"&gt;Powerlevel ZSH Theme&lt;/a&gt;, therefore, all configurations, extensions and customisations should be available within it.&lt;/p&gt;

&lt;p&gt;Thus, I've spent some minuted reviewing it's source code and came across this snippet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
  ...
  kubecontext # current kubernetes context (https://kubernetes.io/)
  ...
  )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After commenting out kubecontext declaration from the above snippet, finally the &lt;strong&gt;kubernetes Kubecontext (namespace)&lt;/strong&gt; no longer came out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpirccdz1nw6stg0ml0ih.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpirccdz1nw6stg0ml0ih.png" alt="Powerlevel ZSH Theme Kubernetes Without Kubecontext"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>bash</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
