Behold the one common substratum in all things #

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

TIFF editor for Windows #

Irfan Paint pluginAn 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

Batch crop images in IrfanView #

  1. Open one of the images in IrfanView
  2. Click and drag to draw box around desired region
  3. File → Batch Conversion/Rename...
  4. Add input files
  5. Check "Use advanced options (for bulk resize...)"
  6. Click "Advanced"
  7. Check "CROP:" → click "Get current sel." → OK
  8. Click "Start Batch"

/windows | Feb 15, 2021

Quickly toggle True Tone, Night Shift, Grayscale, and Dark Mode via AppleScript #

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

Set keyboard shortcut for opening files in Sublime Text #

Tested under macOS 10.15.7 Catalina:

  1. Automator → File → New → Quick Action → Choose

  2. Workflow receives current: files or folders in: Finder.app

  3. Actions → Library → Files & Folders → drag "Open Finder Items" into Workflow area

  4. Open with: Sublime Text.app

  5. File → Save → Open with Sublime Text → Save (will be saved to "~/Library/Services/Open with Sublime Text.workflow")

  6. System Preferences → Keyboard → Shortcuts → Services → Files and Folders → Open with Sublime Text → set keyboard shortcut as desired (Command S in the screenshot)

Automator window

Services window

See also:

/mac | Feb 01, 2021

macOS Mail: Previous Recipients file location #

Importing the Previous Recipients to a new Mac is as easy as pasting the first set above and rebooting.

H/T: Backspin

/mac | Jan 31, 2021

Linux Mint: Move user's home directory to new drive #

  1. 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)

  2. 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

  3. mount -o rw,remount /

  4. usermod -d /newhome/bob -m bob

Notes

Sources

/nix | Jan 28, 2021

Colossal Wreck #

OZYMANDIAS.      Ozymandias
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.
GLIRASTES

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

An indiction or so late in posting this addition to the graphics page... #

🌱 Picture Resizer 6.0.1.1 [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

Force MacBook to mirror displays #

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.