This file contains hidden or 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
::c++ | |
doskey msvcdir=cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64 | |
doskey cl="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe" $* | |
doskey vcvars32="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat" | |
doskey vcvars64="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" | |
doskey vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" | |
doskey expcd=explorer %cd% |
This file contains hidden or 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
::gcloud | |
doskey gcl="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" $* | |
doskey gstop="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" compute instances stop instance-5 | |
doskey gstop2="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" compute instances stop instance-6 | |
doskey gstart="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" compute instances start instance-5 | |
doskey gstart2="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" compute instances start instance-6 | |
doskey gcloud="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" $* | |
doskey centos="C:\Users\2\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd" beta compute --project "mystic-song-226805" ssh --zone "us-central1-a" "instance-6" | |
doskey winserver="C:\Windows\System32\mstsc.exe" C:\Users\2\Documents\Task-Stack-Widget\task-data\1032\instance-5.rdp | |
doskey ws="C:\Windows\System32\mstsc.exe" |
This file contains hidden or 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
//https://www.youtube.com/watch?v=dY6jR52fFWo | |
using System.CodeDom.Compiler; | |
using Microsoft.CSharp; | |
public class CompilerTest { | |
public object RunCode (string userCode) { | |
CSharpCodeProvider provider = new CSharpCodeProvider (); | |
CompilerResults results = provider.CompileAssemblyFromSource (new CompileParameters (), userCode); | |
System.Type classType = results.CompiledAssembly.GetType("MyClass"); | |
System.Reflection.MethodInfo method = classType.GetMethod("MyMethod"); |
This file contains hidden or 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
Install-Module AzureAutomationAuthoringToolkit -Scope CurrentUser | |
Import-Module AzureAutomationAuthoringToolKit |
This file contains hidden or 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]$tenantId="", | |
[string]$file="Azure-Classic-VMs.csv" | |
) | |
if ($tenantId -eq "") { | |
Write-Host "No tenant specified." | |
Add-AzureAccount | |
} else { | |
add-azureaccount -Tenant $tenantId |
This file contains hidden or 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
Write-Output 'Hello World' | |
$env:computername | |
## Function to fingerprint commands executed during the execution of this runbook | |
Function Invoke-Fingerprint { | |
param ( $cmd ) | |
Write-Output '---------------------------' | |
Write-Output $cmd | |
Invoke-Expression $cmd | |
} |
This file contains hidden or 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
html, body { | |
font-family: Open Sans; | |
font-size: 18px; | |
line-height: 28px; | |
scroll-behavior: smooth; | |
} | |
h1 { | |
letter-spacing: -15px; | |
font-family: Open Sans; |
This file contains hidden or 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
<div class="MainContainer"> | |
<div class="ParallaxContainer"> | |
<h1> | |
Aloha! | |
</h1> | |
</div> | |
<div class="ContentContainer"> | |
<div class="Content"> |
This file contains hidden or 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
# This script installs IIS and the features required to | |
# run West Wind Web Connection. | |
# | |
# * Make sure you run this script from a Powershel Admin Prompt! | |
# * Make sure Powershell Execution Policy is bypassed to run these scripts: | |
# * YOU MAY HAVE TO RUN THIS COMMAND PRIOR TO RUNNING THIS SCRIPT! | |
Set-ExecutionPolicy Bypass -Scope Process | |
# To list all Windows Features: dism /online /Get-Features | |
# Get-WindowsOptionalFeature -Online |
This file contains hidden or 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 [master]; | |
DECLARE @kill varchar(8000) = ''; | |
SELECT @kill = @kill + 'kill ' + CONVERT(varchar(5), session_id) + ';' | |
FROM sys.dm_exec_sessions | |
WHERE database_id = db_id('LSST') | |
SELECT @kill | |
EXEC(@kill); |