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
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/ |
Redirect from New Reddit to Old Reddit, but ignoring media links, which break and point to a Lady Gaga nice hat page. | |
Links: | |
https://github.com/tom-james-watson/old-reddit-redirect/blob/master/background.js | |
https://underpassapp.com/StopTheMadness/support-chrome.html#redirects | |
Pattern: | |
/https?://(www\.)?reddit.com(/^/media|/^/poll|/^/rpan|/^/settings|/^/topics|/^/community-points|/^/appeals?|^/r/comics)(.*)/ | |
Replacement: |
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
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 |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Laravel\Dusk\Browser; | |
use PHPUnit\Framework\Assert as PHPUnit; | |
use PHPUnit\Framework\Constraint\Count; | |
class DuskServiceProvider extends ServiceProvider |
Visit communication opt Out website: https://profile.callofduty.com/cod/optOut | |
Check all unsubcribe checkboxes and click "Submit" button. | |
A 500 error appears in the JavaScript console to the URL: https://profile.callofduty.com/cod/updatePreferences | |
Error: | |
{"requestURL":"http://profile.callofduty.com/cod/updatePreferences","errorMessage":"org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: [{\"error\": {\"name\": \"Error:ClientError:InvalidRequest:QueryStringInvalid\", \"msg\": \"Request parameters validation failed, see context for more details.\", \"context\": [{\"name\": \"Error:ClientError:InvalidRequest:ParameterInvalid\", \"msg\": \"Either the 'emails', 'phones', 'unoIDs', 'userNames', 'firstNames', 'lastNames' or 'fullNames' parameter must be provided\", \"code\": 212000}], \"code\": 211000}}]","exceptionClass":"UnoRuntimeException","stackTrace":"com.activision.webapps.sso.services.uno.UnoRuntimeException: org.springframework.web.client.HttpClientErrorException$BadRe |
Replace path to UT99 with your install path, then run the .reg file. | |
https://steamcommunity.com/sharedfiles/filedetails/?id=272924930 | |
https://ut99.org/viewtopic.php?t=6020 |
<?php | |
// Before Laravel 10.15.0 | |
function prepareQuery(QueryExecuted $query): string | |
{ | |
return count($query->bindings) > 0 | |
? vsprintf(str_replace(['%', '?'], ['%%', '%s'], $query->sql), array_map(fn ($value) => (is_numeric($value) ? $value : "'" . $value . "'"), $query->bindings)) | |
: $query->sql; | |
} | |
prepareQuery($query); |
<?php | |
namespace App\Console\Commands; | |
class MyCommand extends Command | |
{ | |
protected $signature = 'app:my-command'; | |
public function handle(): int | |
{ |