Note: Unix-like systems only.
- Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
Note: Unix-like systems only.
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
-- Restart sequence to 1, this not impact dacpac | |
ALTER SEQUENCE MySequence RESTART WITH 1 | |
-- Get all needed id to reach the desidered number, @range_first_value is mandatory | |
-- and returns the first (minimum or maximum) value of the sequence object used to calculate the requested range. | |
-- | |
-- https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-sequence-get-range-transact-sql?view=sql-server-ver16 | |
DECLARE @range_first_value SQL_VARIANT; |
function Get-Installed { | |
[CmdletBinding()] | |
param ( | |
# The name of the software | |
[Parameter(Mandatory = $true)] | |
[string] $Name | |
) | |
begin { | |
$PATHS = @( |
<!-- https://docs.microsoft.com/it-it/nuget/reference/nuget-config-file --> | |
<?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="Test Source" value="d:\packages" /> | |
</packageSources> | |
</configuration> |
function Switch-Virtualization | |
{ | |
# Advanced parameters | |
# https://ss64.com/ps/syntax-function-advanced.html | |
[CmdletBinding()] # Add cmdlet features. | |
Param( | |
[Parameter(Mandatory=$true)] | |
[ValidateSet("vmware", "hyperv")]$Virtualization, |
class FiscalCode | |
{ | |
private static readonly string[] VOC = new string[] { "a", "e", "i", "o", "u" }; | |
public static string Name(string lastName, string firstName) | |
{ | |
return $"{Lastname(lastName)}{FirstName(firstName)}"; | |
} | |
private static string Lastname(string value) |