Skip to content

Instantly share code, notes, and snippets.

View LorbusChris's full-sized avatar
:shipit:

Christian Glombek LorbusChris

:shipit:
View GitHub Profile
@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 johndoe@example.com
@LorbusChris
LorbusChris / gerrit_dev.sh
Last active February 1, 2018 14:38
Gerrit Dev Flow
git clone git clone git://gerrit.libreoffice.org/core
cd core
./logerrit setup
./logerrit test
# alternatively
git review -s
# then..
# commit hooks for Change-Id
./g -z