This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION GETLOCALDATE() | |
RETURNS datetime | |
AS | |
BEGIN | |
DECLARE @D datetimeoffset; | |
SET @D = CONVERT(datetimeoffset, SYSDATETIMEOFFSET()) AT TIME ZONE 'SA Pacific Standard Time'; | |
RETURN(CONVERT(datetime,@D)); | |
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# Set default behavior to automatically normalize line endings. | |
############################################################################### | |
* text=auto | |
############################################################################### | |
# Set the merge driver for project and solution files | |
# | |
# Merging from the command prompt will add diff markers to the files if there | |
# are conflicts (Merging from VS is not affected by the settings below, in VS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
using System.Xml.Serialization; | |
internal class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Loader; | |
using System.Text.RegularExpressions; | |
// | |
// Microsoft.CodeAnalysis.CSharp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EFCore.BulkExtensions; | |
using Infraestructura.Datos; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.Extensions.Configuration; | |
using Nucleo.Administracion.Entidades; | |
using System; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using Xunit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$folder = $( Read-Host "Input repo folder" ) | |
) | |
# folders | |
new-item $folder\src -itemtype directory | |
new-item $folder\src\.files -itemtype directory | |
new-item $folder\docs -itemtype directory | |
# gitignore+gitattributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$folder = $( Read-Host "Input repo folder" ) | |
) | |
# folders | |
new-item $folder\src -itemtype directory | |
new-item $folder\src\.files -itemtype directory | |
new-item $folder\docs -itemtype directory | |
# gitignore+gitattributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xs:schema id="BrandingSchema" | |
targetNamespace="http://www.w3.org/2018/brandingSchema" | |
elementFormDefault="qualified" | |
xmlns="http://www.w3.org/2018/brandingSchema" | |
xmlns:mstns="http://www.w3.org/2018/brandingSchema" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:annotation> | |
<xs:documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See Remove default Apps from Windows 10 https://thomas.vanhoutte.be/miniblog/delete-windows-10-apps/ | |
# See Debloat Windows 10 https://github.com/W4RH4WK/Debloat-Windows-10 | |
# Command line to list all packages: Get-AppxPackage -AllUsers | Select Name, PackageFullName | |
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage | |
Get-AppxPackage Windows.ContactSupport | Remove-AppxPackage | |
Get-AppxPackage Microsoft.Xbox* | Remove-AppxPackage | |
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Mail and Calendar | |
#Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage | |
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET NOCOUNT ON; | |
DECLARE @key NVARCHAR(MAX)= N'Software\Microsoft\MSSQLServer\'+@@servicename+''; | |
CREATE TABLE #paths | |
([value] NVARCHAR(MAX), | |
[data] NVARCHAR(MAX) | |
); | |
INSERT INTO #paths | |
EXEC master.dbo.xp_instance_regread | |
N'HKEY_LOCAL_MACHINE', | |
N'Software\Microsoft\MSSQLServer\Setup', |