Skip to content

Instantly share code, notes, and snippets.

View LorbusChris's full-sized avatar
:shipit:

Christian Glombek LorbusChris

:shipit:
View GitHub Profile
lorbus@fedora:~$ rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-extra libwacom libwacom-data --install kernel-surface --install iptsd --install libwacom-surface --install libwacom-surface-data
Checking out tree bd7f37d... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora copr:copr.fedorainfracloud.org:phracek:PyCharm google-chrome rpmfusion-nonfree-nvidia-driver rpmfusion-nonfree-steam linux-surface updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2024-03-12T11:45:42Z solvables: 3
rpm-md repo 'updates' (cached); generated: 2024-08-20T01:27:16Z solvables: 24663
rpm-md repo 'fedora' (cached); generated: 2024-04-14T18:51:11Z solvables: 74881
rpm-md repo 'copr:copr.fedorainfracloud.org:phracek:PyCharm' (cached); generated: 2024-03-18T11:54:41Z solvables: 14
rpm-md repo 'google-chrome' (cached); generated: 2024-08-16T16:36:32Z solvables: 3
rpm-md repo 'rpmfusion-nonfree-nvidia-driver' (cached); generated: 2024-08-19T
@LorbusChris
LorbusChris / MatrixIRC.md
Last active December 30, 2022 19:27
Matrix libera.chat IRC Bridge Setup

Matrix libera.chat IRC Bridge Setup

Change libera.chat IRC Nick

This is optional, in case you prefer your nick to be shown as something other than <matrix_nick>[m] on IRC, e.g. just <matrix_nick> (without the [m] suffix) or <libera_nick>.

Open a private chat with @appservice:libera.chat:

!nick <new_libera_nick>

Note: This does not change your Matrix nick!

$ ~/src/systemd/build/systemctl --root=/tmp/root2 list-unit-files|rg 'enabled.*disabled|disabled.*enabled'
ostree-finalize-staged.path disabled enabled
initial-setup.service enabled disabled
iscsi.service enabled disabled
nfs-convert.service enabled disabled
systemd-pstore.service disabled enabled
zram-swap.service enabled disabled
iscsid.socket enabled disabled
iscsiuio.socket enabled disabled
multipathd.socket enabled disabled
[lorbus@workhorse code]$ oc logs -f e2e-gcp -c teardown
Gathering artifacts ...
Traceback (most recent call last):
File "<string>", line 1, in <module>
KeyError: 'modules'
oc --insecure-skip-tls-verify --request-timeout=5s get apiserver.config.openshift.io authentication.config.openshift.io build.config.openshift.io console.config.openshift.io dns.config.openshift.io featuregate.config.openshift.io image.config.openshift.io infrastructure.config.openshift.io ingress.config.openshift.io network.config.openshift.io oauth.config.openshift.io project.config.openshift.io scheduler.config.openshift.io -o json
oc --insecure-skip-tls-verify --request-timeout=5s get apiservices -o json
oc --insecure-skip-tls-verify --request-timeout=5s get clusteroperators -o json
oc --insecure-skip-tls-verify --request-timeout=5s get clusterversion -o json
oc --insecure-skip-tls-verify --request-timeout=5s get configmaps --all-namespaces -o json
@LorbusChris
LorbusChris / .packit.yaml
Created September 16, 2019 19:22
Origin Packit
---
specfile_path: origin.spec
synced_files:
- origin.spec
- .packit.yaml
git upstream_ref: master
upstream_project_name: okd
downstream_package_name: okd
jobs:
- job: copr_build
# Prep
echo "lorbus" > ~/.fedora.upn
ssh-keygen
# Add the created public key on https://admin.fedoraproject.org/accounts (and pagure.io)
# Create src.fp.o API key on web interface and save locally (Valid 60 Days)
cat <<EOF > ~/.config/rpkg/fedpkg.conf
[fedpkg.pagure]
token = <token_here>
EOF
@LorbusChris
LorbusChris / MATRIX.md
Created May 14, 2018 16:42 — forked from fstab/MATRIX.md
How to use matrix.org and vector.im as an IRC client

How to use matrix.org and vector.im as an IRC client

How to Join an IRC Channel on matrix.org

Join the room #freenode_<#channel>:matrix.org, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room #freenode_#prometheus:matrix.org on matrix.org.

In vector.im, rooms can be joined with the directory symbol on the bottom left.

@LorbusChris
LorbusChris / react-fieldplay.js
Created November 12, 2017 17:48
Anvaka's Fieldplay as a React Component
import React, { Component } from 'react'
import initScene from './lib/scene'
class Fieldplay extends Component {
constructor(props, context) {
super(props, context)
}
componentDidMount() {
@LorbusChris
LorbusChris / canary.spec
Created September 24, 2017 04:42
Canary RPM Spec
%define build_timestamp %(date +"%Y%m%d%H%M%%S")
%define github_user LorbusChris
%define github_repo REPLACEME
%define github_branch master
Version: canary
Release: %{build_timestamp}%{?dist}
Source0: https://github.com/%{github_user}/%{github_repo}/archive/%{github_branch}.tar.gz
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]