I do not contemplate either the past or the future: my attention is constantly directed to the present. I do what has to be done in the present, without thinking of the results. Without considerations of being or non-being, desirable and undesirable, I remain in the self: hence I am happy, healthy and free from illness.
...I do not entertain vain notions like, "I have obtained this and I shall gain that, too." I do not praise nor do I censure anyone (neither myself nor others) or anything at any time; my mind does not exult on gaining what is considered good nor does it become depressed on obtaining what is considered evil; hence my state of happiness and health. I embrace the supreme renunciation, having renounced even the desire to live; thus my mind does not entertain cravings but is peaceful and balanced. I behold the one common substratum in all things (a piece of wood, a beautiful woman, a mountain, a blade of grass, ice and fire and space) and I am not worried by thoughts like, "What shall I do now?" nor "What shall I get tomorrow morning?" I am not bothered by thoughts of old age and death, or by longing for happiness, nor do I regard some as "mine" and others as "not-mine". I know that everything at all times, everywhere, is but the one cosmic consciousness. These are the secrets of my state of happiness and health. I do not think, "I am the body," even while engaged in physical activity as I know this world-appearance to be illusory and live in it as if fast asleep. I am disturbed neither by prosperity nor by adversity when they are granted to me, as I regard them with equal vision (even as I look upon both my arms as arms). Whatever I do is untainted by desire or the mud of ego-sense; thus I do not lose my head when I am powerful or go begging when I am poor; I do not let hopes and expectations touch me and even when a thing is old and worn out I look upon it with fresh eyes as if it were new. I rejoice with the happy ones and share the grief of the grief-stricken, for I am the friend of all, knowing I belong to none and none belongs to me. I know that I am the world, all the activities in it and its intelligence.
From The Story of Bhuśuṇḍa in Part 6 (On Liberation) of Swami Venkatesananda's Vasiṣṭha's Yoga, an abbreviated and translated version of Yoga-Vāsiṣṭha. See also Vihārilāla Mitra's complete 19th century English translation, The Yoga-Vásishtha-Mahárámáyana in four volumes: 1, 2, 3, 4.
/misc | Feb 15, 2021
An Internet search for "TIFF editor for Windows" turns up several shareware options, none of which outperformed IrfanView's built-in Paint plugin* for erasing stray marks from B&W CCITT G4 TIFs and resaving with the same compression algorithm:
ImageJ and Fiji offer only limited and buggy TIF CCITT G4 support, especially for batch processing.
* Formerly IrfanPaint. Launch via F12.
/windows | Feb 15, 2021
/windows | Feb 15, 2021
Especially handy for switching between color and E Ink monitors. Paste into Script Editor and export as a Run-only application. Launch via Spotlight, Alfred, etc. Tested under macOS Catalina 10.15.7.
-- toggle True Tone, Night Shift, Grayscale, and Dark Mode quit application "System Preferences" -- True Tone & Night Shift tell application "System Preferences" reveal pane "Displays" end tell tell application "System Events" to tell process "System Preferences" click checkbox 1 of tab group 1 of window 1 click radio button 3 of tab group 1 of window 1 click checkbox 1 of tab group 1 of window 1 end tell -- Grayscale -- assumes that user has hitherto set "Filter type:" to "Grayscale" in Accessibility > Display > Color Filters tell application "System Preferences" reveal anchor "Seeing_ColorFilters" of pane "Accessibility" end tell tell application "System Events" to tell process "System Preferences" to tell window "Accessibility" click the checkbox "Enable Color Filters" of tab group 1 of group 1 end tell quit application "System Preferences" -- Dark Mode tell application "System Events" tell appearance preferences set dark mode to not dark mode end tell end tell -- thanks to: -- marshallhiens: https://discussions.apple.com/thread/251336894?answerId=252595525022#252595525022 -- cfriend: https://forum.keyboardmaestro.com/t/toggle-night-shift/11175 -- Tyler: https://stackoverflow.com/a/58469753 -- MirRelevant: https://www.reddit.com/r/mac/comments/8oztql/how_to_quickly_switch_between_light_and_dark_mode/
/mac | Feb 07, 2021
Tested under macOS 10.15.7 Catalina:
Automator → File → New → Quick Action → Choose
Workflow receives current: files or folders in: Finder.app
Actions → Library → Files & Folders → drag "Open Finder Items" into Workflow area
Open with: Sublime Text.app
File → Save → Open with Sublime Text → Save (will be saved to "~/Library/Services/Open with Sublime Text.workflow")
System Preferences → Keyboard → Shortcuts → Services → Files and Folders → Open with Sublime Text → set keyboard shortcut as desired (Command S in the screenshot)
/mac | Feb 01, 2021
Modern versions: ~/Library/Containers/com.apple.corerecents.recentsd/Data/Library/Recents/
Legacy versions: ~/Library/Application Support/AddressBook/
Importing the Previous Recipients to a new Mac is as easy as pasting the first set above and rebooting.
/mac | Jan 31, 2021
Use Disks to format (e.g., ext4) new disk and set to automount (gear icon → Edit Mount Options... → disable "User Session Defaults" → enable "Mount at system startup" → configure Mount Point as desired, e.g., /newhome)
Boot into recovery mode (via Shift for BIOS systems or Esc for UEFI systems* → Advanced options for Linux Mint... → Linux Mint...(recovery mode)) and select root
mount -o rw,remount /
usermod -d /newhome/bob -m bob
*If you find yourself at a grub> prompt, type
normal → Enter → Esc.
On one test system, had to reenable autologin afterwards:
Rather than moving the entire home directory, individual folders like Desktop and Downloads can be redirected by editing ~/.config/user-dirs.dirs then running
More complicated and error-prone methods top the search results; they may come in handy if Disks or
usermod is not available:
Adrian Ho's answer, which points out some advantages of this method over more manual processes, including "No typos possible - the home directory and /etc/passwd are guaranteed to remain in sync." and "In addition to the normal permissions, usermod also automatically preserves any ACLs (access control lists) and extended attributes."
/nix | Jan 28, 2021
|I MET a Traveller from an antique land,
Who said, “Two vast and trunkless legs of stone
Stand in the desart. Near them, on the sand,
Half sunk, a shattered visage lies, whose frown,
And wrinkled lip, and sneer of cold command,
Tell that its sculptor well those passions read,
Which yet survive, stamped on these lifeless things,
The hand that mocked them, and the heart that fed:
And on the pedestal these words appear:
“My name is OZYMANDIAS, King of Kings.”
Look on my works ye Mighty, and despair!
No thing beside remains. Round the decay
Of that Colossal Wreck, boundless and bare,
The lone and level sands stretch far away.
Percy Bysshe Shelley in the January 11, 1818 edition of The Exmainer, under the penname of Glirastes (a "portmanteau of Shelley's own design, combining the Greek suffix erastes, meaning 'lover of,' and the Latin Gliridae, the scientific term for the family of the dormouse. Signing 'Ozymandias' with the name Glirastes, lover of dormice, was an inside joke and a show of Shelley's affection for Mary.").
Audio version as read by Richard Attenborough in Trespasser.
/misc | Jan 09, 2021
🌱 Picture Resizer 184.108.40.206 [395k] + Drag and drop to batch resize images. Rename executable to change parameters like size, sharpness, and recursion, or run via command line for more options. (Variously referenced as "PhotoResize", "PhotoResizer", and "Photo Resizer" in the documentation and version info.) 📺
/windows | Dec 17, 2020
When connecting an external monitor to a MacBook, the screen is extended rather than mirrored by default, making it difficult to work around broken internal monitors. One of these keyboard shortcuts should switch your Mac to mirrored mode:
Pressing the shortcut again will toggle back to extended mode.
H/T: OSXDaily and Miko.
/mac | Dec 17, 2020
Subscribe or visit the archives.