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
version: 1.1.6 | |
cache: true | |
registration: | |
socialLogins: ["discord", "facebook", "github", "google", "openid"] | |
endpoints: | |
custom: | |
# Anyscale |
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
AzureDevOpsAuditing | |
| where TimeGenerated > ago(30d) | |
| where OperationName == "Git.RefUpdatePoliciesBypassed" | |
| extend DataParsed = parse_json(Data) | |
| project TimeGenerated, OperationName, ProjectName = tostring(DataParsed.ProjectName), PullRequestId = toint(DataParsed.PullRequestId), BypassReason = tostring(DataParsed.BypassReason), RepoName = tostring(DataParsed.RepoName), NewObjectId = tostring(DataParsed.NewObjectId), OldObjectId = tostring(DataParsed.OldObjectId) |
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
# add to Ublock Origin -> Your Filters | |
news.ycombinator.com##body:style(background: black) | |
news.ycombinator.com##td:style(color: #fafafa !important) | |
news.ycombinator.com##table:style(background-color: #120F0D) | |
news.ycombinator.com##div.toptext:style(color: #fafafa) | |
news.ycombinator.com##span.c00:style(color: #fafafa !important) | |
news.ycombinator.com##a:style(color: #ffa000 !important) | |
news.ycombinator.com##span#karma:style(color: #faa000 !important) | |
news.ycombinator.com##span.pagetop:style(color: #fafafa !important) |
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
# Define input parameters for the script | |
# .\cleanup.ps1 -exclusionList "SOME_FILE_NOT_TO_REMOVE/FOLDER/FILE.js", "/www/app/Folder2/File9.txt" -rootFolder "/www" -username "FTP_USERNAME" -password "FTP_PASSWORD" | |
param ( | |
[string[]]$exclusionList, # List of files or directories to exclude | |
[string]$rootFolder, # Starting folder from where files will be enumerated | |
[string]$ftpServer = "ftp.by-tres.nl", # FTP server address (default is set) | |
[Parameter(Mandatory=$true)] # Make the username parameter mandatory | |
[string]$username, # FTP server username | |
[Parameter(Mandatory=$true)] # Make the password parameter mandatory | |
[string]$password # FTP server 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
const fs = require('fs'); | |
const jsonString = fs.readFileSync('./assets/trip.json', 'utf8'); | |
// Parse the JSON string into an object | |
const data = JSON.parse(jsonString); | |
const locations = []; |
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
$project = "PROJECT_NAME" | |
try { | |
$repos = az repos list -p $project | ConvertFrom-Json | |
} catch { | |
Write-Host "Failed to fetch repositories for project $project" | |
exit | |
} | |
$results = @() |
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
var keyVaultName = builder.Configuration["KeyVaultName"]; | |
var azureADDirectoryId = builder.Configuration["AzureADDirectoryId"]; | |
var azureADApplicationId = builder.Configuration["AzureADApplicationId"]; | |
var azureADCertThumbprint = builder.Configuration["AzureADCertThumbprint"]; | |
builder.Host.ConfigureAppConfiguration((hostingContext, config) => | |
{ | |
using (var x509Store = new X509Store(StoreLocation.CurrentUser)) | |
{ |
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
# Set the path to your desired output folder | |
$outputFolder = "C:\WSL_Backup" | |
# Create the output folder if it doesn't exist | |
if (!(Test-Path $outputFolder)) { | |
New-Item -ItemType Directory -Path $outputFolder | Out-Null | |
} | |
# Get the current date and time in a format suitable for filenames | |
$date = Get-Date -Format "yyyy-MM-dd_HHmmss" |
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
############################################# | |
# Variables # | |
############################################# | |
# Set the folder path where the YAML files are stored | |
$folderPath = "C:\tres-internet-nuget-umbraco8\.pipelines" | |
# Set the name of the Azure DevOps pipeline folder | |
$azureDevOpsPipelineFolder = "My Pipeline Folder" |
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
# Set the root folder path | |
$rootFolderPath = (Get-Location).Path | |
# Set the nugetType variable | |
$nugetType = "Framework" | |
# Create the .pipelines folder if it doesn't exist | |
$pipelinesFolderPath = Join-Path -Path $rootFolderPath -ChildPath ".pipelines" | |
if (-not (Test-Path -Path $pipelinesFolderPath)) { | |
New-Item -ItemType Directory -Path $pipelinesFolderPath | Out-Null |
NewerOlder