Skip to content

Instantly share code, notes, and snippets.

@wolph
wolph / aida64_prometheus_exporter.py
Last active May 29, 2024 07:54
This prometheus exports all of your AIDA64 data to a Prometheus server so you can chart all of them using Grafana: https://grafana.com/grafana/dashboards/11339
import re
import mmap
import typing
import hashlib
import logging
import argparse
import datetime
import ipaddress
import dataclasses
import xml.etree.cElementTree as ET
@JoaoCarabetta
JoaoCarabetta / README.md
Last active August 24, 2024 11:16
Add Time Based Glue Partitions with Lambda AWS

Creates time based Glue partitions given time range.

Keep in mind that you don't need data to add partitions. So, you can create partitions for a whole year and add the data to S3 later.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 19, 2025 13:34
Conventional Commits Cheatsheet
@MIvanchev
MIvanchev / article.md
Last active May 24, 2025 14:52
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active June 19, 2025 05:03
set -e, -u, -o, -x pipefail explanation
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active June 18, 2025 09:02
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@anapsix
anapsix / rmq_passwd_hash.py
Created May 22, 2018 19:33
generate RabbitMQ compatible SHA256 password hash
#!/usr/bin/env python
# details on rabbitMQ password hashing
# https://www.rabbitmq.com/passwords.html#computing-password-hash
from __future__ import print_function
import base64
import os
import hashlib
import struct
import getpass
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 18, 2025 19:12
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@nicolasdao
nicolasdao / open_source_licenses.md
Last active June 12, 2025 20:47
What you need to know to choose an open source license.
@deehzee
deehzee / psycopg2_sshtunnel.py
Last active January 16, 2025 15:22
How to Connect To PostgreSQL Using SSHTunnelForwarder and Psycopg2
import psycopg2
from sshtunnel import SSHTunnelForwarder
# For interactive work (on ipython) it's easier to work with explicit objects
# instead of contexts.
# Create an SSH tunnel
tunnel = SSHTunnelForwarder(
('128.199.169.188', 22),
ssh_username='<username>',