Skip to content

Instantly share code, notes, and snippets.

View dusansimic's full-sized avatar
🫠
Working 3.5 jobs at the moment

Dušan Simić dusansimic

🫠
Working 3.5 jobs at the moment
View GitHub Profile
@dusansimic
dusansimic / openpgp.md
Created August 15, 2020 13:49
My Keyoxide verification
@dusansimic
dusansimic / podman-is-healthy.py
Created January 6, 2023 12:10
Python script for checking podman container health
#!/usr/bin/python3
import subprocess
import sys
import json
# command for gathering health information
# there are no checks and user is expected to pass valid information
# if container id is incorrect, script will return status code 1
command = ['podman', 'inspect', '--format', '\'{{.State.Health.Status}}\'', sys.argv[1]]
@dusansimic
dusansimic / debug-electron.json
Created May 1, 2023 12:27
launch configuration for vscode for debugging electron applications
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
class Colors:
RESET = "\033[0m"
BOLD = "\033[01m"
DISABLE = "\033[02m"
UNDERLINE = "\033[04m"
REVERSE = "\033[07m"
STRIKETHROUGH = "\033[09m"
INVISIBLE = "\033[08m"
class Foreground: