Skip to content

Instantly share code, notes, and snippets.

View petrilli's full-sized avatar

Christopher Petrilli petrilli

View GitHub Profile
$ 1 0.000005 10.20027730826997 50 5 42 5e-11
v 176 304 176 128 0 0 40 5 0 0 0.5
w 176 304 224 304 0
w 336 304 288 304 0
s 224 304 288 304 0 1 false
w 288 304 288 336 0
w 224 304 224 336 0
c 224 336 288 336 0 5e-10 -5.000000000000019 0.001
l 176 128 336 128 0 1 5.151326591640642e-18 0
r 336 128 336 304 0 100
@petrilli
petrilli / golink-deployment.yaml
Last active January 5, 2024 09:21
K8S Deployment resources for Tailscale golink

Keybase proof

I hereby claim:

  • I am petrilli on github.
  • I am petrilli (https://keybase.io/petrilli) on keybase.
  • I have a public key ASAB6bzcKzN_8D0CRgg5UFhaXiM8wFAidMY7xSjRnNxdjwo

To claim this, I am signing this object:

@petrilli
petrilli / benchmark-result-hostpath.txt
Last active August 6, 2022 22:49
Flexible IO Benchmark Test (cluster with Mayastor)
$ kubectl exec -it fio -- fio --name=benchtest --size=800m --filename=/volume/test --direct=1 --rw=randrw --ioengine=libaio --bs=4k --iodepth=16 --numjobs=8 --time_based --runtime=60
benchtest: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=16
...
fio-3.30
Starting 8 processes
benchtest: Laying out IO file (1 file / 800MiB)
Jobs: 8 (f=8): [m(8)][100.0%][r=181MiB/s,w=180MiB/s][r=46.4k,w=46.1k IOPS][eta 00m:00s]
benchtest: (groupid=0, jobs=1): err= 0: pid=21: Sat Aug 6 04:17:40 2022
read: IOPS=5780, BW=22.6MiB/s (23.7MB/s)(1355MiB/60001msec)
slat (usec): min=2, max=12815, avg=77.89, stdev=203.24
@petrilli
petrilli / shell.txt
Created July 26, 2022 19:36
Information about .NET installation on macOS Monterey M1
~ $ dotnet --list-sdks
6.0.201 [/usr/local/share/dotnet/sdk]
6.0.202 [/usr/local/share/dotnet/sdk]
6.0.300 [/usr/local/share/dotnet/sdk]
6.0.301 [/usr/local/share/dotnet/sdk]
6.0.302 [/usr/local/share/dotnet/sdk]
7.0.100-preview.6.22352.1 [/usr/local/share/dotnet/sdk]
~ $ dotnet new --list 6 ↵
These templates matched your input:
@petrilli
petrilli / update_repos.sh
Created September 17, 2021 02:35
Quick zsh script to update the multitude of git repositories I keep locally. Pretty brute force, but it works.
#!/usr/bin/env zsh
# Repository locations
REPOS=$HOME/src
# Keep our current directory on the stack
pushd
print -P "%F{green}=== %F{white}Pulling in the latest changes for all repositories in ${REPOS}..."
@petrilli
petrilli / main.py
Last active January 5, 2024 19:50
Example combination of FastAPI and Pydantic with aiosql and aiosqlite
# -*- coding: utf-8 -*-
"""Example combination of FastAPI and Pydantic with aiosql and aiosqlite.
This module demonstrates the minimum viable integration approach for putting
together a few components:
- FastAPI. This provides a very high-performance and type-driving approach to
building APIs in Python
- Pydantic. A powerful data validation library.
- aiosql. Inspired by annosql and originally Clojure's yeSql, a way to programatically,
@petrilli
petrilli / hp-laserjet_flow_mfp_m630-ps.ppd
Created February 25, 2015 21:59
A fixed PPD for an HP LaserJet Flow MFP M630 that doesn't require anything else to function. The only non-implemented functionality is that provided by the 'hpps' filter, which has this: "CUPS filter that implements job storage (secure printing), Job Accounting and Born On Date (BOD) features on specific capable printers."
*PPD-Adobe: "4.3"
*% =================================
*% Copyright 1992-2009 Hewlett-Packard Company
*% Permission is hereby granted, free of charge, to any person obtaining
*% a copy of this software and associated documentation files (the
*% "Software"), to deal in the Software without restriction, including
*% without limitation the rights to use, copy, modify, merge, publish,
*% distribute, sublicense, and/or sell copies of the Software, and to
*% permit persons to whom the Software is furnished to do so, subject to
*% the following conditions:
# -*- coding: utf-8 -*-
from celery.app import app_or_default
Task = app_or_default().create_task_cls
class TransactionalTask(Task):
"""A task whose execution is delayed until after the current transaction.
"""
abstract = True
@petrilli
petrilli / gist:9518598
Created March 12, 2014 23:11
Broken tox.ini?
[tox]
envlist=
py26-django14,
py27-django14,
py26-django15,
py27-django15,
py27-django16,
docs,
[testenv]