Skip to content

Instantly share code, notes, and snippets.

View kwmiebach's full-sized avatar

kwmiebach kwmiebach

View GitHub Profile
@kwmiebach
kwmiebach / odoo18_website_settings_and_fields.py
Last active September 15, 2025 10:48
Available website settings and website fields in Odoo 18
'''
Find out available website settings and website fields.
The fields are recognized with a fuzzy algorythm, so there might be
too many and some might be missing?
Run this in an odoo shell of the odoo instance:
'''
installed_langs = env['res.lang'].search([('active', '=', True)])
print("Installed languages:", installed_langs.mapped('code'))
@kwmiebach
kwmiebach / tmux.conf.md
Last active August 2, 2025 14:07
Clean up byobu config for dumb terminals

This can go into ~/.tmux.conf:

To apply changes from inside tmux/byobu:

tmux source-file ~/.tmux.conf

# 1. Remove if present:
# setw -g utf8 off (deprecated in newer tmux versions)
@kwmiebach
kwmiebach / stylebot.css
Created May 11, 2025 07:50
Odoo 18 remove background image
body.o_web_client.o_home_menu_background {
background-image: none !important;
}
@kwmiebach
kwmiebach / install-lazydocker.sh
Last active February 1, 2025 22:46
install lazydocker
curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
@kwmiebach
kwmiebach / Makefile
Last active January 1, 2025 16:05
Demo Makefile: 'Make help' with awk. Targets source .env and pass vars to docker compose. Vars are escaped with '$$'. Instructions: save and run 'make help'.
.PHONY: help
help:
# Keep this comment line, it is imortant so awk ignores the help target.
@echo "Available targets:"
@echo " help\t\t Show this help message"
@awk '/^[^.][a-zA-Z0-9_-]+:/{t=$$1;getline;if($$0~"@echo"){gsub(/^[^"]*"|".*$$/,"",$$0);printf " %-20s %s\n",substr(t,1,length(t)-1),$$0}}' $(MAKEFILE_LIST)
.PHONY: it
it:
@echo "Start bash in the container as user 1000"
@kwmiebach
kwmiebach / pack.sql
Created December 27, 2024 14:44
pack tmp
select
a.Artikelnummer,
a.ArtBruttoGewicht,
a.ArtOptimaleFertigungsmenge1,
p.PosBezeichnung1,
p3m.PosMenge1
/* p.* */
@kwmiebach
kwmiebach / v17.css
Created December 18, 2024 12:42
Styles V17
/* chrome n3 */
a.fw-bold.text-truncate {
font-size: 30px
}
span.min-w-0.text-truncate {
font-size: 30px
}
@kwmiebach
kwmiebach / addkeys.sh
Last active January 11, 2025 01:45
Add public keys for a user to ~/.ssh/authorized_keys
#!/bin/bash
# GitHub SSH Key Updater
# ---------------------
# SECURITY WARNING: This script grants SSH access to your machine!
# Only add keys from GitHub users you absolutely trust with full SSH access to your system.
# Each added public key will allow that user to log into your machine via SSH.
#
# Purpose:
# Fetches and merges public SSH keys from a GitHub user into your ~/.ssh/authorized_keys file,
@kwmiebach
kwmiebach / make-system-folder.cmd
Last active January 1, 2025 15:29
Create a `Windows Master Control Panel' / 'All Tasks Folder on the Desktop'. The so called 'god mode '
@echo off
cd %USERPROFILE%\Desktop
mkdir "system.{ED7BA470-8E54-465E-825C-99712043E01C}"
@kwmiebach
kwmiebach / smnetscanner.sh
Last active January 1, 2025 15:30
If you can't use angryipscanner from a command line
#!/bin/bash
# (c) CompuMatter, LLC, ServerMatter
# no warranty expressed or implied - use as is.
# See https://www.youtube.com/watch?v=4hjskxkapYo
# versioned here: https://gist.github.com/kwmiebach/6565ad1b43f3c781b23fce6ba80f59ea
# history of the gist:
# 2023-09-28 downloaded from https://cloud.compumatter.biz/s/fxfYM9SkamBtGqG - unchanged
# purpose of this script: