Skip to content

Instantly share code, notes, and snippets.

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

Yaser Shahi yasershahi

🏠
Working from home
View GitHub Profile
@yasershahi
yasershahi / traefik_podman.md
Created January 18, 2025 19:22 — forked from siwonpawel/traefik_podman.md
How to run traefik with podman

This document is a step-by-step documentation for running Traefik proxy with Podman.

Presequisets

  • installed Podman and podman-compose
  • Insomnia, Postman or curl for testing
  • verify you are able to run containers with command podman run hello-world
@yasershahi
yasershahi / WordPressUpdatesfromGitHub.md
Created February 3, 2024 16:44 — forked from slfrsn/WordPressUpdatesfromGitHub.md
Automatic WordPress theme updates from a GitHub repository using the native WordPress update system.

WordPress Theme Updates from GitHub

Adding automatic theme updates from a GitHub repository is actually pretty simple. The following function will hook into WordPress's native update system and grab the latest release from the repo of your choosing (if the version number has increased).

Place the following in your functions.php

// Automatic theme updates from the GitHub repository
add_filter('pre_set_site_transient_update_themes', 'automatic_GitHub_updates', 100, 1);
function automatic_GitHub_updates($data) {