<?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: 7ji9xmel</title>
    <description>The latest articles on DEV Community by 7ji9xmel (@7ji9xmel).</description>
    <link>https://dev.to/7ji9xmel</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%2F1498926%2Fd4b1af1d-0b7b-4e02-aab1-30046113ab1d.png</url>
      <title>DEV Community: 7ji9xmel</title>
      <link>https://dev.to/7ji9xmel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/7ji9xmel"/>
    <language>en</language>
    <item>
      <title>Generating secrets for applications</title>
      <dc:creator>7ji9xmel</dc:creator>
      <pubDate>Tue, 20 Aug 2024 06:36:43 +0000</pubDate>
      <link>https://dev.to/7ji9xmel/generating-secrets-for-applications-4iml</link>
      <guid>https://dev.to/7ji9xmel/generating-secrets-for-applications-4iml</guid>
      <description>&lt;p&gt;&lt;strong&gt;Using Python and Terminal&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'import secrets; print(secrets.token_urlsafe(16))'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'import secrets; print(secrets.token_hex(16))'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If for some of you on Windows does not work, replace single quotes &lt;code&gt;'&lt;/code&gt; into double quotes &lt;code&gt;"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using OpenSSL&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl rand &lt;span class="nt"&gt;-base64&lt;/span&gt; 16
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl rand &lt;span class="nt"&gt;-hex&lt;/span&gt; 16
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The number you choose is the length of the secret in bytes, a hex of 16 bytes will produce 32 character strings.&lt;/p&gt;

</description>
      <category>jwt</category>
      <category>secret</category>
      <category>hex</category>
      <category>base64</category>
    </item>
    <item>
      <title>Setting ChrisTitusTech powershell profile for Terminal and VS Code</title>
      <dc:creator>7ji9xmel</dc:creator>
      <pubDate>Wed, 15 May 2024 15:49:08 +0000</pubDate>
      <link>https://dev.to/7ji9xmel/setting-christitustech-powershell-profile-for-terminal-and-vs-code-43on</link>
      <guid>https://dev.to/7ji9xmel/setting-christitustech-powershell-profile-for-terminal-and-vs-code-43on</guid>
      <description>&lt;p&gt;Execute the following command in an elevated PowerShell window to install the PowerShell profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;irm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iex&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Terminal
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the Terminal app and navigate to &lt;code&gt;Settings&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Under the &lt;strong&gt;Profiles&lt;/strong&gt; section click &lt;code&gt;PowerShell&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Additional Settings&lt;/strong&gt; click &lt;code&gt;Appearance&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Change &lt;code&gt;Font face&lt;/code&gt; to &lt;em&gt;"CaskaydiaCove Nerd Font"&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  VS Code
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open VS Code and navigate to &lt;code&gt;File&lt;/code&gt;-&amp;gt;&lt;code&gt;Preferences&lt;/code&gt;-&amp;gt;&lt;code&gt;Settings&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;In the search bar write &lt;em&gt;"terminal font"&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Write &lt;em&gt;"CaskaydiaCove NF"&lt;/em&gt; in the text area under &lt;code&gt;Font Family&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbsb46ziu3aei37b3eeh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbsb46ziu3aei37b3eeh.png" alt="Image of the Font Family text area value after the operations in the VS Code section" width="581" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>christitustech</category>
      <category>powershell</category>
      <category>ohmyposh</category>
      <category>nerdfonts</category>
    </item>
  </channel>
</rss>
