Skip to content

Instantly share code, notes, and snippets.

View atrakic's full-sized avatar

Admir Trakic atrakic

  • UTC+1
View GitHub Profile
@atrakic
atrakic / Example.cs
Created December 2, 2025 20:50 — forked from admir-live/Example.cs
Example
1. Install or Update EF Core CLI
dotnet tool install --global dotnet-ef
2. Update Your DbContext
In your DbContext class, use the IsTemporal method to configure the entity as a temporal table.
using Microsoft.EntityFrameworkCore;
using System;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multi Time Zone Digital Clock</title>
<style>
body { font-family: 'Roboto Mono', 'monospace', sans-serif; background: #222; color: #fff; margin: 0; padding: 2em;}
.clock-container { display: flex; flex-wrap: wrap; gap: 2em; }
.clock-box { background: #333; padding: 1em 2em; border-radius: 1em; box-shadow: 0 2px 8px #1119;}
.zone-name { font-size: 1.1em; font-weight: bold; margin-bottom: 0.5em;}
{
"@context": [
"https://schema.org",
{
"csvw": "https://www.w3.org/ns/csvw#",
"dcat": "http://www.w3.org/ns/dcat#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"dc": "http://purl.org/dc/terms/"
@atrakic
atrakic / swagger-yaml-to-html.py
Created November 14, 2025 21:48 — forked from oseiskar/swagger-yaml-to-html.py
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
#
# Copyright 2017 Otto Seiskari
# Licensed under the Apache License, Version 2.0.
# See http://www.apache.org/licenses/LICENSE-2.0 for the full text.
#
# This file is based on
# https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0)
#
@atrakic
atrakic / cloud-init.yaml
Created November 12, 2025 16:16 — forked from NatElkins/cloud-init.yaml
cloud-init script for VPS
#cloud-config
# Enable automatic package updates and upgrades during cloud-init execution
package_update: true
package_upgrade: true
packages:
# Security and Hardening
- ufw
- fail2ban
@atrakic
atrakic / Dockerfile
Created October 5, 2025 17:06 — forked from dirien/Dockerfile
Heredoc Golang Dockerfile
# syntax=docker/dockerfile:1.4.1
FROM golang:1.19 AS build
COPY <<EOF main.go
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello Distroless-World")
@atrakic
atrakic / prd.md
Created August 8, 2025 09:29 — forked from burkeholland/prd.md
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.inclouds.space</string>
<key>ProgramArguments</key>
<array>