Skip to content

Instantly share code, notes, and snippets.

@woctezuma
woctezuma / notes_for_courses_at_boot.dev.md
Last active January 22, 2025 17:04
Notes about coursed at boot.dev
  1. Python:
  • chapter 3: parameters vs. arguments
  • chapter 6: binary numbers, bitwise operators
  • chapter 11: empty set set()
  • chapter 13: float("inf"), type()
  1. Linux:
  • chapter 1: terminal vs. shell
  • chapter 4: shebang
@woctezuma
woctezuma / tick_review_box.py
Created November 28, 2024 14:50
Write and delete a review for the Steam Awards 2024
import json
import requests
BASE_URL = "http://localhost:1242"
TIMEOUT_IN_SECONDS = 3
def publish_review(bot_name: str, app_id: int) -> requests.Response:
endpoint = "/Api/Recommend/PublishReview/"
@woctezuma
woctezuma / atomid_fabric.md
Created August 14, 2024 10:56
A banned publisher on Steam: Atomic Fabrik?
  1. app/1720950 • Zombie Killer Drift - Racing Survival
  2. app/1721050 • Office Strike - Multiplayer Battle Royale
  3. app/1724020 • Space Tower Defense
  4. app/1806460 • FirePuzzle - Save the House
  5. app/1850690 • Zombies Killer Machine
  6. app/1851640 • Police Hot Pursuit
  7. app/1856010 • Eagle Simulator
  8. app/1859590 • The Zombie Smasher
  9. app/1877370 • ConflictCraft 2 - Game of the Year Edition
  10. app/1917720 • Two Sedans Driving Simulator
@woctezuma
woctezuma / remap_olympics.ahk
Last active August 2, 2024 13:19
Remap controls for rowing and fencing in the videogame "Olympics Go: Paris 2024"
#Requires AutoHotkey v2.0
#SuspendExempt
F12::Suspend
#SuspendExempt False
; Rowing
a::{ ; Input: press <A>
Loop 10 ; Output: press <Space> 10 times
@woctezuma
woctezuma / download_canard_pc.sh
Last active July 26, 2024 08:33
Download thumbnails for the tests in Canard PC
magazine=457
# target pages: 10-34 (included)
START=5
END=17
for ((i=START;i<=END;i++)); do
page=$(( 2*i ))
curl http://pressview5.immanens.com/api/document/4741/$magazine/page/$page/thumbnail -o ${magazine}_${page}.jpg
done
{
"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"
}
],