Skip to content

Instantly share code, notes, and snippets.

View luis-fss's full-sized avatar
:octocat:
Hey

Luis Fernando de Souza Santos luis-fss

:octocat:
Hey
View GitHub Profile
@luis-fss
luis-fss / index.md
Last active November 9, 2021 19:02
Set dotnet cli language
[System.Environment]::SetEnvironmentVariable('DOTNET_CLI_UI_LANGUAGE','en-US')
$env:DOTNET_CLI_UI_LANGUAGE
en-US

or

  1. Go to location where dotnet is installed
  2. Go to "dotnet-install-directory\sdk\sdk-version"
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
#Import-Module oh-my-posh
@luis-fss
luis-fss / ohmyposhv3-v2.json
Last active June 24, 2024 22:06 — forked from shanselman/ohmyposhv3-v2.json
ohmyposhv3-v2
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#ff479c",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
@luis-fss
luis-fss / index.md
Last active January 15, 2022 15:07
Digital certificate import errors in Chrome and Firefox on Linux.

I wasn't able to install FILENAME.pfx under Ubuntu on Chrome or Firefox altough I had no problems installing the very same file on IE under Windows. What I did to solve the issue:

openssl pkcs12 -in FILENAME.pfx -clcerts -nokeys -out FILENAMEcert.pem
openssl pkcs12 -in FILENAME.pfx -nocerts -out FILENAMEkey.pem
openssl pkcs12 -export -in FILENAMEcert.pem -inkey FILENAMEkey.pem -out FILENAME.p12

Then install FILENAME.p12 on Chrome or Firefox under Ubuntu should work like a charm :)

@luis-fss
luis-fss / index.cs
Created January 11, 2023 16:06
RavenDB: move all documents from one database to another
using System.Threading.Tasks;
using Raven.Client.Documents;
using Raven.Client.ServerWide.Operations;
public class RavenDBMerger
{
readonly IDocumentStore _store;
public RavenDBMerger(IDocumentStore store)
{