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
@qasedak
qasedak / install_cursor.sh
Last active May 2, 2025 20:36 — 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")
@allisson
allisson / ubuntu-2204-remove-snap.md
Last active September 5, 2024 02:45
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
@jelovac
jelovac / README.md
Last active May 11, 2025 07:34
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
@webseo-onilne
webseo-onilne / flatsome3-custom-post-type-support.php
Last active March 6, 2024 15:58
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
**/
@slfrsn
slfrsn / WordPressUpdatesfromGitHub.md
Last active November 13, 2024 09:40
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) {
@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