- [Firefox][firefox]✨
about:config
->browser.cache.disk.smart_size.enabled
:false
- [uBlock Origin][firefox-adblock]✨
- [SteamDB][firefox-steamdb]✨
- [Augmented Steam][firefox-augmented-steam]✨
- [Translate Web Pages][firefox-translate]
- [Firefox Multi-Account Containers][firefox-containers]
- [PopUpOFF][firefox-popup-off]
- [TunnelBear VPN][firefox-tunnelbear]
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 json | |
from pathlib import Path | |
import requests | |
BASE_URL = ( | |
"https://library-service.live.use1a.on.epicgames.com/library/api/public/items" | |
) | |
STATIC_PARAMS = "includeMetadata=true" | |
OUTPUT_FNAME = "library-items.json" |
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
files: \.(py|json)$ | |
default_stages: [commit, manual] | |
repos: | |
- repo: https://github.com/astral-sh/ruff-pre-commit | |
rev: v0.3.4 | |
hooks: | |
- id: ruff | |
args: | |
[ | |
--fix, |
- Open the JPG file with GIMP.
Get pretrained weights:
wget https://dl.fbaipublicfiles.com/detr/detr-r50-e632da11.pth
Remove class weights
checkpoint = torch.load("detr-r50-e632da11.pth", map_location='cpu')
del checkpoint["model"]["class_embed.weight"]
del checkpoint["model"]["class_embed.bias"]
torch.save(checkpoint,"detr-r50_no-class-head.pth")
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 json | |
from pathlib import Path | |
BIO_FIELD = ["bio"] | |
PRONOUNS_FIELD = ["pronouns"] | |
fname = "profiles.json" | |
with Path(fname).open() as fn: | |
d = json.load(fn) |
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 json | |
from pathlib import Path | |
import requests | |
BASE_URL = "https://egs-platform-service.store.epicgames.com/api/v1/egs/publisher-index" | |
OUTPUT_FNAME = "publisher-index.json" | |
LOCALE = "fr" | |
STORE_ID = "EGS" |
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
[ | |
{ | |
"contact": null, | |
"offers": [ | |
{ | |
"id": "3ceadb8101fb4950a9de85b31ed12f29", | |
"namespace": "188fb42582e24d20b0a876ed817efd69", | |
"title": "SOULVARS" | |
} | |
], |
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 json | |
from pathlib import Path | |
# https://store.steampowered.com/dynamicstore/userdata/ | |
fname = "store.steampowered.com.json" | |
with Path(fname).open() as f: | |
data = json.load(f) | |
owned_apps = data["rgOwnedApps"] |
NewerOlder