Initialise Pool zpool create pool /dev/sdd /dev/sde The pool names mirror, raidz, draid, spare and log are reserved, as are names beginning with mirror, raidz, draid, and spare. Pool Size with Different Disk Sizes When creating a ZFS pool with disks of different sizes, the total usable size of the pool depends on the RAID configuration and the size of the smallest disk in the pool. ZFS aligns the storage capacity of all disks in a vdev to the smallest disk in that vdev....
Get location of wallpaper in windows 11
Using powershell Option 1 Get-ItemPropertyValue 'Registry::HKEY_CURRENT_USER\Control Panel\Desktop' -Name WallPaper Option 2 $TIC=(Get-ItemProperty 'HKCU:\Control Panel\Desktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache [System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\\])+','$2' SRC: https://www.thewindowsclub.com/how-to-find-the-current-desktop-background-image-in-windows
IPv6 on Docker Daemon
Create /etc/docker/daemon.json with following content. { "ipv6": true, "fixed-cidr-v6": "2001:db8:1::/64" } Restart docker with systemctl restart docker. docker run \ -d -ti -p [IPV6-PUBLIC-IP]:PUBLICPORT:CONTAINERPORT --name test test_docker_image SRC: https://docs.docker.com/config/daemon/ipv6/
IPv6 on WSL2
Create .wslconfig in user home directory (%userprofile%) and add following. [wsl2] networkingMode=mirrored If file already exists, update it. Each network interface will be ethx $ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 00:00:00:00:00:01 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 00:00:00:00:00:02 brd ff:ff:ff:ff:ff:ff 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:00:00:00:00:03 brd ff:ff:ff:ff:ff:ff inet 192....
वात्रटिका
तो तिच्या वर चढला, म्हणून तुम्ही का हो त्याला नडला, शिडी त्याचीच, चढणारही तोच, तुम्हाला का हो लागली त्याची बोच ? त्याने तिची नाडी ओढली, तुम्हाला त्याची का हो पडली, चड्डी त्याचीच, ओढणार ही तोच, तुम्हाला का हो लागली त्याची बोच ? त्याने तिचे दोन्ही दाबले, तोंड तुमचे का हो आंबले, साईकल त्याची, ब्रेकही दाबणार तोच, तुम्हाला का हो लागली त्याची बोच ? त्याने तिला तेल लावून रगडली, तुमची तब्बेत का हो बिघडली, मानही त्याचीच, रगडणार ही तोच, तुम्हाला का हो लागली त्याची बोच ?...
Python Programming using Unicode
Code काहीनाही = None लिहा = print class सूर: def __init__(स्वतः, नाव): स्वतः.नाव = नाव स्वतः._वाहन = काहीनाही def माहिती(स्वतः): return {'नाव': स्वतः.नाव, 'वाहन': स्वतः.वाहन} @property def वाहन(स्वतः): return स्वतः._वाहन @वाहन.setter def वाहन(स्वतः, मूल्य): स्वतः._वाहन = मूल्य अनेक_सूर = [ सूर('पार्वती') सूर('गणपती'), सूर('शंकर'), सूर('कार्तिक') ] अनेक_सूर[0].वाहन = 'वाघ' अनेक_सूर[1].वाहन = 'मूषक' अनेक_सूर[2].वाहन = 'बैल' अनेक_सूर[3].वाहन = 'मोर' for एक_सूर in अनेक_सूर: लिहा(एक_सूर.नाव, '->', एक_सूर.वाहन) लिहा(एक_सूर.माहिती()) Output पार्वती -> वाघ {'नाव': 'पार्वती', 'वाहन': 'वाघ'} गणपती -> मूषक {'नाव': 'गणपती', 'वाहन': 'मूषक'} शंकर -> बैल {'नाव': 'शंकर', 'वाहन': 'बैल'} कार्तिक -> मोर {'नाव': 'कार्तिक', 'वाहन': 'मोर'}
Split Indic Words
Python Code import unicodedata def split_clusters(txt): """ Generate grapheme clusters for the Devanagari text.""" cluster = u'' end = False for char in txt: category = unicodedata.category(char) if (category == 'Lo' and end ) or category[0] == 'M': cluster = cluster + char else: if cluster: yield cluster cluster = char end = unicodedata.name(char).endswith(' SIGN VIRAMA') if cluster: yield cluster Go Code import ( "strings" "unicode" "golang.org/x/text/unicode/runenames" ) func splitClusters(txt string) (ret []string) { cluster := "" end := false for _, x := range txt { if (unicode....
Always Ask, Never Assume
The CNN photographer John was told that a twin engine plane would be waiting at the airport. Arriving at the airport he spotted a plane warming up outside the hangar. He jumped in & said: “Lets go.” The pilot happily took off. Once in the air John told the Pilot: “Fly low over the valley so I can take pictures of the fire on the hill.” Pilot: “Why?” John: “I’m the photographer for CNN....
IPv6 only experiment
For long time was wondering whether I can shift to 100% IPv6 stack. Finally decided to give it a try. List of site which were evaluated. Category Name IPv6 Ready AntiVirus Macafee No AntiVirus Norton No AntiVirus QuickHeal No Astronomy IUCAA No Banking Axis Bank (Akamai) Yes Banking Axis Bank Netbanking No Banking HDFC Bank Yes Banking HDFC Bank Netbanking No Banking IDBI Bank Yes Banking IDBI Bank Netbanking No* Banking SBI Yes Banking SBI Netbanking Yes Blog Medium (CloudFlare) Yes Blog Wordpress No CDN CloudFlare Yes Cloud Hosting Amazon AWS No Cloud Hosting DigitalOcean Yes Cloud Hosting Heroku No Cloud Hosting Linode Yes Cloud Hosting Oracle Cloud Yes Cloud Infra Open Stack (CloudFlare) Yes Database DuckDB (CloudFlare) Yes Database MariaDB Yes Database MongoDB (CloudFront) Yes Database PostgreSQL Yes Database Sqlite Yes Development BitBucket Yes Development GitHub No Development GitLab Yes Development MDN a....
Random Color for iTerm Tabs
Add following in $HOME/.zshrc function color { case $1 in random) t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;red;brightness;${t}\a" t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;green;brightness;${t}\a" t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;blue;brightness;${t}\a" ;; esac } color random