Compare commits

..

No commits in common. "0ade146fa79c030a83331e091b75791414128a35" and "450f64ba994a15ce8b2cbfc2db775d2184aa8631" have entirely different histories.

2 changed files with 27 additions and 13 deletions

View File

@ -2,16 +2,17 @@
# call the brave browser with some nice flags # call the brave browser with some nice flags
/usr/bin/brave \ /usr/bin/brave --process-per-site \
--process-per-site \ --disk-cache-dir="/tmp/brave-cache" \
--disk-cache-dir="/tmp/brave-cache" \ --use-gl=desktop \
--use-gl=angle \ --enable-accelerated-video-decode \
--use-angle=gl \ --enable-gpu-compositing \
--enable-gpu-compositing \ --enable-gpu-rasterization \
--enable-gpu-rasterization \ --enable-oop-rasterization \
--enable-oop-rasterization \ --enable-zero-copy \
--enable-features=VaapiVideoEncoder,CanvasOopRasterization,VaapiVideoDecodeLinuxGL,VaapiIgnoreDriverChecks,Vulkan \ --enable-raw-draw \
--ignore-gpu-blocklist \ --enable-features=VaapiVideoDecoder,VaapiVideoDecoder,CanvasOopRasterization,WebUIDarkMode \
--enable-zero-copy \ --force-dark-mode \
--enable-raw-draw \ --use-vulkan \
"$@" "$@"

View File

@ -0,0 +1,13 @@
#! /bin/bash
# get an oauth access token using the refresh token
token_url="$(pass "email/$1/token_url")"
client_id="$(pass "email/$1/client_id")"
client_secret="$(pass "email/$1/client_secret")"
refresh_token="$(pass "email/$1/refresh_token")"
curl --silent \
--request POST \
--data "client_id=$client_id&client_secret=$client_secret&refresh_token=$refresh_token&grant_type=refresh_token" \
"$token_url" \
| jq -r '.access_token'