Skip to main content

Posts

edge ua for ff

  general.useragent.override  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/123.0.2420.97   https://www.useragents.me/#latest-windows-desktop-useragents  https://www.whatismybrowser.com/guides/the-latest-user-agent/edge 
Recent posts

debian systemd to sysv test

 replace dbus-broker with dbus mkdir -p ~/.config/pipewire/pipewire.conf.d/   cat .bin/wm export WLR_NO_HARDWARE_CURSORS=1 #export LIBVA_DRIVER_NAME=iHD dbus-run-session sway   for some reason hw acceleration not working without adding user to render group systemctl is loginctl now due to elogind loginctl reboot loginctl poweroff extra non-free driver sudo apt install intel-media-va-driver-non-free   read beofre switching init https://wiki.debian.org/Init  for running system apt --download-only install sysvinit-core libpam-elogind systemctl rescue apt install /var/cache/apt/archives/*.deb     for chroot in live boot  sudo apt-get install sysvinit-core sysvinit-utils     apt-get remove --purge systemd libsystemd0 libpam-systemd apt install dbus deborphan   apt autoremove libcryptsetup12 libargon2-1  libxtst6 libnspr4  libxtst6 libnss3  libevent-2.1-7    dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs  dpkg --purge nano /etc/apt/preferences.d/ignored-packages Packa

dbus-broker mpris

cat playerctl.sh #!/usr/bin/env bash # Check if a parameter is provided if [ -z "$1" ]; then     echo "Please provide a command (n)ext, (pp)play-pause, (p)revious, (s)top)."     exit 1 fi # Map input parameters to MPRIS commands declare -A commands=(     ["n"]="Next"     ["pp"]="PlayPause"     ["p"]="Previous"     ["s"]="Stop" ) # Find all MPRIS-compatible media player instances of Firefox player=$(busctl --user list | grep 'org.mpris.MediaPlayer2.firefox' | awk '{print $1}') echo $player # Send the corresponding command to each found Firefox instance for instance in $player; do     busctl --user call "$instance" /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player "${commands[$1]}" done edit  player=$(busctl --user list | grep 'org.mpris.MediaPlayer2' | awk '{print $1}') to control all player at once

itihas siromoni baburam acharya

  The Bloodstained Throne: Struggles for Power in Nepal (1775-1914) Chin, Tibet ra Nepal Purana Kavi ra Kabita General Bhimsen Thapa: Yinko Utthan ra Patan Nepalko Sanskritic Parampara Hamro Rastrabhasa Nepali Shree Panch Pratapsingh Shah Prachinkaalko Nepal Nepalko Samchhipta Britanta Shree Panch Prithvi Narayan Shah ko Samchhipta Jeewani Baburam Acharya ra Unka Kriti

copy debian root to another partition(disk failure)

sudo mount /dev/sda1 /mnt cp -dpx /bin /lib /lib64 /sbin /mnt cp -dprx /boot /etc /usr /var /mnt mkdir dev efi home  mnt proc root run  sys tmp media srv          -d     same as --no-dereference --preserve=links        -p     same as --preserve=mode,ownership,timestamps   -R, -r, --recursive               copy directories recursively   -x, --one-file-system               stay on this file system   adjust uuid= in /efi/loader/entries/debian.conf    setperm #!/bin/bash # Set permissions for /dev chmod 755 /dev # Set permissions for /efi chmod 700 /efi # Set permissions for /home chmod 755 /home # Set permissions for /media chmod 755 /media # Set permissions for /mnt chmod 755 /mnt # Set permissions for /proc chmod 555 /proc # Set permissions for /root chmod 550 /root # Set permissions for /run chmod 755 /run # Set permissions for /srv chmod 755 /srv # Set permissions for /sys chmod 555 /sys # Set permissions for /tmp chmod 1777 /tmp echo "Permissi

clolured mandoc debian

 sudo apt install mandoc   nano ~/.bashrc man() {         env \         LESS_TERMCAP_md=$'\e[1;36m' \         LESS_TERMCAP_me=$'\e[0m' \         LESS_TERMCAP_se=$'\e[0m' \         LESS_TERMCAP_so=$'\e[1;40;92m' \         LESS_TERMCAP_ue=$'\e[0m' \         LESS_TERMCAP_us=$'\e[1;32m' \         mman "$@" }