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
# .NET Core Function App to Windows on Azure | |
# Build a .NET Core function app and deploy it to Azure as a Windows function App. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core | |
trigger: | |
- master | |
variables: | |
# Azure Resource Manager connection created during pipeline creation |
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 gets the death numbers of yesterday and the day before that | |
# from the Johns Hopkins dataset in github and calculates the number of deaths | |
# for the last day in the third column. | |
# Set up SQL provider | |
$provider = (New-Object System.Data.OleDb.OleDbEnumerator).GetElements() ` | |
| Where-Object { $_.SOURCES_NAME -like "Microsoft.ACE.OLEDB.*" } | |
if ($provider -is [system.array]) { | |
$provider = $provider[0].SOURCES_NAME | |
} |
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
{ | |
"globals": { | |
"alwaysShowTabs": true, | |
"defaultProfile": "{720627e5-2bb1-4517-b092-f7def53a44b8}", | |
"initialCols": 150, | |
"initialRows": 65, | |
"keybindings": [{ | |
"command": "closeTab", | |
"keys": [ | |
"ctrl+w" |
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
# Create and enter directory | |
function global:CreateAndChangeTo-Directory () { | |
md $args[0]; cd $args[0] | |
} | |
Set-Alias mcd CreateAndChangeTo-Directory | |
# Edit hosts file | |
function global:Edit-Hosts () { | |
start-process -verb runAs "notepad" -argumentlist "C:\Windows\System32\drivers\etc\hosts" | |
} |
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
using System; | |
using System.Diagnostics; | |
using System.Security.Claims; | |
using System.Web.Mvc; | |
namespace ISS.OPF.API.Controllers | |
{ | |
// [Authorize] - you don't need authorization if all page auth is handled in frontend | |
public class HomeController : Controller | |
{ |
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
<configuration> | |
<system.webServer> | |
<staticContent> | |
<remove fileExtension=".svg"/> | |
<mimeMap fileExtension=".svg" mimeType="image/svg+xml"/> | |
<remove fileExtension=".json"/> | |
<mimeMap fileExtension=".json" mimeType="application/json" /> | |
<remove fileExtension="woff"/> | |
<mimeMap fileExtension="woff" mimeType="font/woff"/> | |
<remove fileExtension="woff2"/> |
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 pushes the database on to the dbserver in the script | |
# using the $fileName in arg, and names new database from $dbname in args | |
param($dbname, $fileName) | |
$dbserver = 'server.name.domain' | |
$username = 'username' | |
$password = 'password' | |
& sqlpackage /a:import /tsn:"$dbserver" /tdn:"$dbname" /tu:"$username" /tp:"$password" /sf:"$fileName" |
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
# Start powershell som admin, og brug nedenstående kommandoer | |
# Tillad afvikling af downloadede powershell scripts | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned | |
# Installer Chocolatey | |
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex | |
# Genstart powershell som admin - nu kan man installere navngivne pakker fx chrome, google drive og skype: | |
choco install googlechrome -y | |
choco install googledrive -y |
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
// Setup | |
fill('balsa') | |
homework = stamp('homework') | |
exploding = true | |
alarm = stamp('alarm',650,100,180) | |
alarm.tap = soundAlarm | |
// Start nedtælling til eksplosion | |
function soundAlarm() { | |
sound('alert',25,100) |
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
<rules> | |
<rule name="some rule"> | |
<!-- rule details here ---> | |
</rule> | |
</rules> |
NewerOlder