Skip to content

Instantly share code, notes, and snippets.

{
"metadata": {},
"elements": [
{
"id": "da9df253a7d04f6e8ba9ed175fe73d68",
"title": "Mystery Game 2",
"description": "Mystery Game 2",
"keyImages": [
{
"type": "DieselStoreFrontWide",
@woctezuma
woctezuma / farming_simulator_22_offer.json
Created May 20, 2024 09:37
Farming Simulator 22 /offers
{
"metadata": {},
"elements": [
{
"id": "6d93fb1703ae46b184c5e1e8d67c07f1",
"title": "FS22 - Farm Production Pack",
"description": "Enhance economics, ramp-up production & promote sustainability with the Farm Production Pack. Featuring over 20 new items (including brands like VDW & Lely), this pack introduces brand-new selling points, production equipment, storage options, renewable power generators & more.",
"longDescription": "Let’s enhance economics, ramp-up production and promote sustainability with the Farm Production Pack. Featuring over 20 new items for Farming Simulator 22, this expansion introduces brand-new selling points, production equipment, storage options, renewable power generators, and more. A sophisticated distribution center and markets add new layers of logistical gameplay, focusing on supply & demand.\n\n# Own & Manage Your Distribution Center!\n\nOn a 4,000-square-meter space, you oversee your own distribution center equippe
@woctezuma
woctezuma / download_library_items.py
Last active May 4, 2024 21:06
Fetch a user's libary from EGS
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"
@woctezuma
woctezuma / download_publisher_index.py
Created April 25, 2024 09:57
Fetch the publisher index from EGS
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"
@woctezuma
woctezuma / publisher-index.json
Created April 25, 2024 09:56
The publisher index at EGS
[
{
"contact": null,
"offers": [
{
"id": "3ceadb8101fb4950a9de85b31ed12f29",
"namespace": "188fb42582e24d20b0a876ed817efd69",
"title": "SOULVARS"
}
],
@woctezuma
woctezuma / inspect_profiles.py
Last active April 25, 2024 10:01
Look for words in Discord profiles (pronouns and bio)
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)
@woctezuma
woctezuma / intersect_owned_and_ignored.py
Created April 22, 2024 14:42
Check if an owned app is ignored
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"]
@woctezuma
woctezuma / github_notes.md
Created January 12, 2024 14:53
Markdown syntax for notes on GitHub

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

[!WARNING]

@woctezuma
woctezuma / left_click.ahk
Created January 2, 2024 10:36
AutoHotkey: automatically left-click several times
#Requires AutoHotkey v2.0
^a:: ; Press <Ctrl+A> to start the script.
{
Loop 10 ; Loop 10 times.
{
MouseClick "left" ; Left-click
Sleep 100 ; Sleep
if GetKeyState("z", "P") ; Press <Z> to stop the script.
break
@woctezuma
woctezuma / solve_egs_riddle.py
Created December 29, 2023 22:43
Find Steam games whose names fullfil a few constraints
import json
import pathlib
import re
WORD_LENGTH = 4
START_FIRST_WORD = "a"
START_LAST_WORD = "i"
WORD_LENGTH = 2
START_FIRST_WORD = "e"