Skip to content

Instantly share code, notes, and snippets.

View us2h's full-sized avatar
🛠️

Konstantin Dedishchev us2h

🛠️
View GitHub Profile
@JabDoesThings
JabDoesThings / BasicCoroutine.lua
Created November 14, 2024 23:30
A basic coroutine example for Project Zomboid.
local IS_PZ = instanceof ~= nil;
-- Create our coroutine by passing a function to execute, from start to finish.
local thread = coroutine.create(function()
local result = 0;
for i = 0, 100, 1 do
-- Perform next pass.
result = result + i;
@kizzx2
kizzx2 / docker-compose.yml
Last active October 9, 2025 20:38
Restart a docker container periodically with docker-compose
version: '3'
services:
app:
image: nginx:alpine
ports: ["80:80"]
restart: unless-stopped
restarter:
image: docker:cli
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active October 2, 2025 09:48
Ansible variable precedence (order, hierarchy)
@jctosta
jctosta / screen_cheatsheet.markdown
Last active November 2, 2025 07:21
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r