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 / 00_README.md
Last active September 15, 2020 13:43
2020-09-15 Fedora 32 failing to start TigerVNC after update becasue of SELinux Policies

TigerVNC Server not starting from SystemD after Fedora32 Update on 2020-09-15

  • I edited the /etc/tigervnc/vncserver.users and added :1=filbot which is my user.
  • I copied /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
  • I ran sudo systemctl start vncserver@:1.service
    • It seems to start according to the log, but then immediately dies.
    • ${HOME}/.vnc/${USER}:1.log doesn't seem to show anything related to the crash/termination.

However, I can run the TigerVNC server does run when I do /usr/libexec/vncserver :1. Obviously this isn't the desired operation/result. I don't understand why SystemD, SELinux, and TigerVNC aren't working together.

@FilBot3
FilBot3 / bash_logger.sh
Last active September 7, 2020 16:09
A sample logging function for Bash scripts. Useful for CI/CD.
#!/usr/bin/env bash
function exec_log {
# This function prints a time + date stamps for use in Shell Scripts that are
# used in CI/CD. This also allows the user to run the same commands locally
# as they can in CI/CD.
exec_date=$(date --rfc-3339=ns)
echo "[${exec_date}]: $*"
echo "[${exec_date}]: $(exec $*)"
}
@FilBot3
FilBot3 / 00_README.md
Last active March 6, 2023 02:07
How I run ClamAV on my systems.

Running ClamAV

Overview

ClamAV is a Free, Open Source Software that performs virus and threat detection capabilities. However, on Windows, you don't get the on-demand, or other features, so you have to use something like NSSM, the Non-Sucking Service Manager to setup clamd to run as local admin then use that to perform scans.

However, this script is how I run ClamAV currently. May expand and become a repository in of itself.

@FilBot3
FilBot3 / bibtex.png
Created August 19, 2020 12:02 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@FilBot3
FilBot3 / 00_wine_affinity_designer_failure.log
Created July 25, 2020 03:35
Fedora 32 WS with Wine launching Affinity Designer failure
➜ Downloads WINEARCH=win32 WINEPREFIX=/home/filbot/.wine/filwine wine ./affinity-designer-1.8.3.exe
002c:fixme:winediag:start_process Wine Staging 5.13 is a testing version containing experimental patches.
002c:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
INTEL-MESA: warning: Haswell Vulkan support is incomplete
INTEL-MESA: warning: Haswell Vulkan support is incomplete
00c8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00c8:fixme:ntdll:EtwEventRegister ({e13b77a8-14b6-11de-8069-001b212b5009}, 030F0610, 00000000, 0031F3E8) stub.
00c8:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0031D9B8, 054C5B10, 0031D9BC, 0031D9B0
00c8:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0031D9B8, 054C5B10, 0031D9BC, 0031D9B0
@FilBot3
FilBot3 / azure_devops_python_api_example.py
Created July 16, 2020 00:35
An example of how to use the Azure DevOps Python API Client.
"""List and Sort Groups in Azure DevOps Project
"""
import configparser
import logging
import os
import pprint as pp
# import json
from azure.devops.connection import Connection # pylint: disable=import-error
@FilBot3
FilBot3 / Lorem_Ipsum.md
Last active July 8, 2020 22:27
Use Pandoc to generate an epub or PDF with 2-Columns using TeXLive

Lorem Ipsum

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

Lorem Ipsum Dolor Sit Amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque et tellus iaculis, convallis lorem id, pellentesque risus. In vel sem sed tortor dignissim

@FilBot3
FilBot3 / latex-minipage-example.tex
Last active June 30, 2020 03:43
LaTeX minipage example
\documentclass{article}
\begin{document}
\section{Minipage Sample}
\begin{minipage}[c]{0.45\linewidth}
This is a minipage side one.
This is a bunch of text, it goes blah blah blah blah, fart fart fart.
This is a bunch of text, it goes blah blah blah blah, fart fart fart.
This is a bunch of text, it goes blah blah blah blah, fart fart fart.
@FilBot3
FilBot3 / minikube_1.11.0_with_podman_1.9.3_on_fedora_32_errors.log
Last active June 18, 2020 22:03
Minikube 1.11.0 using Podman 1.9.3 on Fedora 32 errors
➜ Kubernetes minikube start --driver=podman --alsologtostderr -v=4 | tee minikube_podman_errors.log
I0618 11:57:27.845284 88193 start.go:98] hostinfo: {"hostname":"Reincarnate","uptime":70482,"bootTime":1592428965,"procs":424,"os":"linux","platform":"fedora","platformFamily":"fedora","platformVersion":"32","kernelVersion":"5.6.18-300.fc32.x86_64","virtualizationSystem":"kvm","virtualizationRole":"host","hostid":"b3dfdee8-7eb7-42a9-b23c-86202e97ac4e"}
I0618 11:57:27.846013 88193 start.go:108] virtualization: kvm host
πŸ˜„ minikube v1.11.0 on Fedora 32
I0618 11:57:27.846235 88193 driver.go:253] Setting default libvirt URI to qemu:///system
I0618 11:57:27.846307 88193 notify.go:125] Checking for updates...
I0618 11:57:27.909286 88193 podman.go:99] podman version: 1.9.3
I0618 11:57:27.909392 88193 start.go:214] selected driver: podman
✨ Using the podman (experimental) driver based on user configuration
I0618 11:57:27.909402 88193 start.go:611] validating driver "podman" against <nil>
@FilBot3
FilBot3 / pdf-forms.tex
Created June 15, 2020 21:15
PDF Forms with LaTeX and the hyperref Package
\documentclass{article}
% PDF Forms are actually part of the hyperref package. For more documentation,
% see the CTAN Package: https://ctan.org/pkg/hyperref
% Click on Manual, HTML Version and look for 7 PDF and HTML Forms
% Below is a quick example of some forms and their fields
%
% To build, you can use the following commands:
% Build once:
%
% lualatex pdf-forms.tex