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
# "rest-client.environmentVariables": { | |
# "local":{ | |
# "aadV2ClientSecret":"", | |
# "aadV2ClientId":"", | |
# "aadV2TenantId":"", | |
# "aadV2AppUri":"", | |
# "namespace": "", | |
# "topicName": "" | |
# } | |
# } |
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
[Route("updates/{xml?}")] | |
public IActionResult Updates(string xml) | |
{ | |
string host = @""; | |
string username = ""; | |
string password = @""; | |
string remoteDirectory = $"/updates/{xml}"; | |
MemoryStream memoryStream = new System.IO.MemoryStream(); | |
using (SftpClient sftp = new SftpClient(host, username, password)) |
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 namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Import-Module DockerCompletion | |
Import-Module Z | |
# Import-Module -Name Terminal-Icons | |
# Import-Module posh-with |
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
# Description: Boxstarter Script | |
# Author: Laurent Kempé | |
# Dev settings for my app development | |
Disable-UAC | |
#--- Windows Features --- | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
#--- File Explorer Settings --- |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FunWithDelegates | |
{ | |
class Program | |
{ |
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
[HttpPost] | |
public ActionResult Upload(UploadModel model, IEnumerable<HttpPostedFileBase> files) | |
{ | |
try | |
{ | |
var guid = Guid.NewGuid(); | |
if (files != null && files.Any()) | |
{ | |
using (var ms = new MemoryStream()) |