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
from datetime import datetime, timedelta | |
import socket | |
from typing import Callable, Iterator, Dict, List, Optional | |
from aw_core.models import Event | |
from aw_client.client import ActivityWatchClient | |
from pytz import timezone | |
def afk_gen( | |
client: ActivityWatchClient, |
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
PS C:\Users\<user>\Workspace\test\<project>> poetry install -vvv | |
Loading configuration file C:\Users\<user>\AppData\Roaming\pypoetry\config.toml | |
Using virtualenv: C:\Users\<user>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\Local\pypoetry\Cache\virtualenvs\<project>-oPNvydhc-py3.10 | |
Installing dependencies from lock file | |
Warning: poetry.lock is not consistent with pyproject.toml. You may be getting improper dependencies. Run `poetry lock [--no-update]` to fix it. | |
Finding the necessary packages for the current system | |
Package operations: 1 install, 0 updates, 0 removals, 30 skipped |
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
[tool.poetry] | |
name = "foobar_py" | |
version = "0.1.0" | |
description = "Bla bla bla" | |
authors = ["alice","bob"] | |
readme = "ReadMe.md" | |
[tool.poetry.dependencies] | |
python = ">=3.10,<3.12" |
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
#!/usr/bin/env bash | |
git clone --bare "https://github.com/skewballfox/.cfg.git" "/$HOME/.config/git/cfg" | |
git --git-dir=$HOME/.config/git/cfg/ --work-tree=$HOME checkout --force | |
git --git-dir=$HOME/.config/git/cfg/ --work-tree=$HOME config --local status.showUntrackedFiles no | |
mkdir $HOME/.ssh $HOME/.gnupg | |
chmod 700 $HOME/.ssh $HOME/.gnupg | |
wget -O "$HOME/.gnupg/gpg.conf" https://raw.githubusercontent.com/drduh/config/master/gpg.conf | |
wget -O "$HOME/.gnupg/gpg-agent.conf" https://raw.githubusercontent.com/drduh/config/master/gpg-agent.conf | |
chmod 600 $HOME/.gnupg/gpg.conf | |
echo -e "[user]\n name = skewballfox\n email = joshua.ferguson.273@gmail.com" > $HOME/.config/git/config |
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
""" | |
Author: skewballfox | |
""" | |
from json import dumps | |
from typing import Union, Dict, Optional | |
from abc import ABC, abstractmethod | |
class DataType(ABC): | |
"""Abstract class for all dataTypes |