Skip to content

Instantly share code, notes, and snippets.

View Alykod's full-sized avatar

Aly Abdelrahman Alykod

  • Florida
View GitHub Profile
@Alykod
Alykod / xrdp-nvidia-setup.sh
Created November 1, 2025 03:37 — forked from Nexarian/xrdp-nvidia-setup.sh
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update
@Alykod
Alykod / macFFmpeg.md
Created August 16, 2024 14:38 — forked from docPhil99/macFFmpeg.md
Mac webcam FFmpeg

#Capture and stream a webcam To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.

ffmpeg -f avfoundation -list_devices true -i "" 

This will list the aviable video and audio devices.

The below will capture at 30fps and the set video size to a file. ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi

@Alykod
Alykod / migrate-b4-to-b5.sh
Created February 11, 2023 19:56 — forked from Juan-escobar94/migrate-b4-to-b5.sh
Migrate bootstrap 4 classes to bootstrap 5.
set -x
set -e
# e.g. folder to process e.g. "frontend/"
migration_folder=$1
find_regex=".*/*.tsx?" # mach all .ts and .tsx files
# include trailing path "/" in folder parameter: e.g "frontend/" instead of just "frontend"
ignore_path="*/$1node_modules/*"
# Back up your files or change sed argument -i to -i.bak to generate backup files
find $migration_folder -regextype posix-egrep -regex $find_regex -type f -not -path $ignore_path | xargs sed -i -E '/[(class)(")]/{
s/([mp])l(-[0-5])/\1s\2/g