Skip to content

Instantly share code, notes, and snippets.

View ostermine's full-sized avatar

Andrew Oster ostermine

  • Krasnodar, Russia
View GitHub Profile
@ostermine
ostermine / docker-compose.yml
Created January 7, 2024 00:39
wireguard in docker
version: "2.1"
services:
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE #optional
environment:
- PUID=1000
@ostermine
ostermine / docker-compose.yml
Created November 13, 2023 09:40
postgresql simple docker compose
#es
#configuring pod'es
version: '3.1'
services:
db:
image: postgres
restart: always
environment:
@ostermine
ostermine / docker-compose.yml
Created November 1, 2023 14:09
simple mongo docker compose file
#ES
#POD'ES
version: '3.1'
services:
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
@ostermine
ostermine / gen_loto_card.py
Created October 5, 2023 10:12
gen_loto_card.py
import random
from random import shuffle
import os
import uuid
import time
class Card():
def __init__(self, column_length: int, columns_count: int, total_numbers_count: int):
self.card = []
@ostermine
ostermine / play_video_python_fullscreen.py
Created September 29, 2023 11:20
play_video_python_fullscreen.py
import pygame
import moviepy.editor
file = r"\\share\video.mp4"
screen_info = pygame.display.Info()
pygame.init()
video = moviepy.editor.VideoFileClip(file, target_resolution=(screen_info.current_h,screen_info.current_w),fps_source=25)
video.preview()