Skip to content

Instantly share code, notes, and snippets.

View avegancafe's full-sized avatar

Kyle Holzinger avegancafe

View GitHub Profile
@avegancafe
avegancafe / provider_grouping.mmd
Created February 10, 2026 18:45
provider_grouping.mmd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@avegancafe
avegancafe / adrs.md
Last active July 23, 2024 17:51
adrs.md

A Case For Architecture Decision Records

Overview

  • What is an ADR?
  • Why use ADRs?
  • Differences Between ADRs and RFCs
  • How to write an ADR?

What is an ADR?

Things to do in Boise:

  • Whitewater Park – located near downtown, watch kayakers ride “the wave”, lots of walking paths and things to see, hang out by the river.
  • Bike and Scooter Rentals – they are parked all over town, use the “Lime” app
  • Boise Greenbelt – 25 miles of walk/biking paths running along the banks of the Boise River, connects to many parks along the way. See link or search: Boise River Greenbelt | City of Boise.
  • Hiking Trails – lots of trails for hiking and biking in the area, see link or search: Ridge to Rivers.
  • Payette, Sockeye, Powder Haus, Mother Earth Breweries – these are the most recommended breweries in Boise, but also more than thirty others around town.
  • Julia Davis Park – features the Boise Zoo, Idaho Historical Museum, and Boise Art Museum.
  • Hyde Park area – adjacent to downtown in the historic Northend, a few blocks of laid back restaurants and interesting shops.
  • Parks – some of the most popular parks are Camels Back, Anne Morrison, Muni
function solution(arr: number[]) {
const longestSubarrays: number[] = []
let lastElement: number | null = null
let lastDirection: 'up' | 'down' | null = null
let currentChainLength: number = 0
function sum(x: number, agg: number = 0) {
if (x == 1) {
return agg + 1
}
@avegancafe
avegancafe / fkill.fish
Created March 23, 2023 14:27
Fuzzy-find and kill processes
function fkill --description 'Fuzzy-find process and kill it'
set -l fzf_args --reverse --height 40% --no-hscroll -n 8 --ansi --multi
set -l pid
if test (id -u) -eq 0
set pid (ps -f -u $UID | sed 1d | fzf $fzf_args | awk '{print $2}')
else
set pid (ps -ef | sed 1d | fzf $fzf_args | awk '{print $2}')
end
address balance
0x6076Cec41F6a071705b996D5b5B1E2dfA10b491a 0
0x9A8657Cd661F40F621D738E19a2A2baBFcd41586 791927
0x303438790Df2f60fF1DF324373128DCF71f43720 11948051
0x5012b908520b1bc759AceFA8e1371ED4E43D9Bcd 0
0x47be3b7808b5f22a4ddb6eae5C42FD70cA62CfFA 5008840
0x6bD882CFa14d241B113B1d28fA2D658C4d11844F 7661801
0xF2353AD0930B9F7cf16b4b8300B843349581E817 0
0x2C82389e8c200093ed021FFCD639bC5198173a77 1190533
0x44bd1144F0A1CF5305F0A2ABe49E8185fAC30dE0 4065710

Keybase proof

I hereby claim:

To claim this, I am signing this object:

require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('dotenv').config();
const { API_URL, PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;
// This is a sample Hardhat task. To learn how to create your own go to
// <https://hardhat.org/guides/create-task.html>
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
contract TestContract is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
uint public constant MAX_SUPPLY = 100;
@avegancafe
avegancafe / profile.log
Created December 20, 2021 18:34
vim-go issue reproduction
This file has been truncated, but you can view the full file.
SCRIPT /Users/kyle/.local/share/nvim/site/pack/packer/start/dashboard-nvim/autoload/sessions/session.vim
Sourced 1 time
Total time: 0.001254
Self time: 0.001254
count total (s) self (s)
" Plugin: https://github.com/hardcoreplayers/dashboard-nvim
" Description: A fancy start screen for Vim.
" Maintainer: Glepnir <http://github.com/glepnir>