Skip to content

Instantly share code, notes, and snippets.

@kek-Sec
kek-Sec / k8s-az-theme.omp.json
Last active August 23, 2023 08:45
posh-k8s-az
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#c386f1",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
@kek-Sec
kek-Sec / docker-compose.yml
Created March 6, 2023 08:22
Rabbit Compose
version: "3.7"
services:
rabbitmq:
image: rabbitmq:3.11.1-management
container_name: rabbitmq
hostname: rabbitmq
restart: always
ports:
- 5672:5672
@kek-Sec
kek-Sec / Powershell_Profile.ps1
Created February 24, 2023 08:15
Powershell Profile
#invoke oh-my-posh
oh-my-posh init pwsh --config 'https://gist.githubusercontent.com/kek-Sec/6c5ca377cec9d904a02b59a962a9b351/raw/0006478fc0901b80d8328d291325c0bcbf4774a7/clean-detailed-custom.omp.json' | Invoke-Expression
# Terminal-Icons
Import-Module -Name Terminal-Icons
# tab completion
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# PowerShell parameter completion shim for the dotnet CLI
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
param($commandName, $wordToComplete, $cursorPosition)
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
@kek-Sec
kek-Sec / Dockerfile
Created February 16, 2023 11:51
azure-devops-docker-agent-poc
# escape=`
FROM mcr.microsoft.com/windows/servercore:20H2
# Download channel for fixed install.
ARG CHANNEL_URL=https://aka.ms/vs/16/release/channel
ADD ${CHANNEL_URL} C:\TEMP\VisualStudio.chman
# Download and install Build Tools for Visual Studio.
ADD https://aka.ms/vs/16/release/vs_BuildTools.exe C:\TEMP\vs_buildtools.exe
@kek-Sec
kek-Sec / container_app_app_insights.bicep
Created February 14, 2023 14:15
container app + application insights linking
resource appInsights 'Microsoft.Insights/components@2021-05-01-preview' = {
name: '<your-appinsights-name>'
location: '<location>'
properties: {}
}
resource containerApp 'Microsoft.ContainerInstance/containerGroups@2021-11-01' = {
name: '<your-containerapp-name>'
location: '<location>'
dependsOn: [
@kek-Sec
kek-Sec / nuget.csproj
Created February 3, 2023 08:00
Nuget Naming & Build on Post Build
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<!-- do not run if not release -->
<PropertyGroup>
<IsRelease Condition="'$(Configuration)' == 'Release'">true</IsRelease>
</PropertyGroup>
<!-- place nuget package one folder up from root in a folder called nuget -->
<Exec Command="dotnet pack -c Release -o nuget -p:PackageVersion=$([System.DateTime]::Now.ToString(&quot;yyyy.MM.dd.HHmmss&quot;)) --no-build" Condition="'$(IsRelease)' == 'true'" />
<Message Text="Package created " />
<!-- print build summary -->
@kek-Sec
kek-Sec / subdomain_wordlist.md
Created December 29, 2022 10:37 — forked from cihanmehmet/subdomain_wordlist.md
Subdomain Wordlist
@kek-Sec
kek-Sec / build-and-test-pipeline.yml
Created December 23, 2022 13:58
Azure DevOps - Build and test a .NET 6 project
# .NET 6 Pipeline
# Build and test a .NET 6 project
# Triggers the pipeline on pushes to the master branch
# https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core
trigger:
branches:
include:
- master
# specify the pool for the pipeline
@kek-Sec
kek-Sec / clean-detailed-custom.omp.json
Last active October 13, 2022 13:39
oh-my-posh-detailed-clean-custom
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#FEF5ED",
"foreground": "#011627",
@kek-Sec
kek-Sec / spinner.ts
Created September 6, 2022 10:35
Angular Tailwind Spinner Component
import { Component, Input } from '@angular/core';
@Component({
selector: 'play-components-simple-spinner',
template: `
<div role="status">
<svg
class="inline mr-2 w-{{ width }} h-{{
height
}} text-gray-200 animate-spin dark:text-{{ backColor }}-600 fill-{{