Skip to content

Instantly share code, notes, and snippets.

View cumulus13's full-sized avatar
💭
I'm an Expert

cumulus13 cumulus13

💭
I'm an Expert
  • cumulus13
  • singapore
View GitHub Profile
@cumulus13
cumulus13 / png2ico.py
Created December 22, 2025 10:33
Convert png to ico image with multiple sizes.
#!/usr/bin/env python3
# File: png2ico.py
# Author: Hadi Cahyadi <cumulus13@gmail.com>
# Date: 2025-12-22
# Description: Convert png to ico image with multiple sizes.
# License: MIT
from pathlib import Path
@cumulus13
cumulus13 / dprune.py
Created December 22, 2025 09:25
Prune Docker images with 'None' tag.
#!/usr/bin/env python3
#File: dprune.py
## Author: Hadi Cahyadi <cumulus13@gmail.com>
# Date: 2025-12-22
# Description: Prune Docker images with 'None' tag.
# License: MIT
import subprocess
from rich.console import Console
@cumulus13
cumulus13 / langdet.py
Created December 22, 2025 08:55
Detection human language except for english
#!/usr/bin/env python3
# File: langdet.py
# Author: Hadi Cahyadi <cumulus13@gmail.com>
# Date: 2025-12-22
# Description: Detection human language except for english
# License: MIT
import sys
import os
import argparse
@cumulus13
cumulus13 / pathx.bat
Created December 18, 2025 11:45
set windows os environmen path batch script to temporary or permanent
:: File: pathx.bat
:: Author: Hadi Cahyadi <cumulus13@gmail.com>
:: Date: 2025-12-18
:: Description:
:: License: MIT
@echo off
chcp 65001 >nul
:: Define ANSI color codes with proper escape character
@cumulus13
cumulus13 / mp4togif.bat
Last active December 22, 2025 09:17
MP4 to GIF with FFMPEG
:: File: mp4togif.bat
:: Author: Hadi Cahyadi <cumulus13@gmail.com>
:: Date: 2025-12-22
:: Description:
:: License: MIT
@echo off
setlocal
:: --- Mandatory Input Checking ---
@cumulus13
cumulus13 / tr.py
Last active September 20, 2025 07:39
simple language translator
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: Hadi Cahyadi (Enhanced with async/await)
# email: cumulus13@gmail.com
import sys
import asyncio
import clipboard
import os
import aiohttp
@cumulus13
cumulus13 / logo.py
Last active August 27, 2025 03:59
Logo generator use 'art'
#!/usr/bin/env python3
# Author: Hadi Cahyadi <cumulus13@gmail.com>
# Date: 2025-08-27 10:18:57.533760
# Description: Create ascitext Logo
# License: MIT
import art
from licface import makelist, CustomRichHelpFormatter
import argparse
import sys
@cumulus13
cumulus13 / mk.py
Last active August 9, 2025 09:03
Show markdown with colors, custom lexer or theme
#!/usr/bin/env python
from rich.console import Console, JustifyMethod
from rich.markdown import Markdown
from rich.theme import Theme
from licface import CustomRichHelpFormatter
from argparse import ArgumentParser
import sys
import os
import clipboard
@cumulus13
cumulus13 / lexer.py
Last active August 9, 2025 09:00
Show and filter/search lexer
#!/usr/bin/env python
#author: Hadi Cahyadi (cumulus13@gmail.com)
#license: MIT
from pygments.lexers import get_all_lexers
from rich.console import Console
console = Console()
def show_all_lexers():