Skip to content

Instantly share code, notes, and snippets.

View ahmedsomaa's full-sized avatar
🦊
Better Call Somaa

Ahmed Abu Qahf ahmedsomaa

🦊
Better Call Somaa
View GitHub Profile
#!/bin/bash
installCursor() {
if ! [ -f /opt/cursor/cursor.appimage ]; then
echo "Installing Cursor AI IDE..."
# Check for sudo privileges
if [ "$(id -u)" -ne 0 ]; then
echo "This script needs sudo privileges to install Cursor AI."
echo "Please run with: sudo $0"
@ahmedsomaa
ahmedsomaa / install-obsidian.sh
Created December 5, 2024 13:58
Install Obsidian on Fedora 41
#!/usr/bin/env bash
# see https://forum.obsidian.md/t/gnome-desktop-installer/499
set -euo pipefail
echo "[INFO] $(date +'%Y-%m-%d %H:%M:%S') - Starting Obsidian installation process..."
# Obsidian icon URL (SVG)
icon_url="https://obsidian.md/images/obsidian-logo-gradient.svg"
@ahmedsomaa
ahmedsomaa / font-themes.md
Last active October 1, 2025 15:00
VS Code Favorite Fonts, Theme & Icons
@ahmedsomaa
ahmedsomaa / compress-video.sh
Last active August 24, 2023 20:53
A simple scrript to compress fifa video recordings
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 input_file output_file"
exit 1
fi
input_file="$1"
output_file="$2"
@ahmedsomaa
ahmedsomaa / .prettierrc
Last active August 24, 2023 20:54
Prettier Configuration for VS Code
{
"semi": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 120,
"singleQuote": false,
"bracketSpacing": true,
"jsxSingleQuote": true,
"arrowParens": "always",
"trailingComma": "none",