Skip to main content

Posts

Showing posts from April, 2022

gentoo mimeo

 https://xyne.dev/projects/mimeo/ download tar.gz from src https://xyne.dev/projects/mimeo/src/ https://xyne.dev/projects/mimeo/src/mimeo-2021.11.tar.xz  tar -xf mimeo-2021.11.tar.xz python setup.py install --prefix=~/.local  --optimize=1   depends on pyxdg  https://pypi.org/project/pyxdg/#files pip3 install pyxdg or  build from src https://files.pythonhosted.org/packages/6f/2e/2251b5ae2f003d865beef79c8fcd517e907ed6a69f58c32403cec3eba9b2/pyxdg-0.27.tar.gz tar -xf pyxdg-0.27.tar.gz python setup.py install --prefix=~/.local  --optimize=1   open file  mimeo path/filename -q to quiet   find application .desktop files    mimeo --app2desk zathura zathura   org.pwmt.zathura-pdf-mupdf.desktop   org.pwmt.zathura.desktop  mimeo --add 'glob:text/*' medit.desktop      

libreoffice math

 {partial^2 u} over {partial x^2} +{ partial^2 u} over{ d y^2 }   https://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.1/HTML/GS5109-GettingStartedWithMath.html

coffe types

  src:: https://www.yuzubakes.com/food-blog/different-types-of-coffee

void musl bootstrap

 1. choose appropriate mirror:: https://docs.voidlinux.org/xbps/repositories/mirrors/index.html download static xbps:: 2. goto https://alpha.de.repo.voidlinux.org/static/  (or repo chosen in 1/static) scroll to bottom for latest this time (apr 13 2022) latest was :: https://alpha.de.repo.voidlinux.org/static/xbps-static-static-0.59_5.x86_64-musl.tar.xz  3.mv xbps-static-static-0.59_5.x86_64-musl.tar.xz  ~/xbps 3.tar -xf  xbps-static-static-0.59_5.x86_64-musl.tar.xz  4. cd ~/xbps/usr/bin for glibc remove musl in REPO and ARCH= x86_64 , x86_64-musl , i686, aarch64 REPO=https://alpha.de.repo.voidlinux.org/current/musl ARCH=x86_64 -musl  XBPS_ARCH=$ARCH ./xbps-install -S -r /mnt -R "$REPO" base-system or   XBPS_ARCH= x86_64 -musl  ./xbps-install -S -r /mnt -R " https://alpha.de.repo.voidlinux.org/current/musl " base-system  base-minimal for minimal linux5.15 kernel gsettings-desktop-schemas  

firefox shlibs

       --ro-bind /usr/lib/libpthread.so.0 /usr/lib/libpthread.so.0 \      --ro-bind /usr/lib/libdl.so.2 /usr/lib/libdl.so.2  \      --ro-bind  /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6 \      --ro-bind /usr/lib/libm.so.6 /usr/lib/libm.so.6 \      --ro-bind /usr/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1 \      --ro-bind /usr/lib/libc.so.6 /usr/lib/libc.so.6 \      --ro-bind /usr/lib64/ld-linux-x86-64.so.2 /usr/lib64/ld-linux-x86-64.so.2      --ro-bind /usr/lib/librt.so.1 /usr/lib/librt.so.1 \      --ro-bind /usr/lib/libgtk-3.so.0 /usr/lib/libgtk-3.so.0 \      --ro-bind /usr/lib/libgdk-3.so.0 /usr/lib/libgdk-3.so.0 \      --ro-bind /usr/lib/libgmodule-2.0.so.0 /usr/lib/libgmodule-2.0.so.0 \      --ro-bind /usr/lib/libglib-2.0.so.0 /usr/lib/libglib-2.0.so.0 \      --ro-bind /usr/lib/libgobject-2.0.so.0 /usr/lib/libgobject-2.0.so.0 \      --ro-bind /usr/lib/libgio-2.0.so.0 /usr/lib/libgio-2.0.so.0 \      --ro-bind /usr/lib/libpangocairo-1.0.so.0 /usr/lib/libpangocairo-1.0.so.0 \     

debian waybar no clock module

"custom/clock": {         "exec": "date '+%a %d %b %I:%M:%S %p' ",         "format": "{}",               "interval": 1     },     "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",   date library haven't got a release since 2018. so no clock module in debian

mac address

 format MM:MM:MM:SS:SS:SS total 48 bit, 6 hex  MM=vendor prefix=Adapter manufacturer registers in ieee SS=deice identifier= id no for specific device https://standards.ieee.org/products-programs/regauth/ manufacturer database :: https://gitlab.com/wireshark/wireshark/-/raw/master/manuf   new network require 64 bit mac address,for old mac address FFFE is added between vendor prefix and device identifier to make it 64 bit.

mime alpine

> app describe mimes supported in desktop entry (.desktop) file using MimeType= >> desktop-file-utils builds cache database of MIME types handled by desktop entries  in   $XDG_DATA_DIRS/applications/mimeinfo.cache /usr/share/applications/mimeinfo.cache    using cmd:: /usr/bin/update-desktop-database --quiet /usr/bin/update-mime-database /usr/share/mime >>>mimetypes defined in /usr/share/mime/packages/   doas apk add xdg-user-dirs xdg-usr-dirs-update cat /usr/share/applications/mimeinfo.cache | wl-copy  vi .config/mimeapps.list  paste and remove [MIME Cache]    https://archlinux.org/packages/extra/x86_64/desktop-file-utils/ https://www.freedesktop.org/wiki/Software/desktop-file-utils/ https://gitlab.freedesktop.org/xdg/desktop-file-utils https://github.com/archlinux/svntogit-packages/blob/packages/desktop-file-utils/trunk/update-desktop-database.hook  https://man.archlinux.org/man/update-desktop-database.1 https://github.com/archlinux/svntogit-packages/blob/packag

alpine linux nasm hello world

doas apk add nasm musl-dev nano hello.asm  ----------------------------------------------------------------------------- section .data msg: DB 'Hello World!', 10 msgSize EQU $ - msg global start section .text start:     mov rax, 4          ; function 4     mov rbx, 1          ; stdout     mov rcx, msg        ; msg     mov rdx, msgSize    ; size     int 0x80     mov rax, 1          ; function 1     mov rbx, 0          ; code     int 0x80     ret ----------------------------------------------------------------------------- nasm -f elf64 -g hello.asm ld -e start -o hello hello.o ./hello Hello world! src:: https://dev.to/tomassirio/hello-world-in-asm-x8664-jg7