Skip to content

Instantly share code, notes, and snippets.

View FilBot3's full-sized avatar
😀
Working hard

FilBot3 FilBot3

😀
Working hard
View GitHub Profile
@FilBot3
FilBot3 / lutris-flatpak-humble-bundle-order-api-permisions-denied.log
Created May 28, 2022 12:24
Lutris Flatpak permissions denied when attempting to access Humble Bundle Orders API
➜ ~
> flatpak run net.lutris.Lutris
Gtk-Message: 07:23:19.666: Failed to load module "canberra-gtk-module"
2022-05-28 07:23:19,668: Starting Lutris 0.5.10.1
2022-05-28 07:23:19,700: No folder at /var/home/filbot/.var/app/net.lutris.Lutris/data/lutris/runners/retroarch/
2022-05-28 07:23:19,726: Using NVIDIA drivers 510.68.02 for x86_64
2022-05-28 07:23:19,726: GPU: NVIDIA GeForce RTX 2070 SUPER
2022-05-28 07:23:19,726: GPU: 10DE:1E84 3842:3071 (nvidia drivers)
2022-05-28 07:23:19,792: Startup complete
2022-05-28 07:23:24,045: Error while completing task <bound method BaseService.reload of <humblebundle.HumbleBundleService object at 0x7f541adb2300 (lutris+services+humblebundle+HumbleBundleService at 0x561bfba8c760)>>: <class 'lutris.util.http.UnauthorizedAccess'> Access to https://www.humblebundle.com/api/v1/user/order denied
@FilBot3
FilBot3 / screenkey_flatpak_build_successful.log
Created May 27, 2022 17:19
Building Screenkey Flatpak on Fedora 36 Silverblue
➜ Development
> rm -rf com.gitlab.screenkey.screenkey
➜ Development
> git clone git@github.com:FilBot3/com.gitlab.screenkey.screenkey.git
Cloning into 'com.gitlab.screenkey.screenkey'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 35 (delta 14), reused 29 (delta 8), pack-reused 0
Receiving objects: 100% (35/35), 8.94 KiB | 366.00 KiB/s, done.
@FilBot3
FilBot3 / pop-os_not_updating_because_of_libprce3_not_ready.sh
Created May 18, 2022 21:04
Pop!_OS 21.10 not updating because of some error with libprce3 not being ready?
~❯ sudo apt update
[sudo] password for filbot:
Hit:1 https://cli.github.com/packages stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu impish InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu impish-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu impish-updates InRelease
Hit:6 http://apt.pop-os.org/proprietary impish InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu impish-backports InRelease
Hit:8 http://ppa.launchpad.net/neovim-ppa/unstable/ubuntu impish InRelease
Hit:9 http://apt.pop-os.org/release impish InRelease
======================
Proton: 1652776780 proton_flatpak-GE-Proton7-17
SteamGameId: 1794680
Command: ['/var/home/filbot/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Vampire Survivors/VampireSurvivors.exe']
Options: {'forcelgadd'}
Kernel: Linux 5.17.6-300.fc36.x86_64 #1 SMP PREEMPT Mon May 9 15:47:11 UTC 2022 x86_64
======================
ERROR: ld.so: object '/var/home/filbot/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/var/home/filbot/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/var/home/filbot/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
@FilBot3
FilBot3 / 01_system_information.sh
Last active May 18, 2022 02:13
Information for Valve Software Proton Issue
➜ ~
> neofetch
.',;::::;,'. filbot@fedora
.';:cccccccccccc:;,. -------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 36.20220516.0 (Silverblue) x86_64
.:cccccccccccccccccccccccccc:. Kernel: 5.17.6-300.fc36.x86_64
.;ccccccccccccc;.:dddl:.;ccccccc;. Uptime: 13 hours, 23 mins
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Packages: 1609 (rpm), 114 (flatpak)
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:. Shell: bash 5.1.16
,cccccccccccccc;MMM.;cc;;WW::cccccccc, Resolution: 1920x1080
@FilBot3
FilBot3 / buildah_fedora_toolbox.sh
Last active July 11, 2022 16:04
Make a custom Fedora Toolbox for Silverblue. Has Teams and Chrome with some other tools I use regularly.
#!/usr/bin/env bash
# Fail on errors.
set -e
function print_output() {
# print_output takes a string of input and formats with color the output.
# Useful for logging.
#
# Parameters
@FilBot3
FilBot3 / buildah_mermaidjs.sh
Last active May 4, 2022 15:52
Buildah script to create a Mermaid.js CLI container image. I had issues pulling it earlier, so I made my own.
#!/usr/bin/env bash
# Fail on errors.
set -e
container=$(buildah from docker.io/library/node:alpine)
buildah config --env=CHROME_BIN="/usr/bin/chromium-browser" ${container}
buildah config --env=PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" ${container}
@FilBot3
FilBot3 / buildah_ubuntu_neovim.sh
Created May 4, 2022 13:15
A trivial, simple example of how to use Buildah to build a Container Image.
#!/usr/bin/env bash
container=$(buildah from docker.io/library/ubuntu)
buildah run ${container} -- sh -c "apt update && apt install --yes curl apt-transport-https ca-certificates"
buildah run ${container} -- sh -c "apt update && apt install --yes vim"
buildah config --entrypoint="/bin/bash" ${container}
buildah config --cmd="--login -i" ${container}
@FilBot3
FilBot3 / print_and_run.sh
Last active May 4, 2022 12:58
A Bash shell script that can be sourced or modified for a CI/CD like script that prints and runs the command given to the function.
#!/usr/bin/env bash
function print_and_run() {
# print_and_run is useful for doing CI/CD with Shell Scripts where the entire
# process is done in a single step. This function can be used in a single
# script, or it can be sourced as a function for other scripts.
#
# Parameters
# ----------
# $@ - shell command being ran
@FilBot3
FilBot3 / Containerfile
Last active April 29, 2022 19:56
.NET Core ASP.Net Core universal containerfile.
# vim: ft=dockerfile
# To build this Container Image, you'll need to use the following syntax.
#
# podman build --file=DotNet.containerfile --tag=aspwebapi:latest --build-arg="ASP_EXE=/app/MvcMovie" .
#
# What this will do is use the specified Containerfile, then assign the given
# tag. Then it will pass the build argument of ASP_EXE. This argument is then
# passed the containerfile as an ENV and substituted in a shell script
# entrypoint. This makes it so the Containerfile is universal, atleast for
# DotNet Core and .NET 6.