Skip to content

Instantly share code, notes, and snippets.

@MauzerMeelk
MauzerMeelk / pytest.md
Created October 2, 2025 21:40 — forked from kwmiebach/pytest.md
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help:

@MauzerMeelk
MauzerMeelk / db_feeder_with_faker.py
Created September 24, 2025 22:49 — forked from bmillemathias/db_feeder_with_faker.py
An example how to use Faker python library to create fake data and inject them in a mysql database
#!/usr/bin/env python
# an example how to use Faker to create fake data and inject them
# in a mysql database
import time
import os
import mysql.connector
from mysql.connector import Error
from faker import Faker
@MauzerMeelk
MauzerMeelk / alias_eza.md
Created September 4, 2025 17:01 — forked from AppleBoiy/alias_eza.md
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

@MauzerMeelk
MauzerMeelk / newcert.py
Created August 29, 2025 13:49 — forked from Zeerg/newcert.py
Python script to generate CSR/Self Signed Cert. Needs pyOpenssl and python-whois
#!/usr/bin/python
from OpenSSL import crypto
import os
import sys
import datetime
import whois
#Variables
TYPE_RSA = crypto.TYPE_RSA
TYPE_DSA = crypto.TYPE_DSA
@MauzerMeelk
MauzerMeelk / create_cert.yml
Created August 6, 2025 23:10 — forked from JonTheNiceGuy/create_cert.yml
A simple ansible playbook to create a new self-signed certificate
---
- hosts: localhost
vars:
- dnsname: your.dns.name
- tmppath: "./tmp/"
- crtpath: "{{ tmppath }}{{ dnsname }}.crt"
- pempath: "{{ tmppath }}{{ dnsname }}.pem"
- csrpath: "{{ tmppath }}{{ dnsname }}.csr"
- pfxpath: "{{ tmppath }}{{ dnsname }}.pfx"
- private_key_password: "password"
@MauzerMeelk
MauzerMeelk / generate_ssl_keys_csr_certificates.yml
Created August 6, 2025 23:06 — forked from klo2k/generate_ssl_keys_csr_certificates.yml
Ansible: Generate key, CSR, self-signed certificate with self-signed CA (simulate real-world process)
---
# Playbook generates key, CSR and self-signed SSL certificates for CA and domain of interest
#
# To run (replace with your own values):
# ```
# ansible-playbook \
# --extra-vars 'cert_common_name=domain.example.com' \
# --extra-vars '{"cert_subject_alt_name":["DNS:*.example.com","DNS:*.subdomain.example.com"]}' \
# generate_ssl_keys_csr_certificates.yml
# ```

Description

A script that on a proxmox node, will list the ip addresses of running virtual machines.

Pre-requisites

install required packages :

apt-get install net-tools arp-scan
@MauzerMeelk
MauzerMeelk / .gitconfig
Created July 19, 2025 21:38 — forked from MattSeen/.gitconfig
These are a series of the Git alias I use on use on a daily basis. I have included references to the places where I have found each one to give the authors due credit.
[alias]
# Source: http://stackoverflow.com/questions/7066325/how-to-list-show-git-aliases#answer-7067489
# Found on stackoverflow list all available aliases ==
alias = config --get-regexp '^alias.*'
s = status
ss = status --short
ssb = status --short --branch
co = commit
@MauzerMeelk
MauzerMeelk / Book.md
Created July 10, 2025 21:55 — forked from robconery/Book.md
Obsidian Bujo Templates
title description author created updated
{{title}}
{{description}}
{{author}}
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}

cover|150