Skip to content

Instantly share code, notes, and snippets.

View Justinzobel's full-sized avatar

Justin Zobel Justinzobel

View GitHub Profile

Discourse Maintenance Page with Apache2

As root

cd /var/discourse
nano containers/app.yml

Comment out these lines:

Matrix Synapse server error: Found users in database not native to my.domain!

  1. Backup instance/database
  2. Connect to your PostgreSQL database and remove users in the user_directory table that don't match your domain e.g: delete FROM user_directory WHERE user_id NOT LIKE '%chat.my.domain%';
@Justinzobel
Justinzobel / wofi-breeze-dark-theme.css
Created May 16, 2022 08:22
Wofi Breeze Dark Theme
window {
background-color: #31363b;
}
#input {
margin: 5px;
border-radius: 0px;
border: none;
border-bottom: 3px;
background-color: #31363b;
@Justinzobel
Justinzobel / example.md
Last active April 9, 2022 23:15
fedora pagure api curl example
token=123456789etc
curl -X POST "https://pagure.io/api/0/-/whoami" \
     -H "Authorization: token $TOKEN" \
     -H "Content-Type: application/x-www-form-urlencoded"
MySQL command to get a list of all pages (decoded from binary) and show the date they were last modified (in YYYYMMDD etc)
select cast(page_title as CHAR),cast(page_touched as CHAR) from page ORDER BY page_touched ASC;
To get mediawiki page names from MySQL use:
use db_name;
select page_id,cast(page_title as CHAR) from page;
alsa-lib-devel
attr-devel
audiofile-devel
black-hole-solver-devel
check-devel
cmark-devel
cups-devel
cyrus-sasl-devel
dbus-glib-devel
dialog
App: https://github.com/aristocratos/bashtop
#Bashtop theme with nord palette (https://www.nordtheme.com)
#by Justin Zobel <[email protected]>
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
# example for white: "#ffffff", "#ff" or "255 255 255".
# All graphs and meters can be gradients
# For single color graphs leave "mid" and "end" variable empty.
Tint2 Nord Themed Panel Config
Tint2: https://gitlab.com/o9000/tint2
Nord Palette: https://www.nordtheme.com
#---- Generated by tint2conf 2641 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
#!/bin/bash
mkdir -p OpenOffice/data
tar xf Apache_OpenOffice_*_Linux_x86-64_install-deb_en-US.tar.gz
mv en-US/DEBS/*.deb OpenOffice/
cd OpenOffice/
for i in $(ls -1 openoffice*)
do
mkdir Deb-${i}
mv ${i} Deb-${i}/
pushd Deb-${i} > /dev/null