<?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"><channel><title><![CDATA[Dev Haven]]></title><description><![CDATA[Dev Haven]]></description><link>https://devhaven.hashnode.dev</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1596689074063/P-qXLVuK1.png</url><title>Dev Haven</title><link>https://devhaven.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 13:19:58 GMT</lastBuildDate><atom:link href="https://devhaven.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Streamlining Git Workflow with Multiple GitHub Accounts and GitHub CLI]]></title><description><![CDATA[Managing multiple Git accounts is a common scenario for developers engaged in various projects or toggling between personal and professional repositories. The necessity for distinct identities becomes crucial to ensure proper attribution and maintain...]]></description><link>https://devhaven.hashnode.dev/streamlining-git-workflow-with-multiple-github-accounts-and-github-cli</link><guid isPermaLink="true">https://devhaven.hashnode.dev/streamlining-git-workflow-with-multiple-github-accounts-and-github-cli</guid><category><![CDATA[GitHub]]></category><category><![CDATA[Git]]></category><category><![CDATA[github-cli]]></category><category><![CDATA[jq]]></category><dc:creator><![CDATA[Ram Shankar Choudhary]]></dc:creator><pubDate>Sat, 09 Mar 2024 07:14:04 GMT</pubDate><content:encoded><![CDATA[<p>Managing multiple Git accounts is a common scenario for developers engaged in various projects or toggling between personal and professional repositories. The necessity for distinct identities becomes crucial to ensure proper attribution and maintain access control. In this blog post, we explore how GitHub CLI (Command Line Interface) simplifies the process, providing a seamless experience for developers with diverse commitments.</p>
<p>To begin, if you haven't already, <a target="_blank" href="https://cli.github.com/">install GitHub CLI</a>. Following installation, authenticate your primary GitHub account using the <code>gh auth login</code> command. Walk through the prompts to securely provide your credentials.</p>
<p>Checking Authentication Status:<br />Verify the status of your linked accounts with <code>gh auth status</code>. A typical output might resemble the following:</p>
<pre><code class="lang-plaintext">github.com
  ✓ Logged in to github.com account BlankRiser (keyring)
  - Active account: true
  - Git operations protocol: https
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo', 'workflow'
</code></pre>
<p>Adding Multiple Accounts:<br />To add another account, simply run <code>gh auth login</code> again and follow the steps. Upon checking the status (<code>gh auth status</code>), you'll notice the new credentials listed. The account you just logged into will become your primary account. An example output could be:</p>
<pre><code class="lang-plaintext">github.com
  ✓ Logged in to github.com account BlankRiser (keyring)
  - Active account: false
  - Git operations protocol: https
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo', 'workflow'

  ✓ Logged in to github.com account BlankRiser_Official (keyring)
  - Active account: true
  - Git operations protocol: https
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo', 'workflow'
</code></pre>
<p>Switching Between Accounts:<br />Effortlessly switch between accounts using <code>gh auth switch</code>.</p>
<p>Automation with <a target="_blank" href="https://jqlang.github.io/jq/">jq</a>:<br />Integrating <a target="_blank" href="https://jqlang.github.io/jq/"><code>jq</code></a> with GitHub CLI can significantly enhance your workflows. In the example below, we retrieve the current active user data using GitHub CLI and extract the <code>URL</code> from the returned JSON:</p>
<pre><code class="lang-plaintext">gh api /user | jq .url
</code></pre>
<p>Obtaining Tokens:<br />To obtain a token for a specific user, the <code>gh auth token</code> command with the <code>--user</code> flag can be utilised:</p>
<pre><code class="lang-plaintext">gh auth token --user BlankRiser
</code></pre>
<p>While there are alternative methods, such as utilising multiple SSH keypairs and custom scripts, I find that using GitHub CLI is the most straightforward and user-friendly approach for both setup and getting started.</p>
]]></content:encoded></item><item><title><![CDATA[Enhancing VS Code to look Sexy AF!]]></title><description><![CDATA[Enhancing VS Code to look Sexy AF!
Utilizing various themes and plugins to make your coding experience better!
Let’s jump straight to the post!
Theme and Icon pack
One of the best(free) theme extensions out there is Material Theme.
The other notewort...]]></description><link>https://devhaven.hashnode.dev/enhancing-vs-code-to-look-sexy-af</link><guid isPermaLink="true">https://devhaven.hashnode.dev/enhancing-vs-code-to-look-sexy-af</guid><category><![CDATA[Visual Studio Code]]></category><category><![CDATA[theme]]></category><category><![CDATA[extension]]></category><dc:creator><![CDATA[Ram Shankar Choudhary]]></dc:creator><pubDate>Thu, 06 Aug 2020 04:33:54 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1596688201245/q87_1aHXL.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="enhancing-vs-code-to-look-sexy-af-">Enhancing VS Code to look Sexy AF!</h1>
<p>Utilizing various themes and plugins to make your coding experience better!</p>
<p>Let’s jump straight to the post!</p>
<h2 id="theme-and-icon-pack">Theme and Icon pack</h2>
<p>One of the best(free) theme extensions out there is <a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme">Material Theme</a>.
The other noteworthy mentions are <a target='_blank' rel='noopener'  href="https://draculatheme.com/pro/">Dracula Pro</a> and <a target='_blank' rel='noopener'  href="https://monokai.pro/vscode">Monokai Pro</a>. Both of these have pro license variants that needs to be bought or an evaluation copy is available.
The other free theme that I’ve come to like is <a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2">Cobalt2</a>.</p>
<p><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme">Material Icon Theme</a> has an abundant collection of icons for nearly every kind of file.
<a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme-icons">Material Theme Icons</a> is another such icon pack that I recommend you check out.</p>
<h2 id="font-with-ligatures">Font with ligatures</h2>
<p>One of the best monospace programming fonts with ligatures is <a target='_blank' rel='noopener'  href="https://github.com/tonsky/FiraCode">Fira Code</a>.
You can set it up by installing the fonts onto your PC, then copy and paste the following snippet in your settings.json</p>
<pre><code><span class="hljs-string">"editor.fontFamily"</span>: <span class="hljs-string">"Fira Code"</span>,
<span class="hljs-string">"editor.fontLigatures"</span>: <span class="hljs-string">"'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"</span>,
</code></pre><p><a target='_blank' rel='noopener'  href="https://www.nerdfonts.com/">Nerd Font</a> patches developer targeted fonts with a high number of icons.</p>
<h2 id="extensions">Extensions</h2>
<p>VS Code provides numerous plugins that help out programmers to code efficiently.</p>
<ol>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer"><strong>Live Server</strong></a> <strong>:</strong> It launches a development local Server with live reload for static &amp; dynamic pages.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments"><strong>Better Comments</strong></a> : It allows us to categorize our comments into various alerts, queries, to-do&#39;s.. using various annotations.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow"><strong>Indent-Rainbow</strong></a> : It make the code easier to read by colorizing the indentations and making them more readable.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer"><strong>Bracket Pair Colorizer 2</strong></a>: This extension allows matching brackets to be identified with colors. The user can define which tokens to match, and which colors to use.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=pnp.polacode"><strong>Polacode</strong></a> : It takes a snapshot of your code.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight"><strong>Color Highlight</strong></a>: This extension styles css/web colors found in your document.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=kiteco.kite"><strong>Kite</strong></a>: AI-powered programming assistant that helps you write Python code inside Visual Studio.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"><strong>Prettier</strong></a> : It is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=almenon.arepl"><strong>AREPL for python</strong></a> : It automatically evaluates python code in real-time as you type.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.live-sass"><strong>Live Sass Compiler</strong></a> : It helps you to compile/transpile your SASS/SCSS files to CSS files in realtime with live browser reload.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag"><strong>Auto Rename Tag</strong></a> : It automatically renames paired HTML/XML</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek"><strong>CSS Peek</strong></a> : This extension extends HTML and ejs code editing with <code>Go To Definition</code> and <code>Go To Symbol in Workspace</code> support for css/scss/less (classes and IDs) found in strings within the source code.</li>
<li><a target='_blank' rel='noopener'  href="https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion"><strong>IntelliSense for CSS class names in HTML</strong></a> : It provides CSS class name completion for the HTML <code>class</code> attribute based on the definitions found in your workspace or external files referenced through the <code>link</code> element.</li>
</ol>
<h2 id="my-configuration">My Configuration</h2>
<p>You can use the snippet below to use my VS Code configuration.</p>
<pre><code>{
"<span class="hljs-attr">workbench.iconTheme</span>": <span class="hljs-string">"material-icon-theme"</span>,
"<span class="hljs-attr">editor.fontFamily</span>": <span class="hljs-string">"Fira Code"</span>,
"<span class="hljs-attr">terminal.integrated.fontFamily</span>": <span class="hljs-string">"monospace"</span>,
"<span class="hljs-attr">editor.fontSize</span>": <span class="hljs-number">16</span>,
"<span class="hljs-attr">window.zoomLevel</span>": <span class="hljs-number">0</span>,
"<span class="hljs-attr">editor.fontLigatures</span>": <span class="hljs-string">"'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"</span>,
"<span class="hljs-attr">indentRainbow.colors</span>": [
<span class="hljs-string">"rgba(16,16,16,0.1)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.2)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.3)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.4)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.5)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.6)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.7)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.8)"</span>,
<span class="hljs-string">"rgba(16,16,16,0.9)"</span>,
<span class="hljs-string">"rgba(16,16,16,1.0)"</span>
]
}
</code></pre>]]></content:encoded></item><item><title><![CDATA[Installing Fiona on Windows 10 for KeplerGl]]></title><description><![CDATA[Installing Fiona on Windows 10 for keplergl
Get Fiona running on your pc easy and quick
I wanted to install Kepler.gl for a project, but kept having trouble installing Fiona(which is a dependency of keplergl) and figured there probably are more peopl...]]></description><link>https://devhaven.hashnode.dev/installing-fiona-on-windows-10-for-keplergl</link><guid isPermaLink="true">https://devhaven.hashnode.dev/installing-fiona-on-windows-10-for-keplergl</guid><category><![CDATA[Python 3]]></category><category><![CDATA[data analysis]]></category><dc:creator><![CDATA[Ram Shankar Choudhary]]></dc:creator><pubDate>Thu, 06 Aug 2020 04:27:16 GMT</pubDate><content:encoded><![CDATA[<h1 id="installing-fiona-on-windows-10-for-keplergl">Installing Fiona on Windows 10 for keplergl</h1>
<p>Get <a target='_blank' rel='noopener'  href="https://pypi.org/project/Fiona/">Fiona</a> running on your pc easy and quick</p>
<p>I wanted to install <a target='_blank' rel='noopener'  href="https://kepler.gl/">Kepler.gl</a> for a project, but kept having trouble installing Fiona(which is a dependency of keplergl) and figured there probably are more people who have gone through the same. Let me show you how to fix it and install Fiona.</p>
<p>To install Fiona, we have to know its dependencies/requirements mentioned in their <a target='_blank' rel='noopener'  href="https://github.com/Toblerity/Fiona">documentation</a>:</p>
<blockquote>
<p>Python versions 2.7 or 3.4+.</p>
<p><a target='_blank' rel='noopener'  href="http://www.gisinternals.com/release.php"><em>GDAL</em></a> <em>with compiled libraries and headers</em></p>
<p><em>Fiona depends on the modules</em> like <code>_enum34_</code><em>,</em> <code>_six_</code><em>,</em> <code>_cligj_</code><em>,</em> <code>_munch_</code><em>,</em> <code>_argparse_</code><em>, and</em> <code>_ordereddict_</code><em>. Pip will fetch these requirements for you, but users installing Fiona from a Windows installer must get them separately.</em></p>
</blockquote>
<p><strong>1. Python Architecture</strong> Learn which architecture of python is installed in your pc.</p>
<pre><code><span class="hljs-meta">&gt;&gt;</span> import platform as p
<span class="hljs-meta">&gt;&gt;</span> print(p.architecture())
(<span class="hljs-string">'64bit'</span>, <span class="hljs-string">'WindowsPE'</span>)&lt;<span class="hljs-regexp">/span&gt;</span>
</code></pre><p>It can either be 64bit or 32bit.</p>
<p><strong>2. Downloading the required files</strong></p>
<p>Go to GDAL official site from <a target='_blank' rel='noopener'  href="http://www.gisinternals.com/archive.php">here</a> and choose a link in Downloads whose architecture matches your python</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1596687873966/ApcoBZFjy.png" alt="1.png"></p>
<p>I picked MSVC 2017 x64bit</p>
<p>After clicking the link in Downloads, you would be sent in to a <a target='_blank' rel='noopener'  href="http://www.gisinternals.com/query.html?content=filelist&amp;file=release-1911-x64-gdal-3-0-2-mapserver-7-4-2.zip">different page</a> that matches the configuration you chose earlier.</p>
<p><strong>Download</strong></p>
<ul>
<li>Compiled binaries in a single .zip package</li>
<li>Compiled libraries and headers</li>
<li>Generic installer for the GDAL core components</li>
<li>Installer for the GDAL python bindings ( the python version and architecture should match to what you have)</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1596687890996/byqPOIwuf.png" alt="2.png"></p>
<p>I’ve downloaded these files as I have Python 3.7 — 64bit</p>
<p><strong>3. Installation</strong></p>
<p>Install GDAL core and then GDAL python binding from msi installers.</p>
<p><strong>4. Adding environment variables</strong></p>
<ul>
<li>Find where GDAL is installed:
it’s probably in <code>C:\Program Files (x86)\GDAL\</code>or <code>C:\Program Files\GDAL\</code></li>
<li>Add the following to your environment variables:</li>
</ul>
<p><code>PATH</code>: C:\Program Files (x86)\GDAL</p>
<p><code>GDAL_DATA</code>: C:\Program Files (x86)\GDAL\gdal-data</p>
<p><code>GDAL_DRIVER_PATH</code>: C:\Program Files (x86)\GDAL\gdalplugins</p>
<p>After this, execute the code below in your terminal and paste the version in a new environment variable called <code>GDAL_VERSION</code></p>
<pre><code><span class="hljs-attribute">gdalinfo</span> --version
</code></pre><p><code>GDAL_VERSION</code>: 3.0.1</p>
<p><strong>5. Installing Fiona</strong></p>
<p>We are done with installing GDAL, and can now proceed to install Fiona.
Download Fiona Windows binaries according to your python specification from <a target='_blank' rel='noopener'  href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona">here</a>.</p>
<p>Open your command prompt and <code>cd</code> to the folder where whl package of Fiona you just downloaded.
Use pip to install the whl file: pip install fiona_file.whl</p>
<pre><code><span class="hljs-selector-tag">pip</span> <span class="hljs-selector-tag">install</span> <span class="hljs-selector-tag">Fiona-1</span><span class="hljs-selector-class">.8</span><span class="hljs-selector-class">.13-cp37-cp37m-win_amd64</span><span class="hljs-selector-class">.whl</span>
</code></pre><p><strong>6. Installing keplergl (Optional)</strong></p>
<p>You have all the dependencies you need, without Fiona causing any error.</p>
<pre><code><span class="hljs-attribute">pip</span> install keplergl
</code></pre>]]></content:encoded></item></channel></rss>