Skip to main content


Showing posts from October, 2022

efistub combo .efi creator debian

cat      -----------------------------------------------------------------------------------------------------------------------------                                 #!/bin/bash TARGET=/boot BOOTDIR=/boot UCODE=$BOOTDIR/intel-ucode.img EFISTUB=/usr/lib/systemd/boot/efi/linuxx64.efi.stub echo "Updating EFI kernels..." for k in $BOOTDIR/vmlinuz*; do         NAME=$(basename $k|sed 's/vmlinuz-//')         echo "  Building $NAME"         INITRD="$BOOTDIR/initrd.img-$NAME" ls /boot         if [ -f "$UCODE" ]; then                 cat "$UCODE" "$INITRD" > /tmp/initrd.bin                 INITRDFILE=/tmp/initrd.bin         else                 # Do not fail on AMD systems                 echo "    Intel microcode not found. Skipping."                 INITRDFILE="$INITRD"         fi         # Check for custom command line for the kernel.         CMDLINE="$BOOTDIR/cmdline-$NAME.txt&quo

bruch test

  doas  bash -l  -src chromeos.bin -dst  ~/tmpmount/chromeos.img -s 18 doas (kai@kat) password: Creating image file Creating partition table... 0BF210F5-3004-3C41-8B32-087CE69182CC        start        size    part  contents            0           1          PMBR (Boot GUID: 0BF210F5-3004-3C41-8B32-087CE69182CC)            1           1          Pri GPT header            2          32          Pri GPT table     19255304    18493384       1  Label: "STATE"                                   Type: Linux data                                   UUID: BAA4C007-CA96-0848-9436-256EADE4E345      2117638       65536       2  Label: "KERN-A"                                   Type: ChromeOS kernel                                   UUID: 0F3D825E-8F59-974B-81C7-FEB8900207F8                                   Attr: priority=15 tries=15 successful=0     10866696     8388608       3  Label: "ROOT-A"                                   Type: ChromeOS rootfs

extract xbps in debian bullseye

 apt install p7zip zstd or download for linux put in path    use file to check xbps compression method pkg .xbps: Zstandard compressed data (v0.8+), Dictionary ID: None zstdcat <xbpsfile> | 7z l -ttar -si # list files zstdcat <xbpsfile> | 7z x -ttar -si # extract files        src:: 

ls color fix

  dircolors -p > ~/.dircolors  eval $( dircolors ~/.dircolors)   edit STICKY_OTHER_WRITABLE and OTHER_WRITABLE     34;42 (34 is blue, 42 is green)

foot color emoji

mkdir -p ~/.config/fontconfig/conf.d/ cd ~/.config/fontconfig/conf.d/ nano 75-joypixels.conf    ----------------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig>     <!--     This adds a generic family 'emoji',     aimed for apps that don't specify specific font family for rendering emojis.     -->     <match target="pattern">         <test qual="any" name="family"><string>emoji</string></test>         <edit name="family" mode="assign" binding="same"><string>JoyPixels</string></edit>     </match>     <!--     This adds JoyPixels as a final fallback font for the default font families.     In this case, JoyPixels will be selected if and only if no othe

adding new lyricssource to osdlyrics

debian repos has old sources to add new to it  from $ mkdir -p $HOME/.local/share/dbus-1/services/ mkdir -p  $HOME/.local/lib/osdlyrics/lyricsources/   to add   download and edit   [D-BUS Service] Name=org.osdlyrics.LyricSourcePlugin.megalobiz Exec=@PYTHON@ @pkglibdir@/lyricsources/megalobiz/       as org.osdlyrics.LyricSourcePlugin.megalobiz.service.service   [D-BUS Service] Name=org.osdlyrics.LyricSourcePlugin.megalobiz Exec=/usr/bin/python3 /home/kai/.local/lib/osdlyrics/lyricsources/megalobiz/   just expand @PYTHON@ @pkglibdir@      copy to  $HOME/.local/lib/osdlyrics/lyricsources/megalobiz/

kiss linux test   ##download latest tarball   find latest from   #dnload using curl ver=2021.7-9  url=$ver  file=kiss-chroot-$ver.tar.xz  curl -fLO "$url/$file"    ##mount root partition to install to /mnt  mkfs.ext4 /dev/nvme0n1p1  mount /dev/nvme0n1p1 /mnt cd /mnt  tar xvf "$OLDPWD/$file"  or   sudo tar -xvf ~/Downloads/kiss-chroot-2021.7-9.tar.xz    /mnt/bin/kiss-chroot /mnt         ## inside chroot   passwd root adduser  kai su kai cd git clone   ##setup repos vi  .profile  export KISS_PATH='' KISS_PATH=/home/kai/repo/core KISS_PATH=$KISS_PATH:/home/kai/repo/extra KISS_PATH=$KISS_PATH:/home/kai/repo/wayland . ~/.profile  kiss search \*    ## enable sig verification kiss build gnupg1    $ gpg --keyserver --recv-key 13295DAC2CF13B5C $ echo tr

dell fan

  sudo apt-get install i8kutils sudo modprobe dell-smm-hwmon force=1   sudo apt-get install lm-sensors sudo sensors-detect   snesors now shows fan status   for control sudo modprobe i8k force=1       sudo systemctl start i8kmon.service   i8kctl fan 1 1 set both fan to low speed  


    adb devices   adb shell adb -s <device̠-number> shell  adb tcpip 5555 adb shell ip route | awk '{print $9}'   adb connectː5555   adb start-server adb kill-server adb reboot adb reboot recovery adb reboot bootloader adb push files /storage/on/device adb push myfolder /storage/on/device   #push folder only adb push myfolder/ /storage/on/device   #push all files in folder ## use pull instead of push for pulling file/folder   adb shell getprop adb shell setprop key value  adb shell service call <your_service_name> <number at which the function appears in your_service_name.aidl> <type of the argument like i32 or i64> <argument> adb shell service list adb shell service call iphonesubinfo 1 adb shell service call iphonesubinfo 1| cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g'   service call iphonesubinfo 3 i32 1 | grep -oE '[0-9a-f]{8} ' | while read hex; do echo -ne "\u${hex:4:4}\u${h

mpv lyrics plugin   cd ~/.config/mpv/plugins git clone   chmod +x   mv  scripts-opts ..   alt+m to download lyrics needs metadata to download else fails     cat ~/.config/mpv/mpv.conf sub-font-size=100   fir big lyrics font  The default shortcuts for adjusting subtitle font size: shitft + g : to increase font size shitft + f : to decrease font size   files:: @Mon Oct 10 01:03:11 PM +0545 2022 #!/bin/sh lrc_path = $( printf %s \\ n '{ "command": ["get_property", "path"] }' | socat - /tmp/mpv-socket | jq -r .data ) [ " $lrc_path " ] || exit 1 lrc_path = ${ lrc_path %.* } .lrc case $lrc_path in /* ) ;; * ) lrc_path = $( printf %s \\ n '{ "command": ["get_property", "working-directory"] }' | socat - /tmp/mpv-socket |