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
USE tempdb | |
GO | |
/* | |
Generate Sample Data | |
*/ | |
DROP TABLE IF EXISTS dbo.[Sample] | |
GO | |
WITH cte AS |
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.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Security.Claims; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Authentication.OAuth; | |
using Newtonsoft.Json.Linq; |
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 the Database Master Key, if needed | |
*/ | |
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'My-L0ng&Str0ng_P4ss0wrd!'; | |
GO | |
/* | |
Create database scoped credentials to store the Shared Access Signature (SAS) | |
needed to access the Azure Blob Container. More info on Azure Blob SAS here: | |
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
/* | |
Expected JSON: | |
{ | |
"Subject": "Form's Subject", | |
"FirstName": "Davide", | |
"LastName": "Mauri", | |
"EmailAddress": "info@davidemauri.it", | |
"OtherField1": "OtherValue1", |
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
#r "Newtonsoft.Json" | |
using System; | |
using System.Net; | |
using System.Net.Mail; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Configuration; | |
using Dapper; | |
using Newtonsoft.Json; |
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
execute sp_execute_external_script | |
@language = N'R', | |
@script = N'OutputDataSet <- data.frame(R.home());' | |
with result sets (([R.home()] nvarchar(max) not null)); |
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
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
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
loadkeys it |
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
# Load Assembly | |
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.AnalysisServices") >$NULL | |
# Connect to Tabular SSAS | |
$srv = New-Object Microsoft.AnalysisServices.Server | |
$srv.connect("localhost") | |
# Point to a specific Database | |
$db = $srv.Databases.FindByName("MyDatabase"); | |
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
# Load Assembly | |
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.AnalysisServices") >$NULL | |
# Connect to Tabular SSAS | |
$srv = New-Object Microsoft.AnalysisServices.Server | |
$srv.connect("localhost\TABULAR") | |
# Point to a specific Database | |
$db = $srv.Databases.FindByName("DatabaseName"); |