Skip to content

Instantly share code, notes, and snippets.

View samariafar's full-sized avatar

Sam Ariafar samariafar

View GitHub Profile
@samariafar
samariafar / acer-a5-webcam-fix.sh
Last active June 5, 2026 19:39
Patch UVC Kernel Driver for Acer Aspire 5 Webcam
#!/usr/bin/env bash
#
# Patch UVC Kernel Driver for Acer Aspire 5 Webcam
#
# ╔════════════════════════════════════════════════════════════════╗
# ║ Copyright © 2024 Sam Ariafar. Published under the MIT License. ║
# ╚════════════════════════════════════════════════════════════════╝
# shellcheck disable=SC2046,SC2086
@samariafar
samariafar / proxmox-ubuntu-cloud-init-template.sh
Last active June 5, 2026 19:38
Create Ubuntu Cloud-Init Template on Proxmox VE
#!/usr/bin/env bash
#
# Create Ubuntu Cloud-Init Template on Proxmox VE
#
# ╔════════════════════════════════════════════════════════════════╗
# ║ Copyright © 2024 Sam Ariafar. Published under the MIT License. ║
# ╚════════════════════════════════════════════════════════════════╝
set -euo pipefail
@samariafar
samariafar / jetbrains-ubuntu-24-later-fix.sh
Last active June 5, 2026 19:38
Fix JetBrains IDEs Crashing on Ubuntu 24.04 and Later
#!/usr/bin/env bash
#
# Fix JetBrains IDEs Crashing on Ubuntu 24.04 and Later
#
# ╔════════════════════════════════════════════════════════════════╗
# ║ Copyright © 2024 Sam Ariafar. Published under the MIT License. ║
# ╚════════════════════════════════════════════════════════════════╝
set -euo pipefail
@samariafar
samariafar / cloudflare-warp-ubuntu-23-later-installer.sh
Last active June 5, 2026 19:37
Install Cloudflare WARP Client on Ubuntu 23.04 and Later
#!/usr/bin/env bash
#
# Install Cloudflare WARP Client on Ubuntu 23.04 and Later
#
# ╔════════════════════════════════════════════════════════════════╗
# ║ Copyright © 2024 Sam Ariafar. Published under the MIT License. ║
# ╚════════════════════════════════════════════════════════════════╝
set -euo pipefail
@samariafar
samariafar / lenovo-thinkpad-t460-suspend-fix.sh
Last active June 5, 2026 19:36
Fix Suspend and Resume on Lenovo ThinkPad T460
#!/usr/bin/env bash
#
# Fix Suspend and Resume on Lenovo ThinkPad T460
#
# ╔════════════════════════════════════════════════════════════════╗
# ║ Copyright © 2024 Sam Ariafar. Published under the MIT License. ║
# ╚════════════════════════════════════════════════════════════════╝
set -euo pipefail