0

Reorder Firefox containers

Posted by Chris Straw on June 4, 2020 in Windows |

When Firefox introduced the ability to sync containers, the order was different on every PC. To change the order, all you need to do is reorder the containers.json file located in the Users -> Roaming -> Mozilla -> Firefox -> Profiles -> (Look for the directory containing your containers.json)

C:\Users\{username}\AppData\Roaming\Mozilla\Firefox\Profiles\{find-directory-with-file)\containers.json

MAKE A BACKUP BEFORE YOU CHANGE IT!!!!

Tags:

0

Bootstrap 4 Equal Height Cards using Grid and Flexbox Utilities

Posted by Chris Straw on May 8, 2020 in Bootstrap 4 |

Codeply Example

<div class="container">
    <h5>Bootstrap 4 Equal Height Cards using Grid and Flexbox Utilities</h5>
    <div class="row equal">
        <div class="col-sm-4 d-flex pb-3">
            <div class="card card-block">
                Card. I'm just a simple card-block.
            </div>
        </div>
        <div class="col-sm-4 d-flex pb-3">
            <div class="card card-inverse card-danger">
                <div class="card-block">
                    <h3 class="card-title">Danger</h3>
                    <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
                    <a href="#" class="btn btn-outline-secondary">Outline</a>
                </div>
            </div>
        </div>
        <div class="col-sm-4 d-flex pb-3">
            <div class="card card-block">
                Card. I'm just a simple card-block, but I have a little more text!
            </div>
        </div>
        <div class="col-4 d-flex pb-3">
            <div class="card card-outline-primary">
                <div class="card-block">
                    <h3 class="card-title">Primary</h3>
                    <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
                    <a href="#" class="btn btn-outline-secondary">Outline</a>
                </div>
            </div>
        </div>
        <div class="col-sm-4 d-flex pb-3">
            <div class="card card-block">
                Card. I'm just a simple card-block.
            </div>
        </div>
        <div class="col-sm-4 d-flex pb-3">
            <div class="card card-inverse card-primary">
                <div class="card-block">
                    <h3 class="card-title">Hello</h3>
                    <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
                    <a href="#" class="btn btn-outline-secondary">Outline</a>
                </div>
            </div>
        </div>
    </div>
</div>

0

Eliminate multiple Nuget sources password prompt

Posted by Chris Straw on May 3, 2020 in Nuget, Visual Studio |

When you have multiple Nuget sources and when you open a Visual Studio project, you might get prompted for which account to login to Nuget for package restore.

I find this annoying, so I configure Nuget to store the hashed token in the global Nuget.config.

This command adds the package source credential elements to the nuget.config file:

  • nuget.exe sources update -Name “{package-feed-1}” -UserName “{email-address-1}” -Password “{devops-token-1}”
  • nuget.exe sources update -Name “{package-feed-2}” -UserName “{email-address-2}” -Password “{devops-token-2}”

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
    <add key="{package-source-1}" value="https://{devops-url-1}/_packaging/{package-source-1}/nuget/v3/index.json" />
    <add key="{package-source-2}" value="https://{devops-url-2}/_packaging/{package-source-2}/nuget/v3/index.json" />
  </packageSources>
  <packageRestore>
    <add key="enabled" value="True" />
    <add key="automatic" value="True" />
  </packageRestore>
  <bindingRedirects>
    <add key="skip" value="False" />
  </bindingRedirects>
  <packageManagement>
    <add key="format" value="0" />
    <add key="disabled" value="False" />
  </packageManagement>
  <packageSourceCredentials>
    <{package-source-1}>
        <add key="Username" value="{email-address-1}" />
        <add key="Password" value="{hashed-devops-token-1}" />
      </{package-source-1}>
    <{package-source-2}>
      <add key="Username" value="{email-address-2}" />
      <add key="Password" value="{hashed-devops-token-2}" />
    </{package-source-2}>
  </packageSourceCredentials>
</configuration>

Tags: ,

0

Nuget Package sources order

Posted by Chris Straw on May 3, 2020 in Nuget, Visual Studio |

When I have multiple Nuget sources, the order of the sources is how Nuget queries.  I prefer to control the order.

  • Close Visual Studio and open the global Nuget config file.  The default location for the global Nuget.config file is located in the users AppData directory. The windows explorer shortcode is:  %APPDATA%\NuGet
  • Modify the order within the <packageSources> element

 

Tags: ,

0

Remove OneDrive Context Menu in Windows 10

Posted by Chris Straw on May 3, 2020 in Windows |

The OneDrive on the Context menu is annoying, and Microsoft provides now way to remove it. To remove it, you can add the context block to the registry.

The CLSID {CB3D0F55-BC2C-4C1A-85ED-23ED75B5106B} represents the shell extension that implements the OneDrive commands.

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"{CB3D0F55-BC2C-4C1A-85ED-23ED75B5106B}"=""

Tags:

0

Beyond Compare Folder Filter

Posted by Chris Straw on April 24, 2020 in Windows |

I’ve used Beyond Compare for years.  I love the product.    https://www.scootersoftware.com/

 

When I’m comparing folders, many times I need to exclude certain folders from the compare.  Below is what I put into the Filters to exclude build folders

-*.suo;-*.dbmdl;-*.user;-bin\;-obj\;-TestResults\;-debug\;-release\;-.vs\

0

Angular ng update to specific version

Posted by Chris Straw on April 7, 2020 in Uncategorized |

If you want to update to a specific version that is not the latest version, the example below accomplishes that request:

ng update @angular/[email protected] @angular/[email protected] [email protected] [email protected] –force –all

(those are double dashes before force and all)

Tags:

0

Git – remove local commits

Posted by Chris Straw on November 7, 2019 in Uncategorized |

When I accidentally merge my branch into develop, I forget the command to remove (reset) any local commits.

git reset --hard origin/<branch_name>

0

Fixing caniuse-lite is outdated

Posted by Chris Straw on August 27, 2019 in Uncategorized |

npm i -g browserslist caniuse-lite

0

Slack Black Theme

Posted by Chris Straw on May 16, 2019 in Uncategorized |

Best Black Theme for Slack I’ve found.

https://github.com/widget-/slack-black-theme

Copyright © 2011-2020 Chris Straw All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.