Skip to main content


Showing posts from February, 2022

xft-brga from src on void   libXrender libXext   xorg-util-macros   libX11-devel libXext-devel libXrender-devel   pulls  libXext-devel freetype-devel   fontconfig-devel   git   pkgconf curl   git clone --depth=1 curl -Ls https :// / xorg / lib / libxft / merge_requests / 1 . patch | patch -p1 sh --sysconfdir =/ etc --prefix =/ usr --mandir =/ usr / share / man make make DESTDIR = " ${pkgdir} " install           source

gentoo install

 tar -xvpf stage3-amd64-hardened-openrc-20220220T170542Z.tar.xz --xattrs-include='*.*' --numeric-owner -C /mnt nano -w /mnt/etc/portage/make.conf COMMON_FLAGS="-march=native -O2 -pipe" MAKEOPTS="-j2" mkdir --parents /mnt/etc/portage/repos.conf cp /mnt/usr/share/portage/config/repos.conf /mnt/etc/portage/repos.conf/gentoo.conf cat /mnt/etc/portage/repos.conf/gentoo.conf [DEFAULT] main-repo = gentoo [gentoo] location = /var/db/repos/gentoo sync-type = rsync sync-uri = rsync:// auto-sync = yes sync-rsync-verify-jobs = 1 sync-rsync-verify-metamanifest = yes sync-rsync-verify-max-age = 24 sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc sync-openpgp-keyserver = hkps:// sync-openpgp-key-refresh-retry-count = 40 sync-openpgp-key-refresh-retry-overall-timeout = 1200 sync-openpgp-key-refresh-retry-delay-exp-base = 2 sync-openpgp-key-refresh-retry-delay-max = 60 sync-openpgp-key-refresh-retry-delay-m

A Tear And A Smile

A Tear And A Smile I would not exchange the sorrows of my heart For the joys of the multitude. And I would not have the tears that sadness makes To flow from my every part turn into laughter. I would that my life remain a tear and a smile. A tear to purify my heart and give me understanding Of life's secrets and hidden things. A smile to draw me nigh to the sons of my kind and To be a symbol of my glorification of the gods. A tear to unite me with those of broken heart; A smile to be a sign of my joy in existence. I would rather that I died in yearning and longing  than that I live Weary and despairing. I want the hunger for love and beauty to be in the Depths of my spirit,for I have seen those who are Satisfied the most wretched of people. I have heard the sigh of those in yearning and Longing, and it is sweeter than the sweetest melody. With evening's coming the flower folds her petals And sleeps, embracingher longing. At morning's approach she op

Gibran Khalil Gibran Do not love half lovers

  “Do not love half lovers Do not entertain half friends Do not indulge in works of the half talented Do not live half a life and do not die a half death If you choose silence, then be silent When you speak, do so until you are finished Do not silence yourself to say something And do not speak to be silent If you accept, then express it bluntly Do not mask it If you refuse then be clear about it for an ambiguous refusal is but a weak acceptance Do not accept half a solution Do not believe half truths Do not dream half a dream Do not fantasize about half hopes Half a drink will not quench your thirst Half a meal will not satiate your hunger Half the way will get you no where Half an idea will bear you no results Your other half is not the one you love It is you in another time yet in the same space It is you when you are not Half a life is a life you didn't live, A word you have not said A smile you postponed A love you have not had A friendsh

nyquist plot

 conda install matplotlib scipy import matplotlib . pyplot as plt from scipy import signal syt = signal . TransferFunction ([ 1 ],[ 1 , 2 , 15 ], dt = 0.06 ) w , H = signal . dfreqresp ( syt ) plt . figure () plt . plot ( H . real , H . imag , "b" ) plt . plot ( H . real ,- H . imag , "r" ) plt . title ( "Nyquist Plot" ) plt . show ()

spotify debian  download deb use xdeb or manually extract ln -s /usr/lib/ ${DESTDIR} /usr/libexec/spotify/ ln -s /usr/lib/ ~/opt/spotify/share/spotify/

install edge on void linux  install with it (cancel and install deps if simply extract) libatomic libsecret needed as deps

The Toddler’s Creed

  The Toddler’s Creed “If I want it, it’s mine.                                                                                                                                                  If I give it to you & I change my mind later, it’s mine.                                                                                     If I can take it away from you, it’s mine.                                                                                                                If I had it a little while ago, it’s mine.                                                                                                                        If it’s mine, it will never belong to anybody else, no matter what.                                                                    If we are building something together, all the pieces are mine.                                                                   If it looks like mine, it is mine.”    Anonymous

i3blocks misc

cat microphone ------------------------------------------------------------------------------------------------------------------------------  #!/bin/bash # Left click if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then   amixer -q sset Capture 5%+ # Middle click elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then   amixer -q sset Capture toggle # Right click elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then   amixer -q sset Capture 5%- fi statusLine=$(amixer get Capture | tail -n 1) status=$(echo "${statusLine}" | grep -wo "on") volume=$(echo "${statusLine}" | awk -F ' ' '{print $5}' | tr -d '[]%') if [[ "${status}" == "on" ]]; then   echo "${volume}%"   echo "${volume}%"   echo "" else   echo "off"   echo "off"   echo "" -----------------------------------------------------------------------------------------------------------------------------  [micropho

nnn test

#for gui cp/mv in linux  wget tar xvJf coreutils-9.0.tar.xz cd coreutils-9.0/ wget patch -p1 -i advcpmv-0.9-9.0.patch #install lib  dependencies , c compiler, and make sudo apt install gcc make libc-dev #read README  ./configure make   cd src cp cp ~/.local/bin/cpg cp mv ~/.local/bin/mvg fallocate -l 5G test.img cpg -g test.img test1.img alias cp='cpg -g' alias mv='mvg -g   for nnn sudo apt-get install pkg-config libncursesw5-dev libreadline-dev  git clone --depth=1 cd nnn make O_NERD=1 cp nnn ~/.local/bin/ sudo apt install bsdtar unrar rar zip unzip archivemount atool sudo apt install tabbed   cp ~/nnn/plugins/* ~/.config/nnn/plugins/ nano .bashrc export NNN_BMS='d:~/Documents;p:~/mnt/pods/;D:~/Downloads/'  export NNN_COLORS="2136" export NNN_PLUG='f:finder;o:fzopen' export SUDO_ASKPASS=/ho

wpa supplicant

 cat wi ----------------------------------------------------------------------------------------------------------- sudo  wpa_supplicant -B -D nl80211 -i wlan0 -c ~/.config/wifi.conf sudo dhcpcd wlan0 ----------------------------------------------------------------------------------------------------------- cat stop wi ----------------------------------------------------------------------------------------------------------- sudo pkill dhcpcd sudo pkill wpa_supplicant ----------------------------------------------------------------------------------------------------------- cat  ~/.config/wifi.conf  ----------------------------------------------------------------------------------------------------------- ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=sudo update_config=1 network={         ssid="ssid1"         scan_ssid=1         psk="password1" } network={         ssid="Asesh"         psk="password2" } -----------------------------------------

pcmanfm-qt mpv actions

$HOME/.local/share/file-manager/actions/ ---------------------------------------------------------------------------------------------------------------- [Desktop Entry] Type=Action TargetToolbar=true ToolbarLabel=Play in MPV Name=Play in MPV Icon=mpv Profiles=foobar; [X-Action-Profile foobar] Exec=mpv  --player-operation-mode=pseudo-gui  %F MimeTypes=inode/directory; ---------------------------------------------------------------------------------------------------------------- [Desktop Entry] Type=Action TargetToolbar=true ToolbarLabel=Play in MPV Name=Play in mpv Icon=mpv Profiles=foobar; [X-Action-Profile foobar] SelectionCount=>1 Exec=mpv --player-operation-mode=pseudo-gui %F MimeTypes=audio/*;video/*; Schemes=file; -------------------------------------------------------------------------------------------------------------------------------

how to stop oversensitivity(emotional)

Realize that it’s most likely not about you Give silence a try Be realistic Value your own approval Understand that negative feelings take time and effort to maximize Practice controlling your emotions Keep your attention in the present.  src:

freedesktop standard

 XDG = Cross-Desktop Group     specs:   Autostart   Desktop base directories (basedir)   Desktop entries (.desktop)   Desktop menus (menu)   File manager D-Bus interface   File URIs   Free media player specifications   Media Player Remote Interfacing Specification (MPRIS)   Shared MIME database (shared-mime-info)   Startup notifications   Trash   XML Bookmark Exchange Language (XBEL)     x11 specs DnD   UTF8_STRING   Window manager specification     X clipboard explanation     ------------------------------------------------------------------------------------------------------------------   1. autostart-spec $XDG_CONFIG_DIRS/autostart no XDG_CONFIG_HOME     use    ~/.config/autostart/   no $XDG_CONFIG_DIRS use    /etc/xdg/autostart/    mount media  () autostart files: precendence: .autorun, autorun, () autoopen :precedence: .autoopen, autoopen    ---------------------------------------------------------------------------------------------------------------

mime type

 sudo update-desktop-database --quiet /usr/share/applications/mimeinfo.cache /usr/local/share/applications/mimeinfo.cache mime types defined in  /usr/share/mime/packages/ /usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 /usr/bin/update-mime-database /usr/share/mime    doas update-mime-database  -V /usr/share/mime Updating MIME database in /usr/share/mime... Parsing source file /usr/share/mime/packages/ Parsing source file /usr/share/mime/packages/libfm.xml... Wrote 1157 strings at 2c - 65d8 Wrote aliases at 65d8 - 6ee4 Wrote parents at 6ee4 - 87d8 Wrote literal globs at 87d8 - 88cc Wrote suffix globs at 88cc - 13d58 Wrote full globs at 13d58 - 13db0 Wrote magic at 13db0 - 20828 Wrote namespace list at 20828 - 20970 Wrote icons list at 20970 - 20974 Wrote generic icons list at 20974 - 215d0 Wrote types list at 215d0 - 22288   remove  mime-database   rm -f usr/share/mime/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}  

redshift config

 [redshift] location-provider=manual [manual] lat=27.7142 lon=85.3145

sed test

  sed -i 's/old-text/new-text/g' input.txt   if / is in  text escape it with \    append something at end  sed -i 's/$/.jpg/'  test  vim delete odd lines :1d|g/^/+d    even  delete :g/^/+d   wget download list of file wget -l list