If you accidentally close the progress window in Finder, you can bring it back by going to Window > Show Progress Window.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Browser; | |
use Tests\DuskTestCase; | |
class ModalTest extends DuskTestCase | |
{ | |
public function test_modal(): void | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Laravel\Dusk\Browser; | |
use Exception; | |
class BrowsingFailed | |
{ | |
/** | |
* @param array $browsers array<\Laravel\Dusk\Browse> | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @see: https://apple.stackexchange.com/a/341906 | |
# Merge folder and all sub-folders of A and B into C. | |
ditto A C | |
ditto B C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
:root { | |
--commas-separator: ", "; | |
--commas-last-separator: " & "; | |
} | |
ul.commas, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @see: https://stackoverflow.com/questions/2189479/get-the-maximum-value-from-an-element-in-a-multidimensional-array | |
$array = [ | |
'foo' => [1, 2, 3], | |
'bar' => [1], | |
'baz' => [1, 2], | |
]; | |
echo count(max($array)); // 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the middle of a Zoom call my audio in/out devices changed to “Microsoft Teams Audio Devices”, despite no longer having Microsoft Teams installed. | |
It turns out Teams leaves its audio driver on your system running, and it occasionally decides to make itself the default. | |
I had to delete: /Library/Audio/Plug-Ins/HAL/MSTeamsAudioDevice.driver in the end to fix it: | |
sudo rm -rf /Library/Audio/Plug-Ins/HAL/MSTeamsAudioDevice.driver | |
https://forums.macrumors.com/threads/how-to-uninstall-core-audio-driver-msteamsaudiodevice-driver.2344450/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redirect from New Reddit to Old Reddit, but ignoring media links, which break and point to a Lady Gaga nice hat page. | |
Links: | |
https://old.reddit.com/r/bugs/comments/15p1ctt/why_does_clicking_any_image_on_reddit_open_the/ | |
https://github.com/tom-james-watson/old-reddit-redirect/blob/master/background.js | |
https://underpassapp.com/StopTheMadness/support-chrome.html#redirects | |
https://gist.github.com/msanders/52700d5c5ed76f1114594ddb862b530e | |
Pattern: | |
/^https?://www\.reddit\.com(?!/(?:(?:media|gallery|settings)\b|r/\w+/s/))([/#?].*)?$/ |
Start ChromeDriver with logging enabled:
/usr/bin/chromedriver --url-base=/wd/hub --allowed-ips="" --port=9515 --log-level=INFO --log-path=/tmp/chromedriver.log
Run Dusk/Codeception:
php artisan dusk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm --interactive --tty --volume $PWD:/app composer install | |
docker run -it --rm --name laravel-dusk -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:8.2-cli php vendor/bin/phpunit |