Skip to content

Instantly share code, notes, and snippets.

View roib20's full-sized avatar
🆔
develeaper

roib20

🆔
develeaper
View GitHub Profile
@SahilMahadwar
SahilMahadwar / bing-wallpaper.sh
Last active April 24, 2024 14:51
You can use this script to automatically set Bing's image of the day as your wallpaper. It downloads the image and saves it to a chosen folder. It also keeps track of downloaded images using a JSON file, so it won't download the same one twice. Just set it to run on every login to keep your wallpaper fresh!
#!/bin/bash
# Check internet connectivity
check_internet() {
wget -q --spider http://example.com
return $?
}
# Wait for internet connectivity
while ! check_internet; do
@roib20
roib20 / apt-repo-playbook.yaml
Last active July 18, 2024 08:47
Example usages of the new `deb822_repository` Ansible module
---
- hosts: localhost
connection: local
gather_facts: true
tasks:
- name: Add APT repositories
when: ansible_os_family == 'Debian'
become: true
block:
@Eeyoresyndrome
Eeyoresyndrome / ublu38.md
Last active May 28, 2024 19:39
Universal Blue Kinoite or: How I Learned to Stop Worrying and Love the Immutable Desktop & Flatpak

Eeyore_Syndrome Presents:

Fedora Kinoite ublu.it Flathub

Universal Blue Kinoite or: How I Learned to Stop Worrying and Love the Immutable Linux Desktop & Flatpaks updated 04/30/23

~Written with love & mostly on my "Steam Desk" Steam Deck + Steam Deck Dock on my 4k TV on my beanbag.

TLDR: How to get an Immutable Fedora KDE Plasma Desktop setup for gaming on Linux. Brought to you by Universal Blue Project.


💬 It's (not just) Fedora Kinoite/ Fedora Silverblue with extra steps!

@eggbean
eggbean / install_awscliv2.sh
Last active June 21, 2024 04:43
Script to install or update AWS CLI v2 on Linux/WSL (x86_64 and aarch64 supported). Can be used in ansible or bootstrap script.
#!/bin/bash
# AWS CLI v2 install/update script
# For v2 you either need to install manually
# or use a script like this
#
# For bash v5 >
#
# For auto-completion add `cli_auto_prompt = on` to config
# ..or add AWS_CLI_AUTO_PROMPT=on environment variable
@olets
olets / zsh-plugin-manager-plugin-installation-procedures.md
Last active May 18, 2024 21:40
zsh plugin manager cross-reference

Instructions for installing zsh plugins, for a variety of plugin managers

  • antibody: Add <owner>/<repo> to your plugins file. If you use static loading update the sh.

  • Antigen: Add antigen bundle <owner>/<repo> to your .zshrc.

  • Oh-My-Zsh:

    • Clone to OMZ's plugins' directory:
@luminoso
luminoso / clevis.sh
Last active July 15, 2023 08:58
fedora base install minimal setup
# https://wiki.archlinux.org/title/Trusted_Platform_Module#Clevis
sudo dnf install clevis\*
# check the correct partition with lsbk
sudo lsblk
# bind clevis to secure boot
sudo clevis luks bind -d /dev/nvme0n1p3 tpm2 '{"pcr_ids":"1,7"}'
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 23, 2024 00:25
set -e, -u, -o, -x pipefail explanation