Skip to content

Instantly share code, notes, and snippets.

View mstuttgart's full-sized avatar
🏠
Working from home

Michell Stuttgart mstuttgart

🏠
Working from home
View GitHub Profile
@mstuttgart
mstuttgart / example.xml
Created February 5, 2025 20:54
Habilitar update de registros no odoo
<!-- Allow updating on noupdate=True records -->
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'base'), ('name', '=', 'user_admin')]" />
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="base.user_admin" model="res.users">
@mstuttgart
mstuttgart / RenewExpiredGPGkey.md
Created January 8, 2025 21:21 — forked from TheSherlockHomie/RenewExpiredGPGkey.md
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@mstuttgart
mstuttgart / tutorial.md
Last active November 19, 2024 21:05
How to Reset the Odoo Admin User Password: A Summary for different Odoo Versions

Preliminary Remark

When you have migrated your database from an earlier version, the ID of your admin user may be different than suggested below. In this case you should check the ID of your admin user directly in the res_users table in your database.

Odoo 8.0:

Change the password directly in the Postgres Database, as it is saved in plain text:

~$  sudo su postgres
~$  psql
@mstuttgart
mstuttgart / tutorial.md
Created November 4, 2024 18:54
Postman installed from Flatpak not open

Fix openssl:

openssl req -subj '/C=US/CN=Postman Proxy' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout ~/.var/app/com.getpostman.Postman/config/Postman/proxy/postman-proxy-ca.key -out ~/.var/app/com.getpostman.Postman/config/Postman/proxy/postman-proxy-ca.crt

Source: flathub/com.getpostman.Postman#237

@mstuttgart
mstuttgart / xfce-i3-guide.md
Created November 1, 2024 09:04 — forked from fathulfahmy/xfce-i3-guide.md
A guide on how to setup XFCE with i3wm

How to XFCE with i3WM

Download

  1. Download XFCE Distribution
  2. Download i3 only (i3 status i3 lock dmenu is not needed)

⚠️ Do not installed preconfigured or distributed i3wm to avoid conflicts with XFCE settings
e.g.
do sudo dnf install i3 --setopt=install_weak_deps=False
dont "i3 desktop" or @i3-desktop-environment

@mstuttgart
mstuttgart / gist:ade42e19c275680c41349c94ff2a59e7
Created October 26, 2024 19:27
Manjaro: Connection error to join call msteams
Change DNS IPv4 to OpenDNS server address i.e. 208.67.222.222
Disconnect from Wifi and reconnect. Try join the call again. It's work
@mstuttgart
mstuttgart / install.sh
Created October 25, 2024 12:09
Dependencies to compile eww in Ubuntu 22.04
sudo apt install libglib2.0-dev libpango1.0-dev libatk1.0-dev libdbusmenu-glib-dev libgdk-pixbuf2.0-dev libgtk-3-dev libdbusmenu-gtk3-dev
@mstuttgart
mstuttgart / tutorial.md
Last active October 27, 2024 01:16
Restore pass content in new machine

Restore gpg private and public keys:

gpg --import PRIVATE_KEY.gpg
gpg --import PUBLIC_KEY.gpg

Clone key repository

@mstuttgart
mstuttgart / README.md
Created June 6, 2024 14:47 — forked from darrenpmeyer/README.md
Automatically start a single instance of ssh-agent for all terminal sessions to share (bash)

Installation

  1. mkdir -p ~/.config && touch ~/.config/ssh-agent.pid
  2. Paste the contents of ssh-agent-manage.sh into your .bashrc or .bash_profile or similar
  3. killall -9 ssh-agent
  4. Start a new terminal session (note: old sessions will not see ssh-agent, only new ones)

Details

This snippet, when included in .bashrc, will ensure that your session has a working ssh-agent with all your ssh keys loaded into it. It does this without creating separate ssh-agent processes by: