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 / Gulpfile.js
Created April 6, 2022 15:39
Why do I need Python for JavaScript with NodeJS? And at that, Python2????
function defaultTask (cb) {
cb()
}
function js (cb) {
cb()
}
exports.default = defaultTask
exports.js = js
@FilBot3
FilBot3 / azure-pipelines.yaml
Created March 30, 2022 15:13
Azure DevOps Pipeline failing to find registered variable in Deployment Job
---
# I am attempting to create a ServiceNow Change Request, register the sys_id to a pipeline var, then use it in
# subsequent steps in the pipeline. I want to use a Deployment Job because it allows me to track uses of the
# environment and pipeline for auditing. Then I can also stick on other "security" mechanisms or gating
# mechanisms to prevent unwanted usage.
# I also wanted to use a Deployment Job because it seemed to allow for the breaking of and catching of failed
# steps. However, it's proving to be more difficult than it really should be and is very unintuitive.
# The Azure DevOps Pipelines documentation has changed a lot and is now missing pieces of docs that were once
# there.
trigger: none
@FilBot3
FilBot3 / click_convert_tuple_of_strings_into_dict.py
Created March 21, 2022 21:30
Convert a Tuple of Strings from the Click library to Python Dict.
"""Use click to take in a tuple of strings formatted as key=value separated by
a space character. Then convert those into a Python Dictionary.
"""
import click
@click.command()
@click.argument('arg', nargs=-1)
def says(arg):
"""Phil Says stuff.
@FilBot3
FilBot3 / Steam_Flatpak_recognizes_controllers_games_do_not.md
Created March 18, 2022 00:11
Steam (Flatpak) recognizes controllers but games do not on Fedora 35 Kinoite

The Problem

I am trying to use a Google Stadia, XBox One, and Steam Controller to play any of my games. So far, Steam Big Picture Mode recognizes and works with my controllers, I am able to do things. I can even get my Steam Controller to act as a regular HID devices like a mouse for a bit, but it doesn't work when trying to play either Elden Ring or Mass Effect Legendary Edition.

Information

I am running Fedora 35 Kinoite and have installed the Nvidia drivers from RPMFusion, and steam-devices from RPMFusion. You'll see the layered packages below.

โžœ  ~ sudo rpm-ostree status
@FilBot3
FilBot3 / ssh_config
Created March 16, 2022 21:43
How to connect to Azure DevOps Git Repos using SSH on Fedora with no passphrase
Host ssh.dev.azure.com
HostName ssh.dev.azure.com
User git
IdentityFile /home/user01/.ssh/azdo_id_rsa
IdentitiesOnly yes
PubkeyAcceptedKeyTypes ssh-rsa
Host vs-ssh.visualstudio.com
HostName vs-ssh.visualstudio.com
User git
IdentityFile /home/user01/.ssh/azdo_id_rsa
@FilBot3
FilBot3 / azure-pipelines-python-poetry.yaml
Created February 18, 2022 14:04
Install and use Python Poetry in an Azure DevOps Pipeline
---
trigger: none
pool:
vmImage: ubuntu-latest
stages:
- stage: BuildAndTest
displayName: Build and Test
jobs:
@FilBot3
FilBot3 / 00_README.md
Created December 12, 2021 01:59
Running a Java GUI app from Flatpak Sdk with openjdk.

Run a Java GUI App without installing it from Flatpak Sdk

Overview

This is mostly because I didn't want to install Java on the system, and to learn more Flatpak stuff.

Requirements

  • Flatpak
@FilBot3
FilBot3 / 00_README.md
Last active June 14, 2022 15:28
Attempting to run Java GUI apps from a Container on Linux.

Running Java Apps in a Podman/Docker Container

Overview

I am attempting to run a Java GUI Application inside of a Container on Pop!_OS. This should also work on Fedora, or other distributions. I think it requires that the user be running Xorg X11 so you can get the sockets for it. I'm not sure if Xwayland provides the same kind of connectivity. The following snippets below are the individual pieces, but this markdown file will have all the same stuff.

filbot@ubuntu-k3s-master:~$ cat /boot/firmware/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc quiet splash cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
@FilBot3
FilBot3 / k3s-master-service.log
Last active October 29, 2021 03:07
k3s-ansible failing to connect workers and master failing to start on Ubuntu Server 21.10 arm64.
Oct 29 03:01:20 ubuntu-k3s-master systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE
Oct 29 03:01:20 ubuntu-k3s-master systemd[1]: k3s.service: Failed with result 'exit-code'.
Oct 29 03:01:20 ubuntu-k3s-master systemd[1]: k3s.service: Consumed 32.463s CPU time.
Oct 29 03:01:26 ubuntu-k3s-master systemd[1]: k3s.service: Scheduled restart job, restart counter is at 43.
Oct 29 03:01:26 ubuntu-k3s-master systemd[1]: Stopped Lightweight Kubernetes.
Oct 29 03:01:26 ubuntu-k3s-master systemd[1]: k3s.service: Consumed 32.463s CPU time.
Oct 29 03:01:26 ubuntu-k3s-master systemd[1]: Starting Lightweight Kubernetes...
Oct 29 03:01:26 ubuntu-k3s-master k3s[20645]: time="2021-10-29T03:01:26.844427808Z" level=info msg="Starting k3s v1.21.5+k3s2 (724ef700)"
Oct 29 03:01:26 ubuntu-k3s-master k3s[20645]: time="2021-10-29T03:01:26.845155773Z" level=info msg="Cluster bootstrap already complete"
Oct 29 03:01:26 ubuntu-k3s-master k3s[20645]: time="2021-10-29T03:01:26.910591057Z" level=info msg="Configurin