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
$directory = "E:\DCIM\100GOPRO" | |
$rootFiles = Get-ChildItem -Path $directory -Filter "GOPR*.MP4" | Sort-Object | |
$suffixes = $rootFiles | ForEach-Object { $_.BaseName.Substring($_.BaseName.Length - 4) } | |
$groups = $suffixes | ForEach-Object { | |
$suffix = $_ | |
$group = Get-ChildItem -Path $directory -Filter "*$suffix*.MP4" | Sort-Object | |
[PSCustomObject]@{ | |
Suffix = $suffix | |
Group = $group |
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
# Make an HTTP call to whatsprintisit.com to get the current sprint number | |
# and update the package.json files in the Tasks folder to use the correct | |
# Get the current sprint number | |
$res = Invoke-RestMethod -Headers @{"Accept" = "application/json" } -Uri "https://whatsprintisit.com" | |
$currentSprint = $res.sprint | |
# Find all directories under the Tasks folder | |
$tasks = Get-ChildItem -Path .\Tasks -Directory -Recurse |
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
[Unit] | |
Description=Microsoft Identity Device Broker Service | |
[Service] | |
User=microsoft-identity-broker | |
Group=microsoft-identity-broker | |
Type=dbus | |
BusName=com.microsoft.identity.devicebroker1 | |
RuntimeDirectory=microsoft-identity-device-broker |
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 Registry; | |
var registryHive = new RegistryHive("/tmp/nanoserver/layer/Files/Windows/System32/config/SOFTWARE"); | |
registryHive.ParseHive(); | |
var currentVersion = registryHive.GetKey(@"Microsoft\Windows NT\CurrentVersion"); | |
var fullVersion = | |
$"{currentVersion.GetValue("CurrentMajorVersionNumber")}.{currentVersion.GetValue("CurrentMinorVersionNumber")}.{currentVersion.GetValue("CurrentBuildNumber")}.{currentVersion.GetValue("UBR")}"; | |
Console.WriteLine(fullVersion); |
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
{ | |
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | |
"extends": ["config:base"], | |
"lockFileMaintenance": { | |
"enabled": true, | |
"extends": ["schedule:daily"] | |
}, | |
"nix": { | |
"enabled": true | |
} |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"name": "3fd", | |
"version": "2.6.3", | |
"port-version": 2, | |
"description": "C++ Framework For Fast Development", | |
"supports": "windows & !static & !arm64", | |
"dependencies": [ | |
{ | |
"name": "boost-lockfree", |
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
$ npm install @angular/animations --verbose | |
npm verb cli [ | |
npm verb cli '/usr/bin/node', | |
npm verb cli '/usr/sbin/npm', | |
npm verb cli 'install', | |
npm verb cli '@angular/animations', | |
npm verb cli '--verbose' | |
npm verb cli ] | |
npm info using [email protected] | |
npm info using [email protected] |
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 Octokit.Webhooks; | |
using Octokit.Webhooks.Events; | |
using Octokit.Webhooks.Events.IssueComment; | |
public sealed class MyWebhookEventProcessor : WebhookEventProcessor | |
{ | |
private readonly ILogger<MyWebhookEventProcessor> logger; | |
public MyWebhookEventProcessor(ILogger<MyWebhookEventProcessor> logger) |
NewerOlder