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
.header .logo {
padding: 20px 20px 0px 0px;
margin: 0px 0px 0px 20px;
border-left: 1px solid var(--clp-border-color);
border-right: unset;
}
.header .navbar-right {
padding: 0px 40px 0px 0px;
}
@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) {
@yasershahi
yasershahi / ubuntu-server-post-install.md
Last active March 16, 2025 06:06
Ubuntu Server Initial Setup

Server Setup Instructions

Login via SSH

ssh root@IP
# enter password and hit Return
@yasershahi
yasershahi / Docker-Ubuntu-Server.md
Last active December 24, 2024 17:28
Install Docker on Ubuntu Server

Note: Before proceeding with the installation, it's recommended to perform some post-installation steps on your server. You can find the details in this gist.

Run the following command to uninstall all conflicting packages:

for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done

Set up Docker's apt repository.

@yasershahi
yasershahi / wpcs-vscode.md
Created December 22, 2024 19:22
WordPress Coding Standards in VS Code

You need Composer on your system: Install

Install WordPessCS

CD to your project root and run:

composer require --dev wp-coding-standards/wpcs
@yasershahi
yasershahi / theme.json
Created January 6, 2025 17:41
A Simple theme.json File of a WordPress Theme
{
"settings": {
"appearanceTools": true,
"blocks": {
"core/image": {
"appearanceTools": true,
"color": {
"background": true,
"custom": true,
"customDuotone": true,
@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 / better-fonts-dark-theme.md
Last active April 1, 2025 21:04
بهینه‌سازی رندرینگ فونت فدورا لینوکس برای تم دارک و مانیتورهای معمولی

Notes are for a X post!

Symlinks

sudo ln -fs /usr/share/fontconfig/conf.avail/10-autohint.conf /etc/fonts/conf.d

sudo ln -fs /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d

Stem Darkening