Skip to content

Instantly share code, notes, and snippets.

View eliyas5044's full-sized avatar
🏠
Working from home

Eliyas Hossain eliyas5044

🏠
Working from home
View GitHub Profile
@eliyas5044
eliyas5044 / README.md
Last active November 3, 2026 13:06
Bash: add/update ONE GitHub Actions secret on every repo in an org (macOS + Linux)

Set many GitHub Actions secrets from a .env file on every repo in an org

set-org-secrets-from-env.sh reads a dotenv file and adds or updates every secret in it on every repository in a GitHub organization, at repo level or in a named deployment environment. Existing secrets are overwritten, new ones are created.

Only need one secret? See the companion script set-org-secret.sh.

Features

  • Bulk create/update all KEY=value pairs from a .env file
  • Repo-level secrets, or environment secrets with --env production (the environment is created if missing)
@eliyas5044
eliyas5044 / README.md
Last active November 3, 2026 13:05
Bash: add/update ONE GitHub Actions secret on every repo in an org (macOS + Linux)

Set one GitHub Actions secret on every repo in an org

set-org-secret.sh adds or updates one GitHub Actions secret on every repository in a GitHub organization. If the secret already exists it is overwritten; if not, it is created.

Need to push many secrets from a .env file instead? See the companion script set-org-secrets-from-env.sh.

Features

  • Creates or updates the secret on every non-archived repo in the org
  • Prompts for the value silently by default, so it never lands in your shell history
# syntax=docker.io/docker/dockerfile:1.7
# PostgreSQL with PostGIS for ARM64
# Based on official postgres image with PostGIS extension
ARG POSTGRES_VERSION=16
FROM postgres:${POSTGRES_VERSION}-bookworm
# Re-declare build argument for use in labels
ARG POSTGRES_VERSION=16

Keybase proof

I hereby claim:

  • I am eliyas5044 on github.
  • I am eliyas5044 (https://keybase.io/eliyas5044) on keybase.
  • I have a public key ASAXZPs4vk__bH1fdX6NMsPOH7uTCog9fAHFZf7gE40bwwo

To claim this, I am signing this object:

@eliyas5044
eliyas5044 / remove-nginx.md
Created January 16, 2025 06:12
Uninstall Nginx, Let's encrypt from a Ubuntu server

To completely remove NGINX and Let's Encrypt (Certbot) from your Ubuntu server, you'll need to perform a series of steps to ensure that all files, configurations, and dependencies are properly removed.

Here's how to do it:

1. Stop and disable NGINX

Before you remove NGINX, make sure it's stopped and disabled:

sudo systemctl stop nginx
@eliyas5044
eliyas5044 / caddy-django.md
Created November 13, 2024 00:19
Caddy for Django

Caddyfile

  • Update the caddyfile into /etc/caddy/Caddyfile
example.com {
    encode gzip

    # Proxy all requests to the Django app
    reverse_proxy http://127.0.0.1:8000
@eliyas5044
eliyas5044 / laravel-systemd.md
Created October 29, 2024 02:01
Laravel Services with Systemd

Laravel Services with Systemd

This guide outlines how to configure Laravel services with systemd for background tasks like queues and custom commands.

1. Laravel Queue Worker Service

  1. Create the Service File

    Create a service file at /etc/systemd/system/laravel_queue.service. Make sure to adjust the User, Group, and working directory path to match your server configuration.

@eliyas5044
eliyas5044 / caddy-laravel.md
Created October 29, 2024 01:50
Caddy server configuration for a Laravel application

Caddyfile

  • Update the caddyfile into /etc/caddy/Caddyfile
example.com {
	root * /var/www/html/public
	encode gzip
	reverse_proxy /socket/* http://0.0.0.0:8080

	php_fastcgi unix//run/php/php8.3-fpm.sock
@eliyas5044
eliyas5044 / readme.md
Created July 18, 2024 05:37
Deploy Laravel using GitHub action into shared hosting

Storage Folders

  • Create storage folders from terminal
mkdir -p storage/app/public storage/framework/cache storage/framework/cache/data storage/framework/sessions storage/framework/views storage/logs

Let's use the latest version of the in_app_purchase package in Flutter to implement the API integration for getting courses, a single course, and applying promo codes.

Step 1: Add Dependencies

Ensure your pubspec.yaml file includes the latest in_app_purchase package:

dependencies:
  flutter:
    sdk: flutter
  in_app_purchase_storekit: ^0.3.0
  http: ^0.13.3