Skip to content

Instantly share code, notes, and snippets.

View mdyusufalam's full-sized avatar

Md Yusuf Mia mdyusufalam

View GitHub Profile
@mdyusufalam
mdyusufalam / Check-Table-Size-Postgresql
Created October 28, 2023 07:38
How to get the table sixe in postgresql
SELECT
table_name,
pg_size_pretty(table_size) AS table_size,
pg_size_pretty(indexes_size) AS indexes_size,
pg_size_pretty(total_size) AS total_size
FROM (
SELECT
table_name,
pg_table_size(table_name) AS table_size,
pg_indexes_size(table_name) AS indexes_size,
@mdyusufalam
mdyusufalam / How to set custom resolution in ubuntu
Created October 31, 2023 08:00
How to set custom resolution in ubuntu
Ref: https://www.tecmint.com/set-display-screen-resolution-in-ubuntu/
//Add mode by running below command then replace value after xrandr --newmode in step 2 generated by the command 1
1. cvt 1920 1080
2. xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
3. xrandr --addmode eDP-1 "1920x1080_60.00"
4. then go to display and select the newly created resolution from ui