Skip to content

Instantly share code, notes, and snippets.

View Askannz's full-sized avatar
🐈

Robin Lange Askannz

🐈
View GitHub Profile
WARNING:tensorflow:From /opt/seemode-env/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1630: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
WARNING:tensorflow:From repro2.py:27: The name tf.keras.backend.get_session is deprecated. Please use tf.compat.v1.keras.backend.get_session instead.
2021-10-29 01:47:38.381785: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2021-10-29 01:47:38.397652: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3800090000 Hz
2021-10-29 01:47:38.398016: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x560626161b40 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-10-29 01:47:38.398
from pathlib import Path
import datetime
import io
from pprint import pprint
import pytz
from flask import Flask, send_file
import numpy as np
import matplotlib.pyplot as plt
SLEEP_LOG_FILE_PATH = ".local/share/peggy/sleep_log.csv"
import os
from pathlib import Path
from subprocess import check_output, check_call
from tempfile import TemporaryDirectory
IMAGE_NAME = "peggy-build"
SSH_HOST = "sinanju"
SCP_DEST = "Peggy/peggy"
PRE_COPY_CMD = "systemctl --user stop peggy"
@Askannz
Askannz / mp_map.py
Last active February 5, 2020 06:43
Python multiprocessed map with persistent data
import os
from multiprocessing import Process, Queue
def mp_map(input_list, init_f, map_f, nb_workers=None, progress_f=None):
nb_workers = nb_workers or os.cpu_count()
input_queue = Queue(nb_workers)
output_queue = Queue()
@Askannz
Askannz / steam-253230.log
Created May 11, 2019 06:11
Hat In Time Nyakuza Metro DLC - Crash - Proton Log
This file has been truncated, but you can view the full file.
======================
Proton: 1555612643 proton-4.2-3b
SteamGameId: 253230
Command: ['/home/robin/.local/share/Steam/steamapps/common/HatinTime/Binaries/Win64/HatinTimeGame.exe']
======================
ERROR: ld.so: object '/home/robin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/robin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/robin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/robin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
777.532:0008:0009:trace:module:load_builtin_callback loaded ntdll.dll 0x110b98 0x7bc10000