Resolution | Hz |
---|---|
1920x1080 | 60 |
1920x1080 | 59.94 |
1920x1080 | 50 |
1920x1080 | 24 |
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
from collections.abc import Sequence | |
from typing import Protocol, Sequence, TypedDict, TypeVar, cast | |
class LiteralProtocol(Protocol): | |
__args__: Sequence[str] | |
class TypedDictProtocol(Protocol): | |
__annotations__: dict[str, LiteralProtocol] |
- Get the content of the QR for Okta Verify app setup. It looks like this:
oktaverify://[email protected]/?t=XXXXX&f=YYYYY&s=https://DOMAIN.okta.com&issuer=DOMAIN.okta.com&isIdxEnabled=true
- Replace
XXXXX
,YYYYY
andDOMAIN
to your values in curl below:
curl --request POST \
--url https://DOMAIN.okta.com/idp/authenticators \
--header 'Accept: application/json; charset=UTF-8' \
--header 'Accept-Encoding: gzip, deflate' \
--header 'Authorization: OTDT XXXXX' \
--header 'Content-Type: application/json; charset=UTF-8' \
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
import asyncio | |
import logging | |
import websockets | |
from channels.exceptions import DenyConnection | |
from channels.generic.websocket import AsyncWebsocketConsumer | |
from django.utils.functional import cached_property | |
logger = logging.getLogger(__name__) |
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
#!/usr/bin/env bash | |
get-repos() { | |
gh repo list --limit 9999 --jq '.[].nameWithOwner' --json nameWithOwner --no-archived && | |
while IFS=$'\n' read -r org; do | |
gh api \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
"/orgs/${org}/repos" --jq '.[].full_name' | |
done < <(gh org list) |
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
from struct import pack | |
from typing import Literal | |
def make_font_entry( | |
field: Literal['CaptionFont', 'IconFont', 'MenuFont', 'MessageFont', | |
'SmCaptionFont', 'StatusFont'], | |
name: str, | |
*, | |
char_set: Literal[0, 1, 2, 0x4d, 0x80, 0x81, 0x82, 0x86, 0x88, 0xa1, |
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
import itertools | |
args = ('-march=rocketlake -mabm --param=l1-cache-line-size=64 ' | |
'--param=l1-cache-size=48 --param=l2-cache-size=16384').split(' ') | |
def mabm(o: str): | |
if o.startswith('-mabm'): | |
return 'maz' | |
return o.replace('-', '') |
NOTE: Requires a backup of your old Chrome configuration directory.
The intent of this script is to save time by not having to reconfigure your extensions when you sign in with a clean Chrome config, and to transfer general things like cookies so you do not have to sign into everything again. This also copies flags you have enabled in chrome://flags
.
After deleting your old configuration from the normal location (e.g. ~/.config/google-chrome-beta
), open Chrome and sign in. Do this for every profile as necessary. You need to determine which profile directory ('Default' or 'Profile X') belongs to whom in both the old config and the new. Then you can use this script.
Example usages:
./reconstruct-chrome-profile.sh ./old-chrome-config-backup Default Default
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
{ | |
"output": { | |
"blocklist": [], | |
"equalizer": { | |
"bypass": false, | |
"input-gain": 0.0, | |
"left": { | |
"band0": { | |
"frequency": 60.0, | |
"gain": 4.2, |
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
#!/usr/bin/env bash | |
set -e | |
rm -fR ~/keystuff/{esl,key,crt,auth,der} | |
mkdir -p ~/keystuff/{esl,key,crt,auth,der} | |
cd ~/keystuff | |
for i in PK KEK db dbx; do | |
efi-readvar -v "$i" -o "esl/old_${i}.esl" | |
done | |
openssl req -new -x509 -newkey rsa:2048 -subj "/CN=$(hostname) platform key/" -keyout key/PK.key -out crt/PK.crt -days 36500 -nodes -sha256 | |
openssl req -new -x509 -newkey rsa:2048 -subj "/CN=$(hostname) key-exchange-key/" -keyout key/KEK.key -out crt/KEK.crt -days 36500 -nodes -sha256 |
NewerOlder