Skip to content

Instantly share code, notes, and snippets.

View rpdelaney's full-sized avatar
🏠
Working nomad

Ryan Delaney rpdelaney

🏠
Working nomad
View GitHub Profile
$ podman run \
-v "$(pwd):/tmp/renovate/" \
-v "$(dirname "$CA_BUNDLE"):/tmp/renovate/certs/" \
-e GITLAB_TOKEN="$GITLAB_TOKEN" \
-e RENOVATE_TOKEN="$GITLAB_TOKEN" \
-e LOG_LEVEL="debug" \
-e RENOVATE_BASE_BRANCHES="develop" \
-e RENOVATE_EXTRA_FLAGS="$RENOVATE_EXTRA_FLAGS" \
-e NODE_EXTRA_CA_CERTS="/tmp/renovate/certs/ca-cert.crt" \
-e GIT_SSL_CAINFO="/tmp/renovate/certs/ca-cert.crt" \
@rpdelaney
rpdelaney / ErrorHandlers.py
Created July 26, 2024 13:55
A python function decorator to catch exceptions and report their contents
from typing import Callable, Any
import functools
import traceback
def handle_exceptions(func: Callable[..., Any]) -> Callable[..., Any]:
"""
Decorate a function to catch and handle exceptions by returning a detailed error message.
Args:
Click to expand!

Your detailed text here.

{
"version": "2.6",
"groups": [
{
"name": "Watts to Joules/sec",
"urls": [
"factoriolab.github.io",
"wiki.factorio.com"
],
"substitutions": [
@rpdelaney
rpdelaney / gruvbox.json
Created August 17, 2023 18:40
gruvbox.json
{
"black": {
"neutral": {
"hex": "#282828",
"standard": 0,
"8bit": 235,
"ansi_fg": "\u001b[38;2;40;40;40m",
"ansi_bg": "\u001b[48;2;40;40;40m"
}
},
"""
Calculate 12 week periods in a year that have the fewest holidays.
"""
import argparse
from datetime import date, datetime, timedelta
from pprint import pprint as print
from typing import List, Tuple
from pandas.tseries.holiday import (
Question Answer
What are you using the system for? Mostly gaming. The hardware intensive games I play are "simulation" games (think Factorio) that are more CPU bound than GPU bound. I do not play the latest marquee games with the biggest and baddest graphics etc.
What's your budget? $1300-$2000, although I doubt I need to go to the higher end of that range
@rpdelaney
rpdelaney / using-details-summary-github.md
Created April 5, 2023 16:43 — forked from scmx/using-details-summary-github.md
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example

@rpdelaney
rpdelaney / font_test.txt
Created December 6, 2022 20:12
font_test.txt
ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZabc.def.ghi.jkl.mno.pqrs.tuv.wxyz
¢ ſß ΓΛΔ αδιλμξ КУЗЯ эльф язычникfloat il1[]={1-2/3.4,5+6=7/8%90};
1234567890 ,._-+= >< ¯-¬_ >~–÷+×<{}[]()<>`+-=$*/#_%^@\&|~?'" !,.;:
!iIlL17|¦ coO08BbDQ $5SZ2zsz 96G&dbqp E3 g9q CGQ vvw VVW /V <= >=÷
@rpdelaney
rpdelaney / python_oneliners.md
Last active October 7, 2022 15:11
python cli tools in the standard library

You get a lot of command-line tools just for having python 3 installed.

$ # despite the name, compares files found in two _directories_ (non-recursive)
$ python3 -m filecmp dumbpw/ tests/
diff dumbpw/ tests/
Only in dumbpw/ : ['candidate.py', 'charspace.py', 'cli.py', 'pwgen.py']
Only in tests/ : ['test_charspace', 'test_pwgen']
Differing files : ['__init__.py']
$ # print a calendar