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
#!/bin/bash
set -euo pipefail
echo "🔍 Detecting architecture..."
ARCH=$(uname -m)
case "$ARCH" in
x86_64) ARCH_NAME="amd64" ;;
aarch64) ARCH_NAME="arm64" ;;
*) echo "❌ Unsupported architecture: $ARCH"; exit 1 ;;
esac
@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")
@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:
@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 = [
    
@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
@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
@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
@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
**/
@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) {