Skip to content

Instantly share code, notes, and snippets.

View oskardotglobal's full-sized avatar

Oskar Manhart oskardotglobal

View GitHub Profile
@GabbasovDinar
GabbasovDinar / neutralize_db_odoo.txt
Last active January 2, 2026 11:46
Neutralize Database Odoo
# By API
import odoo
from odoo.sql_db import db_connect
# Connect to the database
db = db_connect('database_name')
with db.cursor() as cr:
# Call Odoo's neutralization function
@dinccey
dinccey / glinet-comet-install-netbird.md
Last active December 20, 2025 11:46
GL.Inet Comet KVM install Netbird

Install Netbird

Working on firmware 1.7.2 NOTE: there might still be issues with some features of Netbird, but this at least gets it up and running and connected.

  1. Download armv6 binary from Netbird github releases, upload it extracted via Comet UI →Virtual media
  2. Copy and run this script (use wget, do not copy into vi) or use the Virtual media UI
  3. The uploaded files are located in /userdata/media/
  4. Access the terminal via Web UI or SSH
@ngadmini
ngadmini / pve_API2Subs_sed.sh
Last active August 10, 2024 00:42
remove naged subscription message on proxmox 7.x-x
#!/usr/bin/env bash
# TAGS
# /usr/local/bin/pve-API2Subs_sed.sh
# https://gist.github.com/ngadmini/7f9df377999cc78c1b58e361d5425ac4#file-pve_api2subs-sh
# AUTHOR
# ngadimin@warnet-ersa.net
# https://github.com/ngadmini
# https://gist.github.com/ngadmini
# VERSION
# v10.5
@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active January 4, 2026 08:41
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

@fworks
fworks / install-zsh-windows-git-bash.md
Last active January 2, 2026 18:07
Zsh / Oh-my-zsh on Windows Git Bash
@AnnoyingTechnology
AnnoyingTechnology / Apple's SuperDrive tweak for use with Linux.md
Last active December 29, 2025 15:20
Make Apple's USB SuperDrive work on Linux

I was ready to throw it away, I opened it up and didn't find anything wrong with it. After a quick Google Search, turns out Apple fucked up their users (again) and locked this drive to only one laptop : the MacBook Air.

Bellow is the tweak (found online) to make it usable on Linux

# Debian/linux only - Linux SCSI generic driver
sudo apt install sg3-utils -y
@alfredringstad
alfredringstad / README.md
Created September 25, 2017 13:26
Forking a single package in a monorepo

Forking a single package in a monorepo

The trend of using monorepos makes a lot of things easier to manage. However, when you want to fork a single package inside a monorepo, you'll have to chose one of two options:

  • Fork the entire monorepo (meaning you get all those extra boilerplate you don't really care about)
  • Manually copying the package files into a new git repo (meaning you'll loose all git history and have a lot of work to do when there's a new version of your base package)

The good news: There's a solution for this! And it's actually built in to git.

git subtree

One of the lesser-known (and vaguely documented) features of git is subtree. It's intended for this purpose, working as a great alternative to the criticized submodules. There are very few resources about using this in practice, so here's a guide for this specific use case.