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
@finalfantasia
finalfantasia / fixing_text_anti_aliasing_in_fedora.md
Last active April 20, 2025 19:39
Fixing Text Anti-aliasing in Fedora
  1. Add the RPMFusion repositories (both free and non-free) to the YUM repository directory (/etc/yum.repos.d/):
sudo dnf localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  1. Install the patched version of FreeType with subpixel rendering enabled:
sudo dnf install -y freetype-freeworld
@slfrsn
slfrsn / WordPressUpdatesfromGitHub.md
Last active August 24, 2025 16:00
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) {
@webseo-onilne
webseo-onilne / flatsome3-custom-post-type-support.php
Last active October 30, 2025 22:17
Integrate custom post types into Flatsome 3 page builder application using a child theme; providing: (1.) Page Builder Editor support for custom post types, and (2.) Integration with page builder post element components.
<?php
/**
* Integrate custom post types into Flatsome 3 page builder application using a child theme.
*
* This will provide:
*
* 1. Page Builder Editor support for custom post types
* 2. Integration with page builder post element components
**/
@jelovac
jelovac / README.md
Last active July 16, 2025 02:13
Ubuntu Mate 20.04 XRDP setup

Ubuntu Mate 20.04 XRDP setup

Documenting XRDP setup which worked for me on Ubuntu Mate 20.04.

Some parts are taken from: http://c-nergy.be/blog/?p=14093.

Install xrdp

sudo apt install xrdp
@navarrothiago
navarrothiago / README.md
Last active November 15, 2025 03:55
Turn your smartphone or tablet camera into a WebCam to make video conference in Linux
@allisson
allisson / ubuntu-2204-remove-snap.md
Last active October 11, 2025 21:48
Ubuntu 22.04 remove snap

Remove snaps

sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge core20
sudo snap remove --purge bare
sudo snap remove --purge snapd
@valyakuttan
valyakuttan / vscode-flatpak.md
Last active October 23, 2025 04:01
Fedora Silverblue vscode flatpak configuration

How to configure flatpak version of Visual Studio Code on Fedora Silverblue

1 podman Configuration

  • Create a a file ${HOME}/.config/containers/containers.conf with the following contents:

    
    [containers]
    env = [
    
@lbssousa
lbssousa / Instructions.md
Last active November 5, 2025 00:05
VSCode + Dev Containers and Toolbx/Distrobox setup for Fedora Silverblue

VSCode + Dev Containers and Toolbx/Distrobox setup for Fedora Silverblue

PLEASE NOTE:

I personally don't use Flatpak VSCode anymore, since I switched from Fedora Silverblue to Universal Blue's project Bluefin-DX. I'll leave the instructions here for those who want them, but be aware that Flatpak VSCode instructions won't be maintained anymore.

Steps

If you prefer VSCode Flatpak

  1. Install VSCode Flatpak from Flathub:
@qasedak
qasedak / install_cursor.sh
Last active October 7, 2025 13:09 — forked from Kinyugo/install_cursor.sh
Cursor AI IDE Installer/Updater and Uninstaller Script
#!/bin/bash
# Define variables
APPIMAGE_PATH="/opt/cursor.appimage"
ICON_PATH="/opt/cursor.png"
DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop"
# Determine the shell and RC file
SHELL_NAME=$(basename "$SHELL")