artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
.editorconfig
ARG UBUNTU_RELEASE=22.04
ARG ARCH
# Build the chiselled filesystem based on the desired slices.
FROM ubuntu:$UBUNTU_RELEASE AS builder
ARG UBUNTU_RELEASE
ARG ARCH
# Get chisel binary
FROM rust:1.74.1 as APP_PLANNER
WORKDIR /usr/local/src
RUN cargo install cargo-chef
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
FROM rust:1.74.1 as APP_CACHER
WORKDIR /usr/local/src
RUN cargo install cargo-chef
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 ErrorOr; | |
using Microsoft.AspNetCore.Mvc; | |
using ZiggyCreatures.Caching.Fusion; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Services.AddEndpointsApiExplorer(); | |
builder.Services.AddSwaggerGen(); | |
var redisConnectionString = builder.Configuration.GetValue<string>("RedisCachingConnectionString"); |
docker run --name adguardhome\
--restart unless-stopped\
-v /my/own/workdir:/opt/adguardhome/work\
-v /my/own/confdir:/opt/adguardhome/conf\
-p 53:53/tcp -p 53:53/udp\
-p 67:67/udp -p 68:68/udp\
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp\
-p 853:853/tcp\
-p 784:784/udp -p 853:853/udp -p 8853:8853/udp\
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
################################################## | |
# Write a title summarizing what this commit does. | |
# Start with an uppercase imperative verb, such as | |
# Add, Drop, Fix, Refactor, Bump; see ideas below. | |
# Think of your title as akin to an email subject, | |
# so you don't need to end with a sentence period. | |
# Use 50 char maximum, which is this line's width. | |
################################################## | |
Add your title here |
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
ls – The most frequently used command in Linux to list directories | |
pwd – Print working directory command in Linux | |
cd – Linux command to navigate through directories | |
mkdir – Command used to create directories in Linux | |
mv – Move or rename files in Linux | |
cp – Similar usage as mv but for copying files in Linux | |
rm – Delete files or directories | |
touch – Create blank/empty files | |
ln – Create symbolic links (shortcuts) to other files | |
cat – Display file contents on the terminal |
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
<?xml version="1.0" encoding="utf-8"?> | |
<RuleSet Name="Custom Rulset" Description="Custom Rulset" ToolsVersion="14.0"> | |
<Rules AnalyzerId="AsyncUsageAnalyzers" RuleNamespace="AsyncUsageAnalyzers"> | |
<Rule Id="UseConfigureAwait" Action="Warning" /> | |
</Rules> | |
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> | |
<Rule Id="CA1001" Action="Warning" /> | |
<Rule Id="CA1009" Action="Warning" /> | |
<Rule Id="CA1016" Action="Warning" /> | |
<Rule Id="CA1033" Action="Warning" /> |
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 | |
$global:DefaultUser = [System.Environment]::UserName | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Import-Module 'terminal-icons' | |
#Set-PoshPrompt -Theme slim | |
Set-PoshPrompt -Theme ~/Documents/PowerShell/blue-owl.omp.json | |
#Set-PoshPrompt -Theme ~/Documents/PowerShell/ohmyposh.json |