Skip to content

Instantly share code, notes, and snippets.

View yucellmustafa's full-sized avatar

Mustafa Yucel yucellmustafa

View GitHub Profile
@yucellmustafa
yucellmustafa / ublock-hide-yt-shorts
Created February 15, 2024 22:32
uBlock Origin filter list to hide YouTube Shorts (source: https://github.com/gijsdev/ublock-hide-yt-shorts)
! Title: Hide YouTube Shorts
! Description: Hide all traces of YouTube shorts videos on YouTube
! Version: 1.8.0
! Last modified: 2024-01-08 20:02
! Expires: 2 weeks (update frequency)
! Homepage: https://github.com/gijsdev/ublock-hide-yt-shorts
! License: https://github.com/gijsdev/ublock-hide-yt-shorts/blob/master/LICENSE.md
! Hide all videos containing the phrase "#shorts"
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#shorts))
@yucellmustafa
yucellmustafa / fedora_wsl.md
Last active January 30, 2024 14:23
fedora install for wsl

1 - Installed Terminal and WSL GUI

2 - Actived WSL and Virtual Machine on Powershell (administrator)

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux,VirtualMachinePlatform -All

--- RESTART PC ---

3 - wsl --set-default-version 2

@yucellmustafa
yucellmustafa / fedora_minimal_gnome.sh
Last active April 30, 2024 14:02
Install script for Fedora
#!/bin/bash
# dnf
echo -e "fastestmirror=True
max_parallel_downloads=10
defaultyes=True
install_weak_deps=False" | sudo tee -a /etc/dnf/dnf.conf
# repo
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
#!/bin/bash
git clone https://github.com/yucellmustafa/android_device_xiaomi_toco -b lineage-21 device/xiaomi/toco
git clone https://github.com/xiaomi-sm6150/android_device_xiaomi_sm6150-common -b lineage-21 device/xiaomi/sm6150-common
git clone https://github.com/yucellmustafa/android_kernel_xiaomi_sm6150 -b lineage-21 kernel/xiaomi/sm6150
git clone https://github.com/yucellmustafa/proprietary_vendor_xiaomi_toco -b lineage-21 vendor/xiaomi/toco
git clone https://github.com/xiaomi-sm6150/proprietary_vendor_xiaomi_sm6150-common -b lineage-21 vendor/xiaomi/sm6150-common
git clone https://gitlab.com/yucellmustafa/vendor_xiaomi_miuicamera -b leica-5.0 vendor/xiaomi/miuicamera
git clone https://github.com/LineageOS/android_hardware_xiaomi -b lineage-21 hardware/xiaomi
@yucellmustafa
yucellmustafa / repair_efi_gpt
Last active September 3, 2023 18:12
repair for windows efi part (gpt)
diskpart
select disk <number of disk>
create part efi size=512
format fs=fat32
select part <number of part>
assign letter=B
exit
@yucellmustafa
yucellmustafa / hp_laserjet_1018.sh
Last active August 20, 2023 19:42
install hp laserjet 1018 driver for fedora linux
# printer (hp laserjet 1018)
sudo dnf install foo2zjs -y
git clone https://github.com/koenkooi/foo2zjs
cd foo2zjs && make && sudo make install && sudo make install-hotplug
sudo cp /usr/share/foo2zjs/firmware/sihp1018.dl /lib/firmware/
sudo sed -i 's/usr\/share\/foo2zjs/lib/' /etc/hotplug/usb/hplj1000
cd .. && sudo rm -rf foo2zjs
sudo systemctl enable --now cups
@yucellmustafa
yucellmustafa / git_commit_reset.md
Last active January 26, 2024 12:46
delete last commit for git

last commit : 1 - other : 2,3 etc.

git reset --hard HEAD~1

git push origin HEAD --force

@yucellmustafa
yucellmustafa / ventoy_install.sh
Last active January 26, 2024 12:50
Ventoy Installer for Linux
repo=github.com/repos/ventoy/Ventoy
link=$(curl -s https://api.$repo/releases/latest | jq -r ".assets[] | select(.name | test(\"linux\")) | .browser_download_url")
version=$(curl -s https://api.$repo/releases/latest | jq -r ".tag_name")
file=ventoy-$version
arch=$(uname -m)
download() {
if [ ! -f $file.tar.gz ]; then
echo "Downloading $file.tar.gz..."
curl -L $link -o $file.tar.gz
@yucellmustafa
yucellmustafa / gist_push.md
Last active January 26, 2024 12:45
Add ssh key to gist to push locally
  • creat ssh key: ssh-keygen -t ed25519 -C "your_email@example.com"
  • then copy the code in ~/.ssh/id_ed25519.pub
  • add ssh key here: https://github.com/settings/keys
  • and gist repo clone (example): git clone git@gist.github.com:9273c10a3de1d9bf4debe5f65719ceb9.git fedora-everything-minimal