Skip to content

Instantly share code, notes, and snippets.

View gridhead's full-sized avatar
🚀
Underpromise and overdeliver

Akashdeep Dhar gridhead

🚀
Underpromise and overdeliver
View GitHub Profile
@gridhead
gridhead / README.md
Created December 2, 2025 07:38
Migrating Attachments From GitLab To Forgejo After Migration

GitLab to Forgejo Attachment Migrator

This script migrates attachments from GitLab issues to their corresponding Forgejo issues, addressing the limitation in Forgejo's GitLab importer that doesn't handle attachments.

Problem Solved

The standard Forgejo GitLab importer only imports metadata (issues, comments, etc.) but does not import attachments. This leaves issues with broken image links and missing files, making visual content unusable after migration.

How It Works

@gridhead
gridhead / packlist
Last active June 21, 2025 06:35
Minimal Package List On CentOS Stream 10
alternatives
attr
audit
audit-libs
audit-rules
authselect
authselect-libs
basesystem
bash
bzip2-libs
@gridhead
gridhead / starship.toml
Last active May 8, 2025 05:50
Catppuccin Mono
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[ ](bg:mono)\
$os\
$username\
[ ](bg:mono fg:mono)\
[](bg:back fg:mono)\
$directory\
[](bg:mono fg:back)\
@gridhead
gridhead / haproxy.cfg
Created March 26, 2024 17:19
Haproxy Configuration
#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# https://www.haproxy.org/download/1.8/doc/configuration.txt
#
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# Global settings
@gridhead
gridhead / output
Created September 2, 2023 12:25
Playing around with Systemd Mkosi - Part I - OUTPUT
‣ Removing output files…
‣ Building default image
‣ Mounting image…
‣ Installing Fedora
fedora 1.3 MB/s | 73 MB 00:54
updates 464 kB/s | 1.7 MB 00:03
Last metadata expiration check: 0:00:17 ago on Sat Sep 2 17:48:56 2023.
Dependencies resolved.
======================================================================================================================
Package Architecture Version Repository Size
@gridhead
gridhead / mkosi.conf
Last active September 2, 2023 12:24
Playing around with Systemd Mkosi - Part I - CONFIG
[Distribution]
Distribution=fedora
Release=40
Architecture=arm64
Bootable=yes
[Output]
Format=disk
Output=fedogrid
# CompressOutput=yes
@gridhead
gridhead / centgrid-mkosi.conf
Last active August 25, 2023 05:26
Messing Around With Building Images
# Download the file to a local directory
# Rename the file to `mkosi.conf`
# Run `sudo mkosi build` in that directory
# mkosi 15.1 on fedora rawhide (i.e. 40) works the best
[Distribution]
Distribution=centos
Release=9
Architecture=x86-64
Bootable=yes
@gridhead
gridhead / namelist
Last active July 10, 2023 12:48
namelist
sumantrom
@gridhead
gridhead / certlist.yml
Created May 26, 2023 10:06
Certificates Registry
alt-src.stg:
certstat:
cstarted: true
cstopped: false
daystobt: -249
daystodd: 576
issuauth: RabbitMQ STAGING CA
serialno: 170603833244991530163638693876111070679
stopdate: 2024-12-22 23:08:02
strtdate: 2022-09-19 23:08:02
[centvirt-main@centvirt-main ~]$ rpm -qa
crypto-policies-20221215-1.git9a18988.el9.noarch
libreport-filesystem-2.15.2-6.el9.noarch
dnf-data-4.14.0-4.el9.noarch
gawk-all-langpacks-5.1.0-6.el9.x86_64
python3-setuptools-wheel-53.0.0-12.el9.noarch
publicsuffix-list-dafsa-20210518-3.el9.noarch
pcre2-syntax-10.40-2.el9.noarch
ncurses-base-6.2-8.20210508.el9.noarch
libssh-config-0.10.4-8.el9.noarch