Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@fmos
fmos / cert_check.py
Created June 27, 2025 16:16
Check and understand SSL certificate handling/trust by Python
#!/usr/bin/env python3
import ssl
import socket
import os
import argparse
import subprocess
import tempfile
from datetime import datetime
"""
Markdown List Splitter
This script parses a Markdown file containing lists (ordered or unordered)
and extracts the content of the leaf nodes from the list structure. It then
generates hierarchical, indented chunks based on the list nesting and prints
them to the console.
### Features:
- **Markdown Parsing**: Uses `markdown-it-py` to tokenize the markdown content.
@fmos
fmos / playbook-ghost.yaml
Created March 14, 2024 20:09
Ansible playbook to set up Ghost behind an NGINX reverse proxy using auto-updating rootless Podman cointainers
---
- name: Set up Ghost behind an NGINX reverse proxy using Podman
hosts: all
vars:
homedir: /srv/podman
tld: example.com
certmail: [email protected]
tasks:
@fmos
fmos / i3rofi
Created September 3, 2015 13:48
wrapper script to open rofi on the focused i3 workspace
#!/bin/sh
# wrapper script to open rofi on the focused i3 workspace
rofi -m $(i3-msg -t get_outputs | jq '.[] | select(.active) | .name' | awk "/`i3-msg -t get_workspaces | jq '.[] | select(.focused) | .output'`/ { print FNR-1 }") $@
@fmos
fmos / keybase.md
Created August 8, 2014 19:04
keybase.md

Keybase proof

I hereby claim:

  • I am fmos on github.
  • I am fmos (https://keybase.io/fmos) on keybase.
  • I have a public key whose fingerprint is 24C4 22BA B08E DFAF C019 54C3 DF74 9B35 73B8 D7AD

To claim this, I am signing this object:

@fmos
fmos / zotonic_install.patch
Created June 3, 2012 13:08
Zotonic install patch for Ubuntu 12.04
diff -r 4bf7ab502dbd zotonic_install
--- a/zotonic_install Mon Sep 05 15:05:57 2011 +0200
+++ b/zotonic_install Sun Jun 03 15:06:40 2012 +0200
@@ -3,6 +3,7 @@
SHELL=/bin/bash && \
apt-get install -y \
erlang \
+ erlang-src \
build-essential \
rake \