Skip to content

Instantly share code, notes, and snippets.

View poseidon-code's full-sized avatar
🔱
Aura : 999999+

Pritam Halder poseidon-code

🔱
Aura : 999999+
View GitHub Profile
@poseidon-code
poseidon-code / add.sh
Last active September 6, 2025 14:51
Offline Debian 13 Mirror
# DataDrive/Repositories/Debian13/Offline/add.sh
#!/usr/bin/env sh
set -e
CODENAME="trixie"
MOUNT_POINT="/run/media/$USER/DataDrive"
REPO_DIR="$MOUNT_POINT/Repositories/Debian13"
cat <<EOF | tee /etc/apt/sources.list.d/local.list
deb [trusted=yes] file://$REPO_DIR/mirror/deb.debian.org/debian $CODENAME main contrib non-free non-free-firmware
@poseidon-code
poseidon-code / add.sh
Created September 6, 2025 14:41
Offline Ubuntu 25.04 Mirror
# DataDrive/Repositories/Ubuntu2504/Offline/add.sh
#!/usr/bin/env sh
set -e
CODENAME="plucky"
MOUNT_POINT="/run/media/$USER/DataDrive"
REPO_DIR="$MOUNT_POINT/Repositories/Ubuntu2504"
cat <<EOF | tee /etc/apt/sources.list.d/local.list
deb [trusted=yes] file://$REPO_DIR/mirror/in.archive.ubuntu.com/ubuntu $CODENAME main restricted universe multiverse
@poseidon-code
poseidon-code / add.sh
Last active September 6, 2025 14:35
Offline Rocky Linux 10 Mirror
# DataDrive/Repositories/Rocky10/Offline/add.sh
#!/usr/bin/env sh
set -e
MOUNT_POINT="/run/media/$USER/DataDrive"
REPO_DIR="$MOUNT_POINT/Repositories/Rocky10"
REPOS=(
baseos
@poseidon-code
poseidon-code / Dockerfile
Created September 15, 2024 04:17
Container Driven Development Environment (CDDE) for Qt6 with Ubuntu 24.04
FROM ubuntu:24.04
RUN apt update \
&& apt upgrade -y \
&& apt install -y build-essential cmake git g++ gdb python3 \
&& apt install -y \
qt6-base-dev qt6-base-doc \
qt6-3d-dev qt6-3d-doc \
qt6-5compat-dev qt6-5compat-doc \
qt6-base-dev qt6-base-doc \
@poseidon-code
poseidon-code / Dockerfile
Created September 15, 2024 04:09
Container Driven Development Environment (CDDE) for GDAL with Ubuntu 24.04
FROM ubuntu:24.04
RUN apt update \
&& apt upgrade -y \
&& apt install -y build-essential cmake git g++ gdb python3 libgdal-dev \
&& apt clean \
&& apt autoremove --purge -y
WORKDIR /root/workspace
@poseidon-code
poseidon-code / terser-minify.sh
Created December 29, 2023 16:49
POSIX compliant shell script using terser to minify multi file & multi directory javascript projects.
#!/usr/bin/env sh
# relative to the current directory from where this script was ran
input_directory="build"
output_directory="dist"
mkdir -p "$output_directory"
# list all files in the input directory with paths relative from the current directory
input_paths=$(find "$input_directory" -type f -printf "$input_directory/%P\n")
@poseidon-code
poseidon-code / Git Setup.md
Created October 23, 2022 15:08
Git Setup for every installation.

Load SSH & GPG Keys

  • Load SSH keys
  • Load GPG keys
  • Test SSH
    ssh -vT git@github.com
  • Test GPG Keys

gpg --list-keys

@poseidon-code
poseidon-code / Load Github Setup.md
Last active July 29, 2025 18:47
Load Old SSH & GPG keys for Github in Linux

Backing Up SSH Keys

  • Upload ~/.ssh/github file to cloud
  • Upload ~/.ssh/github.pub file to cloud

Download Old SSH Keys from Backup

  • Download (private key) github file from cloud
  • Download (public key) github.pub file from cloud
  • Save those files to ~/.ssh/

Enable/Load SSH Keys

@poseidon-code
poseidon-code / pgadmin.md
Created October 3, 2022 15:03
Docker Scripts

Postgres pgAdmin

# docker-compose.yml
version: '3.8'
services:
  pgadmin:
    image: dpage/pgadmin4
    container_name: c_pgadmin
 ports:
@poseidon-code
poseidon-code / Docker Cheat Sheet.md
Created September 16, 2022 16:23
A list of links to best Docker Cheat sheets on internet.