Skip to content

Instantly share code, notes, and snippets.

View saroar's full-sized avatar
🏠
Working from home

Saroar Khandoker saroar

🏠
Working from home
View GitHub Profile
// nginx.conf
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name qvisa.eu;
{% extends 'base.html' %}
{% load widget_tweaks %}
{% block content %}
<br>
<br>
<br>
# Use ARG to define the default application directory, allowing override if needed
ARG APP_DIR=/app1
FROM python:3.9.18-bullseye
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Use the ARG in WORKDIR, setting the working directory
import BSON
import NukeUI
import SwiftUI
import Foundation
import LPGSharedModels
import LocationReducer
import UserDefaultsClient
import ComposableArchitecture
import ComposableCoreLocation
@saroar
saroar / WebSocketVaporServer.swift
Created February 5, 2024 14:30
Vapor 4 Websocket Configuration !
import Vapor
import WebSocketKit
extension Application {
private struct WebsocketClientsKey: StorageKey {
typealias Value = WebsocketClients
}
var wsClients: WebsocketClients {
get {
//
// LearnPlayGrowApp.swift
// LearnPlayGrow
//
// Created by Saroar Khandoker on 20.03.2023.
//
import UIKit
import SwiftUI
import AppView
import AVFoundation
import Contacts
import CoreLocation
import Foundation
import UserNotifications
@DependencyClient
public struct DevicePermissions {
enum PermissionError: Error {
import ComposableArchitecture
import ComposableUserNotifications
import Foundation
import SettingsFeature
import RemoteNotificationsClient
import LPGSharedModels
import UIKit
import os
import NotificationHelpers
import BSON
import SwiftUI
import PhotosUI
import SwiftUIExtension
import ComposableArchitecture
public enum ImageState: Equatable {
public static func ==(lhs: ImageState, rhs: ImageState) -> Bool {
switch (lhs, rhs) {
case (let .loading(lhsString), let .loading(rhsString)):
import Foundation
import ComposableArchitecture
import LPGSharedModels
import BSON
import ComposableCoreLocation
import LocationReducer
import UserDefaultsClient
import SwiftUI
import NukeUI