Skip to content

Instantly share code, notes, and snippets.

View djotaku's full-sized avatar

Eric Mesa djotaku

View GitHub Profile
lutris-wrapper: Pokémon TCG Online
Started initial process 17221 from gamemoderun /home/ermesa/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/bin/wine /home/ermesa/Games/pokemon-tcg-online-dvxk/drive_c/users/ermesa/AppData/Roaming/Pokémon Trading Card Game Online/PokemonTradingCardGameOnline/Pokemon Trading Card Game Online.exe
Start monitoring process.
gamemodeauto:
fsync: up and running.
Mono path[0] = 'C:/users/ermesa/AppData/Roaming/Pokémon Trading Card Game Online/PokemonTradingCardGameOnline/Pokemon Trading Card Game Online_Data/Managed'
Mono config path = 'C:/users/ermesa/AppData/Roaming/Pokémon Trading Card Game Online/PokemonTradingCardGameOnline/MonoBleedingEdge/etc'
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
wine: Unhandled page fault on read access to 00000000 at address 10402F5F (thread 0180), starting debugger...
lutris-wrapper: Pokémon TCG Online
Started initial process 17017 from gamemoderun /home/ermesa/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/bin/wine /home/ermesa/Games/pokemon-tcg-online/drive_c/users/ermesa/AppData/Roaming/Pokémon Trading Card Game Online/PokemonTradingCardGameOnline/Pokemon Trading Card Game Online.exe
Start monitoring process.
gamemodeauto:
Mono path[0] = 'C:/users/ermesa/AppData/Roaming/Pokémon Trading Card Game Online/PokemonTradingCardGameOnline/Pokemon Trading Card Game Online_Data/Managed'
Mono config path = 'C:/users/ermesa/AppData/Roaming/Pokémon Trading Card Game Online/PokemonTradingCardGameOnline/MonoBleedingEdge/etc'
Initial process has exited (return code: 256)
Monitored process exited.
All processes have quit
Exit with return code 256
minecraft@minecraft1:~/server/world $ ls -l
total 68
drwxr-xr-x 2 minecraft minecraft 4096 Aug 7 19:26 advancements
drwxr-xr-x 2 minecraft minecraft 4096 Sep 3 11:38 data
drwxr-xr-x 3 minecraft minecraft 4096 Jul 6 19:51 datapacks
drwxr-xr-x 6 minecraft minecraft 4096 Jun 26 20:16 DIM-1
drwxr-xr-x 3 minecraft minecraft 4096 Jun 25 16:22 DIM1
drwxr-xr-x 2 minecraft minecraft 4096 Aug 4 07:09 entities
-rw-r--r-- 1 minecraft minecraft 5464 Jun 25 16:22 icon.png
ls -l
total 44588
-rw-r--r-- 1 minecraft minecraft 2 Sep 2 19:03 banned-ips.json
-rw-r--r-- 1 minecraft minecraft 2 Sep 2 19:03 banned-players.json
-rw-r--r-- 1 minecraft minecraft 157 Sep 2 16:08 eula.txt
drwxr-xr-x 8 minecraft minecraft 4096 Sep 2 16:06 libraries
drwxr-xr-x 2 minecraft minecraft 4096 Sep 2 19:03 logs
-rw-r--r-- 1 minecraft minecraft 2 Sep 2 19:03 ops.json
-rw-r--r-- 1 minecraft minecraft 45609512 Sep 2 16:06 server.jar
-rw-r--r-- 1 minecraft minecraft 1256 Sep 2 19:03 server.properties
Sep 02 19:31:38 minecraft1 systemd[1]: Started Minecraft Server. Sep 02 19:31:38 minecraft1 sudo[939]: pam_unix(sudo:session): session closed for user root
Sep 02 19:31:39 minecraft1 java[943]: Starting net.minecraft.server.Main
Sep 02 19:31:41 minecraft1 java[883]: [19:31:41] [ServerMain/INFO]: Building unoptimized datafixer
Sep 02 19:31:44 minecraft1 java[943]: 2022-09-02 19:31:44,268 ServerMain ERROR Cannot acc
@djotaku
djotaku / gist:aa9640311bed5e4bbf59f15faf887733
Created September 2, 2022 23:32
minecraft systemd unit file
[Unit]
Description=Minecraft Server
After=network.target
[Service]
User=minecraft
Group=minecraft
Nice=1
KillMode=none
SuccessExitStatus=0 1
Importing users ...
Traceback (most recent call last):
File "/home/ermesa/Programming Projects/Python/fastapi_mongodb_class_notes/venv/lib/python3.10/site-packages/beanie/odm/documents.py", line 403, in save
return await self.replace(session=session, **kwargs)
File "/home/ermesa/Programming Projects/Python/fastapi_mongodb_class_notes/venv/lib/python3.10/site-packages/beanie/odm/actions.py", line 212, in wrapper
result = await f(self, *args, skip_actions=skip_actions, **kwargs)
File "/home/ermesa/Programming Projects/Python/fastapi_mongodb_class_notes/venv/lib/python3.10/site-packages/beanie/odm/utils/state.py", line 39, in wrapper
result = await f(self, *args, **kwargs)
File "/home/ermesa/Programming Projects/Python/fastapi_mongodb_class_notes/venv/lib/python3.10/site-packages/beanie/odm/utils/state.py", line 50, in wrapper
result = await f(self, *args, **kwargs)
import asyncio
import json
import os
import sys
import time
from typing import List, Optional, Dict
# noinspection PyPackageRequirements
import progressbar
from dateutil.parser import parse
# async version 1
import asyncio
import httpx
async def get_weather(city: str, state: str) -> dict:
url = f"https://weather.talkpython.fm/api/weather?city={city}&state={state}&country=US&units=imperial"
async with httpx.AsyncClient() as client:
response = await client.get(url, follow_redirects=True)
return response.json()
pip install --upgrade -v eldonationtracker
Using pip 22.1.2 from /home/ermesa/Programming Projects/python/test_pip/venv/lib64/python3.10/site-packages/pip (python 3.10)
Requirement already satisfied: eldonationtracker in ./venv/lib/python3.10/site-packages (7.3.0)
Collecting eldonationtracker
Using cached eldonationtracker-7.4.3-py3-none-any.whl (114 kB)
Requirement already satisfied: xdgenvpy==2.3.5 in ./venv/lib/python3.10/site-packages (from eldonationtracker) (2.3.5)
Requirement already satisfied: PyQt5-sip<=12.8.9,>=12.8.1 in ./venv/lib/python3.10/site-packages (from eldonationtracker) (12.8.1)
Requirement already satisfied: semver==2.9.1 in ./venv/lib/python3.10/site-packages (from eldonationtracker) (2.9.1)
Collecting rich==12.4.1
Using cached rich-12.4.1-py3-none-any.whl (231 kB)