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.IO; | |
using System.IO.Compression; | |
using System.Formats.Tar; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string sourceTarGzFilePath = @"C:\_Temp\test.tar.gz"; |
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.IO; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.Storage; | |
using Microsoft.Azure.Storage.Blob; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
using System.Diagnostics; | |
using System.IO.Compression; |
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
$tfsUrl = "http://your-tfs-server:8080/tfs" # Replace with your TFS server URL | |
$collection = "DefaultCollection" # Replace with your TFS collection name | |
$accessToken = "Basic " + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":your-personal-access-token")) #Replace with your Personal Access Token (NB : the colon is required at the beginning of the token before the pat itself) | |
$Headers = @{ | |
"Authorization" = $accessToken | |
"Content-Type" = "application/json" | |
} | |
# Get all projects |
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
## You need to run this in your terminal as admin mode | |
################################################################# | |
# Restore taskmgr.exe As The Default Task Manager | |
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe\" -Name 'Debugger' | |
# Check if PROCEXP64.EXE is still Task Manager | |
if($null -eq (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe\" | Select-Object -ExpandProperty 'Debugger' -ErrorAction Stop)) { | |
Write-Host "taskmgr.exe if your official Task Manager" | |
} |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: aspnetapp | |
labels: | |
app: aspnetapp | |
spec: | |
replicas: 10 | |
selector: | |
matchLabels: |