This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this is a snippet to set the wezterm default_prog to start a hostname | |
-- specific session, to ensure different environments always run the same | |
-- session by default. | |
-- | |
-- using tmux-resurrect is also possible, but for me this now works just fine | |
-- | |
local wezterm = require("wezterm") | |
-- most reliable way to get the hostname i've found | |
local handle = io.popen("hostname -s") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# @author René Weselowski | |
# | |
# php cli wrapper for the php-docker images. | |
# | |
# @see https://hub.docker.com/_/php | |
# | |
##### requirements | |
# - docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ATTENTION: this is not secure and must not be used in any production environment | |
# | |
# to work it needs the following extra mappings and permissions | |
# | |
# * --net host for the discovery process, which is otherwise blocked by certain iptables rules, at least in my case this was the easiest solution | |
# * --privileged to access the devices at all | |
# * dbus bind-mounts for the devices discovered by the os | |
# | |
# build the debian-sane image | |
export DOCKER_IMAGE_NAME=debian-sane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
firefox: about:config | |
toolkit.legacyUserProfileCustomizations.stylesheets > true | |
css-file: /.mozilla/firefox/<<<profile>>>/chrome/userChrome.css | |
*/ | |
#TabsToolbar { | |
visibility: collapse !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add tesseract | |
# add php-imagick | |
# add py-pluggy, a not documented, dependency for ocrmypdf | |
# | |
# by default english is installed as an ocr language for tesseract on alpine | |
# adds tesseract-ocr-data-deu, change to your local language or remove | |
# | |
# This `pecl install imagick || true` is a workaround as imagick was installed | |
# on some image verions but pecl fails if already installed | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# read the /proc/bus/input/devices and then parse out the proper event device | |
# this can be used in conjuction with kmonad *https://github.com/kmonad/kmonad) | |
DEVICE_NAME="Logitech MX Keys" | |
EVENT=$(grep "$DEVICE_NAME" /proc/bus/input/devices -A 4 | tail -n1 | grep -Eo 'event[0-9]+') | |
DEVICE="/dev/input/$EVENT" | |
echo "Found device at: $DEVICE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Created 2019-04, Author: René Weselowski <[email protected]> | |
# | |
# This script is entended as an macos automator 'application' run at startup | |
# to kill the MSTeams process and restart it wiith '--disable-gpu' | |
# | |
# Usage: | |
# Create a new automator task "Run Shell Script" | |
# Shell: /bin/bash | |
# Put it into your login/startup items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
# At times when you really need to remote edit files owned by root via WINSCP | |
# or other SFTP Clients... | |
# | |
# Winscp Link for this: | |
# https://winscp.net/eng/docs/faq_su | |
sudo su -c /usr/lib/openssh/sftp-server |