- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
last commit : 1 - other : 2,3 etc.
git reset --hard HEAD~1
git push origin HEAD --force
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskpart | |
select disk <number of disk> | |
create part efi size=512 | |
format fs=fat32 | |
select part <number of part> | |
assign letter=B | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/yucellmustafa/android_device_xiaomi_toco -b lineage-21 device/xiaomi/toco | |
git clone https://github.com/LineageOS/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 | |
git clone https://github.com/yucellmustafa/vendor_lineage-priv_keys -b lineage-21 vendor/lineage-priv/keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 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)) |