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 / fedora-32-dotnet-sdk-3.1-not-finding-files.log
Last active November 18, 2021 20:51
.NET Core SDK 3.1.301 on Fedora 32 is not able to find some /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/3.1.0/data/FrameworkList.xml It doesn't exist.
➜ ~ sudo dnf remove dotnet-\*
Dependencies resolved.
==============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================================================
Removing:
dotnet-apphost-pack-3.1 x86_64 3.1.5-1 @packages-microsoft-com-prod 164 k
dotne
@FilBot3
FilBot3 / 00_README.md
Created June 15, 2020 01:16
Disable Roll20 UI for 2nd screen for projectors

Disable the Roll20 UI for projectors/second screen

  1. Open up Roll20 and join as a player.
  2. Open the Web Development Tools for your browser
  3. Open the Browser Console
  4. Paste the JavaScript listed in this Gist.
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f43ef205800 (LWP 2035))]
Thread 31 (Thread 0x7f434e7fc700 (LWP 4041)):
#0 0x00007f43f23e3e92 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1 0x00007f43f2e90463 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /lib64/libQt5Core.so.5
#2 0x00007f43af5d1e48 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /lib64/libKF5ThreadWeaver.so.5
#3 0x00007f43af5d5e4c in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /lib64/libKF5ThreadWeaver.so.5
#4 0x00007f43af5d10c6 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /lib64/libKF5ThreadWeaver.so.5
➜ ~ kquitapp5 plasmashell
"Application plasmashell could not be found using service org.kde.plasmashell and path /MainApplication."
➜ ~ kstart5 plasmashell
Omitting both --window and --windowclass arguments is not recommended
➜ ~ org.kde.plasmaquick: Applet preload policy set to 1
kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/backgrounds/f32/default/"
kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/backgrounds/f32/default/"
kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/backgrounds/f32/default/"
file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:76:9: Unable to assign [undefined] to QStringList
file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:75:9: Unable to assign [undefined] to int
@FilBot3
FilBot3 / ruby_savon_soap_example.md
Last active May 28, 2020 15:32
Ruby's Savon SOAP Client Walkthrough Example

Ruby Savon SOAP Client Walkthrough

The savon Ruby SOAP Client doesn't provide a command-line interface tool like Python's zeep does. So, we'll have to walk through this a bit differently. Let's first start by opening the Ruby REPL tool so we can walk through the WSDL and the available operations.

export WSDL_URL="http://www.dneonline.com/calculator.asmx?WSDL"
irb

Now we can create a client and explore the WSDL.

@FilBot3
FilBot3 / python-zeep-example.md
Last active November 17, 2024 09:09
Python Zeep SOAP Example Write Up

Python Zeep SOAP Client

First, we'll look at the SOAP URL and see what Prefixes, Global Elements, Global Types, Bindings, and Services are provided by the SOAP Service.

You can do this by running zeep as a CLI tool.

export WSDL_URL="http://www.dneonline.com/calculator.asmx?WSDL"
python -m zeep $WSDL_URL
@FilBot3
FilBot3 / ffmpeg_screen_capture.ps1
Last active May 24, 2020 16:06
Using FFMPEG to capture my screen, without audio. This is the left monitor since my right one is primary.
<#
.SYNOPSIS Use FFMPEG to capture the second monitor video
.DESCRIPTION Use ffmpeg to capture the left monitor when right is primary.
This requires that the offset be negative to the primary monitor.
If the monitor that was primary was on the left, then I'd just adjust the
offset to it starts at 1920 rather than 0.
To include audio, you need Stero Mix enabled or V-B Audio Cable on Windows.
Linux, its much easier, as is everything else.
@FilBot3
FilBot3 / hero_system_roller.py
Created May 17, 2020 20:45
A Hero System dice roller by Phil
#!/usr/bin/env python
"""Hero System Dice Roller
"""
import argparse
import random
def die_roll(die_num: int = 3, die_type: int = 6) -> list:
@FilBot3
FilBot3 / keybase.md
Created April 28, 2020 17:00
Keybase Proof - FilBot3

Keybase proof

I hereby claim:

  • I am filbot3 on github.
  • I am predatorian (https://keybase.io/predatorian) on keybase.
  • I have a public key ASC9rWuZhDYrfX89vWENBzzf79Ypn7bPS83cY6oivH1FpAo

To claim this, I am signing this object:

@FilBot3
FilBot3 / TexLive_LaTeX_kpsewhich_commands.md
Created April 26, 2020 03:06
TexLive kpsewhich Commands

TexLive LaTeX kpsewhich Commands

Overview

These commands help find things like TEXMFHOME, or other variaables such as the ones listed on TexLive Docs.

kpsewhich -var-value=TEXMFHOME