Skip to content

Instantly share code, notes, and snippets.

View sm9cc's full-sized avatar

SM9(); sm9cc

View GitHub Profile
@sm9cc
sm9cc / LaunchCSGO.sh
Last active October 1, 2023 10:01
CSGO Launch Workaround
#!/usr/bin/env bash
# shellcheck disable=SC2086
# Linux CSGO Launch Workaround
# Issue: https://github.com/ValveSoftware/csgo-osx-linux/issues/3097
# Launcher paths
declare -a CSGO_LAUNCHER_PATHS=(
"${HOME}/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh"
"${HOME}/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh"
@sm9cc
sm9cc / waydroid-networking.sh
Last active August 12, 2023 23:32
Waydroid Networking (Arch / CachyOS)
#!/usr/bin/env bash
sudo systemctl enable firewalld --now
sudo firewall-cmd --zone=trusted --add-port=67/udp
sudo firewall-cmd --zone=trusted --add-port=53/udp
sudo firewall-cmd --zone=trusted --add-interface=waydroid0
sudo firewall-cmd --runtime-to-permanent
@sm9cc
sm9cc / fixkeyring.sh
Last active August 11, 2023 19:02
Fix common keyring / pacman issues on CachyOS / Arch based systems
#!/usr/bin/env bash
declare -gr PACMAN_PACKAGE="https://mirror.cachyos.org/repo/x86_64/cachyos/pacman-6.0.2-11-x86_64.pkg.tar.zst"
declare -gr ARCHLINUX_KEYRING_PACKAGE="https://archlinux.org/packages/core/any/archlinux-keyring/download/"
declare -gr CACHYOS_KEYRING_PACKAGE="https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-keyring-3-1-any.pkg.tar.zst"
declare -gr PACMAN_MIRRORLIST_PACKAGE="https://archlinux.org/packages/core/any/pacman-mirrorlist/download/"
declare -gr CACHYOS_MIRRORLIST_PACKAGE="https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-mirrorlist-17-1-any.pkg.tar.zst"
declare -gr CACHYOS_V3_MIRRORLIST_PACKAGE="https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-v3-mirrorlist-17-1-any.pkg.tar.zst"
declare -gr CACHYOS_V4_MIRRORLIST_PACKAGE="https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-v4-mirrorlist-5-1-any.pkg.tar.zst"
declare -gr CACHYOS_RATE_MIRRORS_PACKAGE="https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-rate-mirrors-2-2-any.pkg.tar.zst"

Keybase proof

I hereby claim:

  • I am sm9cc on github.
  • I am sm9cc (https://keybase.io/sm9cc) on keybase.
  • I have a public key whose fingerprint is CB82 5356 120E 3C8F 3AD0 2086 4977 69F3 F5AD 3A35

To claim this, I am signing this object: