This has been updated for 26.1 - 26.2, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.
- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
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 -yWorking 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.
- Download armv6 binary from Netbird github releases, upload it extracted via Comet UI →Virtual media
- Copy and run this script (use wget, do not copy into vi) or use the Virtual media UI
- The uploaded files are located in
/userdata/media/ - Access the terminal via Web UI or SSH
| /* C implementation QuickSort */ | |
| #include <stdio.h> | |
| // A utility function to swap two elements | |
| void swap(int *a, int *b) | |
| { | |
| int t = *a; | |
| *a = *b; | |
| *b = t; | |
| } |
| # 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 |
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.
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.
| #!/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 |