Skip to content

Instantly share code, notes, and snippets.

View benediktg's full-sized avatar
💭
🐸

Benedikt Geißler benediktg

💭
🐸
View GitHub Profile
@benediktg
benediktg / disable-touchscreen.service
Last active February 6, 2022 22:34
Disable touchscreen on ASUS Zenbook UX360CA
[Unit]
Description=Touchscreen deaktivieren
[Service]
ExecStart=/usr/local/bin/disable-touchscreen.sh
[Install]
Target=multi-user.target
@benediktg
benediktg / papercolor-light.json
Last active June 1, 2019 00:13
PaperColor tilix theme
{
"name": "PaperColor Light",
"comment": "Light color scheme inspired by Google's Material Design",
"background-color": "#EEEEEE",
"bold-color-same-as-fg": true,
"foreground-color": "#444444",
"palette": [
"#EEEEEE",
"#AF0000",
"#008700",
@benediktg
benediktg / privatebin-nginx-htaccess.md
Last active April 23, 2018 15:29
Nginx config for Privatebin's .htaccess
@benediktg
benediktg / readme.md
Last active December 1, 2023 10:11
Send mails from systemd services
@benediktg
benediktg / opensuse-web-devel.md
Last active March 21, 2017 18:31
openSUSE web development setup
sudo zypper in patterns-openSUSE-devel_web php7-gd php7-mbstring php7-posix php7-zip php7-zlib
sudo zypper in php7-curl php7-fileinfo php7-bz2 php7-intl php7-mcrypt php7-openssl
sudo zypper in php7-APCu php7-exif php7-ftp php7-gmp php7-imap php7-imagick php7-pcntl
sudo zypper in php7-bcmath php7-calendar php7-dba php7-gettext php7-phar php7-shmop php7-sockets php7-soap php7-sysvmsg php7-sysvsem php7-sysvshm php7-wddx

Enable the modules rewrite, headers, envin YaST → HTTP-Server and set the options in the Directory section in the main host as follows:

AllowOverride All
@benediktg
benediktg / opensuse-multimedia.md
Last active May 14, 2023 18:59
Multimedia support for openSUSE (Tumbleweed)

Add Packman repo (here for Tumbleweed)

sudo zypper ar http://ftp.halifax.rwth-aachen.de/packman/suse/openSUSE_Tumbleweed/Essentials/ packman-essentials

Reduce priority of Packman

sudo zypper mr -p 110 packman-essentials

Install packages from Packman

@benediktg
benediktg / pam_kwallet-guide.md
Last active May 14, 2023 14:48
Short guide for pam_kwallet with KDE Plasma 5 on openSUSE

(based on these two blog entries and inspired by Fedora-Blog)

First install pam_kwallet:

sudo zypper in pam_kwallet

Then edit the files /etc/pam.d/passwd, /etc/pam.d/login and /etc/pam.d/sddm as follows, i.e. add the lines beginning with a - (the hyphens are valid PAM syntax to reduce log entries if these PAM modules should not exist) and ending with the ### comment:

/etc/pam.d/passwd :

@benediktg
benediktg / inwx-acme
Last active August 13, 2016 10:29 — forked from repomaa/inwx-acme
#!/bin/bash
# Copyright (c) Joakim Reinert. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
API_URL='https://api.domrobot.com/xmlrpc/'
TMPDIR='/tmp/inwx-acme'
@benediktg
benediktg / wallabag-api-example.py
Last active January 21, 2023 18:35
Add new articles using the new wallabag API and Python
#!/usr/bin/env python3
import requests
# only these 5 variables have to be set
HOST = 'https://wallabag.example.org'
USERNAME = 'username'
PASSWORD = 'password'
CLIENTID = 'cryptic_client_id'
SECRET = 'secret'
@benediktg
benediktg / owncloud-log-formatting-explanation.md
Last active April 11, 2016 18:57
Owncloud log formatting with vim

This is meant as a help if you want to have better readable Owncloud log entries. First navigate to the directory of your owncloud.log and download the vimcommands.txt down below with

wget https://gist.githubusercontent.com/benediktg/39ef9fbe0be8ae671d345d1fa4c0c781/raw/vimcommands.txt

Then execute

vim -s vimcommands.txt -u NONE - < owncloud.log

for the whole file or