Skip to content

Instantly share code, notes, and snippets.

View skewballfox's full-sized avatar

Joshua Ferguson skewballfox

  • Mississippi
View GitHub Profile
@skewballfox
skewballfox / aw_merge.py
Last active May 5, 2023 17:01
rough draft aw bucket merge
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,
@skewballfox
skewballfox / powershell-poetry-err.txt
Created January 25, 2023 21:11
debug output of `poetry install` for bug report
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
@skewballfox
skewballfox / build_bug_pyproject.toml
Created January 25, 2023 20:44
the pyproject toml related to poetry bug report
[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"
@skewballfox
skewballfox / first_run.sh
Last active March 20, 2021 21:48
set up my environment for new users
#!/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
@skewballfox
skewballfox / data_types.py
Created August 30, 2020 14:23
in progress python support for the debug visualizer
"""
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