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
[wsl2] | |
networkingMode=mirrored |
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
*/5 * * * * /home/isaac/scripts/restart-jdl.sh >> /home/isaac/scripts/restart-jdl.log 2>&1 |
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
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build-env | |
WORKDIR /App | |
# Copy everything | |
COPY . ./ | |
# Restore as distinct layers | |
RUN dotnet restore | |
# Build and publish a release | |
RUN dotnet publish -c Release -o out |
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
@page "/Account/Manage" | |
@using System.ComponentModel.DataAnnotations | |
@using Microsoft.AspNetCore.Identity | |
@using Scheduler.Data | |
@inject UserManager<ApplicationUser> UserManager | |
@inject SignInManager<ApplicationUser> SignInManager | |
@inject IdentityUserAccessor UserAccessor | |
@inject IdentityRedirectManager RedirectManager |
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
STACK_VERSION=8.2.0-8ea0c40f | |
ELASTIC_PASSWORD=changeme | |
KIBANA_PASSWORD=changeme | |
ES_PORT=9200 | |
CLUSTER_NAME=es-cluster | |
LICENSE=basic | |
MEM_LIMIT=1073741824 | |
KIBANA_PORT=5601 | |
ENTERPRISE_SEARCH_PORT=3002 | |
ENCRYPTION_KEYS=secret |
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 Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Http.Features; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Threading.Tasks; |
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
var credential = new AzureCliCredential(); | |
ArmClient armClient = new ArmClient(credential); | |
var subscriptions = armClient.GetSubscriptions(); | |
var sub = subscriptions.Where(a => a.Data.SubscriptionGuid == mySubId).FirstOrDefault(); | |
var creds = new AzureIdentityFluentCredentialAdapter(sub.Data.TenantId, AzureEnvironment.AzureGlobalCloud); | |
// fails here | |
var websites = await Azure.Authenticate(creds) | |
.WithSubscription(sub.Data.DisplayName) | |
.WebApps.ListByResourceGroupAsync(rgName); |
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 Microsoft.AspNetCore.Authentication | |
@model TrafficViewModel | |
<div class="demo-section k-content wide"> | |
@(Html.Kendo().Chart(Model.CloneSummary.Clones) | |
.Name("chart") | |
.Title("Internet Users in United States") | |
.Legend(legend => legend.Visible(false)) | |
.Series(series => { |
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; | |
using System; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
namespace UpdateGitHub | |
{ | |
class Program | |
{ |
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
System.Diagnostics.Process process = new System.Diagnostics.Process(); | |
string WorkingDirectoryInfo = @"D:\home\site\wwwroot\"; | |
string ExeLocation = @"D:\home\site\wwwroot\gitWork.cmd"; | |
Process proc = new Process(); | |
ProcessStartInfo info = new ProcessStartInfo(); | |
try | |
{ | |
info.WorkingDirectory = WorkingDirectoryInfo; | |
info.FileName = ExeLocation; |
NewerOlder