Skip to content

Instantly share code, notes, and snippets.

View damex's full-sized avatar

Roman Kuzmitskii damex

View GitHub Profile
@damex
damex / odi_keygen.py
Created September 1, 2023 19:09 — forked from rajkosto/odi_keygen.py
ODI SFP XPON stick MAC_KEY generator
#!/usr/bin/env python3
#ODI DFP-34X-2C2 MAC_KEY key generator by rajkosto
import sys
import string
import hashlib
args = sys.argv
if len(args) != 2:
sys.exit("Usage: odi_keygen.py YOURMACADDR")
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/hostname string debian
d-i netcfg/wireless_wep string
d-i mirror/country string manual
d-i mirror/http/hostname string deb.debian.org
d-i mirror/http/directory string /debian
nobody@4b597cc4e405:/config/www/nextcloud/updater$ php updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty
Current version is 17.0.2.
Update to Nextcloud 17.0.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-17.0.3.zip
Open changelog ↗
Steps that will be executed:
nobody@4b597cc4e405:/config/www/nextcloud/updater$ php updater.phar -n
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty
Current version is 17.0.2.
Update to Nextcloud 17.0.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-17.0.3.zip
Open changelog ↗
Updater run in non-interactive mode.
nobody@4b597cc4e405:/config/www/nextcloud/updater$ php updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty
Current version is 17.0.2.
Update to Nextcloud 17.0.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-17.0.3.zip
Open changelog ↗
Steps that will be executed:
eb 23 11:12:23 foosha kernel: traps: gnome-shell[4341] general protection ip:7fbe953ceb68 sp:7ffe17853340 error:0 in libglib-2.0.so.0.4600.2[7fbe95369000+137000]
Feb 23 11:12:23 foosha NetworkManager[740]: <error> [1456200743.590216] [/var/tmp/portage/net-misc/networkmanager-1.0.10-r1/work/NetworkManager-1.0.10/src/vpn-manager/nm-vpn-connection.c:1977] get_secrets_cb(): Failed to request VPN secrets #3: (4) No agents were available for this request.
Feb 23 11:12:23 foosha NetworkManager[740]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Feb 23 11:12:23 foosha polkitd[773]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.159, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF8) (disconnected from bus)
Feb 23 11:12:23 foosha gnome-session[3866]: gnome-session-binary[3866]: WARNING: Application 'gnome-shell.desktop' killed by signal 11
Feb 23 11:12:23 foosha gnome-session-binary[3866]: WARNING: Application
root@w8970v1:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "u-boot"
mtd1: 006a0000 00010000 "firmware"
mtd2: 00514dfc 00010000 "rootfs"
mtd3: 002a0000 00010000 "rootfs_data"
mtd4: 00100000 00010000 "dsl_fw"
mtd5: 00010000 00010000 "config"
mtd6: 00030000 00010000 "boardconfig"
$ java -jar ../../../../tools/apktool.jar d MiuiHome.apk
I: Using Apktool 2.0.0 on MiuiHome.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/damex/apktool/framework/1.apk
I: Loading resource table from file: /home/damex/apktool/framework/8.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
diff --git a/profiles/package.unmask/funtoo-unmask b/profiles/package.unmask/funtoo-unmask
index cb1e1f2..7903fc6 100644
--- a/profiles/package.unmask/funtoo-unmask
+++ b/profiles/package.unmask/funtoo-unmask
@@ -1,17 +1,22 @@
# FL-2190, temporarily revert Gentoo last rites to give us more time
-app-emulation/emul-linux-x86-baselibs
-app-emulation/emul-linux-x86-cpplibs
-app-emulation/emul-linux-x86-db
-app-emulation/emul-linux-x86-gstplugins
diff --git a/app-admin/eselect-opengl/eselect-opengl-1.3.1-r3.ebuild b/app-admin/eselect-opengl/eselect-opengl-1.3.1-r3.ebuild
index 6e90215..2a7baca 100644
--- a/app-admin/eselect-opengl/eselect-opengl-1.3.1-r3.ebuild
+++ b/app-admin/eselect-opengl/eselect-opengl-1.3.1-r3.ebuild
@@ -26,9 +26,9 @@ IUSE=""
DEPEND="app-arch/xz-utils"
RDEPEND=">=app-admin/eselect-1.2.4
- >=media-libs/mesa-10.3.7-r2
- >=x11-proto/glproto-1.4.17-r1