Skip to content

Instantly share code, notes, and snippets.

View msdotnetclr's full-sized avatar

Jian (Miracle) Zhou msdotnetclr

View GitHub Profile
@msdotnetclr
msdotnetclr / start_vm.ps1
Last active January 24, 2018 14:35
Use PowerShell to start an Azure VM
# --- begin prerequisite ---
# interactive login to Azure Resource Manager with your Azure Account
Login-AzureRmAccount
# print the list of subscriptions you have access to
Get-AzureRmSubscription
# save your credential to a JSON file for auto-login later on
Save-AzureRmContext -Path "C:\private\azure-credential.json"
# --- end prerequisite ---
# --- begin script ---
@msdotnetclr
msdotnetclr / Starburst-downloads.md
Last active January 4, 2019 14:29
Teradata Presto Downloads

Download Page URL:

https://www.starburstdata.com/download-links

Presto Server

RPM

@msdotnetclr
msdotnetclr / run_azure_sql_sp_with_powershell.md
Last active February 21, 2020 07:49
Run Stored Procedure in Azure SQL with PowerShell Script
  1. Install PowerShell. Follow instructions at https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell?view=powershell-5.1
  2. Install Azure PowerShell 4.4. Follow instructions at https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-4.4.0
  3. Start PowerShell and execute the following commands to create a credential file for Azure auto-login later.
######################################################################
# interactive login to Azure Resource Manager with your Azure Account
Login-AzureRmAccount 
# print the list of subscriptions you have access to
Get-AzureRmSubscription
@msdotnetclr
msdotnetclr / Example.html
Created October 10, 2016 14:25 — forked from Danielku15/Example.html
A MediaTypeFormatter for WebApi for multipart/form-data including file uploads
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>File Upload example</title>
<link href="/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
<form action="api/Upload" method="post">
<div class="form-group">
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = winmerge
[mergetool "winmerge"]
name = WinMerge