Categories
Shortcuts

Quickly Clear Safari Website Data

Often times I find myself needing to clear the website data stored in Safari, and while Safari does provide a mechanism for accomplishing this task, it is a (minimum) three step process that first waits until the data is loaded before allowing to remove.

Cumbersome. 🧐

Thankfully, there is a little trick I use that speeds up this process, which only requires enabling and disabling ‘Block all cookies’ setting instead.

https://crazies.cloud/sites/7/2020/07/18120107/quickly-remove-safari-website-data.mov

Personally, I find this method much faster for resetting Safari, but honestly wish there was a programatic method for performing this type of privacy cleanup.

Categories
Software

Fix Composer Process Timeout Issues

Recently I started contributing to an Open Source WordPress plugin and unfortunately I kept hitting a wall with the process timeout caused when installing Composer dependencies.

After some research, I found several ways to by-pass this timeout, one of which was decided to implement in the package.


Recommended

The recommended way of disabling the Composer timeout is on each script execution, using the builtin method provided by Composer: Composer\Config::disableProcessTimeout. Doing so keeps the timeout setting specific to tasks and does not pass this setting to other scripts or processes.

scripts: {
  "pre-install-cmd": [
    "Composer\Config::disableProcessTimeout"
  ]
}

Other Methods

The following is a set of other methods which also disable the timeout, but can be destructive when the timeout serves a distinct purpose.

Set Globally

The quickest (and probably most distructive) way to disable the timeout is by setting the var on your system.

export COMPOSER_PROCESS_TIMEOUT=600

Set for a Package

Optionally you can set the timeout within the package config:

config: {
  "process-timeout": 600
}

Set for a Command

Another way would be to set the timeout for each individual command.

COMPOSER_PROCESS_TIMEOUT=600; composer install

The first two are still a bit overbearing, while the third would only apply to that specific command, and that can be useful in many circumstances.

Personally, I use the recommended method or the per-command method when I need a quick process timeout removal.

Categories
Memories

Escape to the Ocean

As the water briskly bumps against the hull, I find myself breathing in the crisp, salty air from the sea. Gazing just above the horizon, there is a faint glimpse of the rock softly peaking in the daylight.

A journey away from land to find peace.

As we are sheltered in during this pandemic, time and again I am drawn to my wanderlust, fortunate to have visited so many places which now seem out of reach.

Let us cherish these fleeting moments. ❣️

Categories
Wisdom

Know Your Value

One day my grandfather gave me an old watch, explaining to me that his father carried this watch during his time serving in World War I.

Upon giving me this watch my grandfather asked me to take it to the local pawn shop and jewelers to get it appraised. Not quite sure the reason for the ask, I reluctantly agreed. When I returned with the watch, I informed my grandfather the pawn shop offered $150 and the jeweler offered $325.

“Now take it to the museum, and ask what they would give for it”, my grandfather said. So I visited the museum and, too my surprise, they offered me $750,000. 😳

After returning to my grandfather and explaining the large offer from the museum, he told me “There will be many people in your life, surround yourself with people that recognize your value.”


This fictional story was an adaptation of an old parable about a dying father, his son and an old family watch. It really touched me and forced me to understand and recognize those around me which do not acknowledge or realize my value.

We will often times find ourselves challenged with difficult decisions, especially when it comes to value recognition. Coming in the form of family, friends, colleagues and even your employers; lack of value recognition leads to negativity and ultimately unhappiness.

Be valued. Be happy. 😎