Skip to content

Instantly share code, notes, and snippets.

View ClimenteA's full-sized avatar
👋
Hi! Let's connect on LinkedIn/X!

Alin Climente ClimenteA

👋
Hi! Let's connect on LinkedIn/X!
View GitHub Profile
@ClimenteA
ClimenteA / view_enums_in_postgress.sql
Created March 27, 2025 09:36
How to view enum types in postgresql
SELECT * FROM pg_type
SELECT pg_type.typname AS enumtype,
pg_enum.enumlabel AS enumlabel
FROM pg_type
JOIN pg_enum
ON pg_enum.enumtypid = pg_type.oid;
@ClimenteA
ClimenteA / calculate_monthly_rate_based_on_working_days_and_vacation.py
Last active May 1, 2025 08:20
Freelance calculator - Calculate monthly rate based on working days and vacation
year = int(input("Invoice year: "))
month = int(input("Invoice month: "))
monthly_rate = float(input("Monthly rate: "))
print(
f"\nYou can verify working days here: https://romania.workingdays.org/workingdays_calendar_{year}_{month}.htm"
)
working_days = int(input("Working days: "))
legal_holidays = int(input("Legal holidays if they are not in weekend: "))
vacation_days = int(input("Vacation days: "))
@ClimenteA
ClimenteA / Sony_SRS_XB100.md
Last active May 19, 2025 09:04
Sony SRS-XB100 - Ubuntu Microphone Setup
#!/bin/bash

# systemctl --user restart wireplumber pipewire pipewire-pulse

# Change this to match your device alias (as shown in `pactl list cards`)