Skip to content

Instantly share code, notes, and snippets.

@binaryphile
binaryphile / fdstat
Created June 20, 2017 13:35
file descriptor measurement tool
#!/usr/bin/env bash
fdsta_main () {
local num=${1:-5}
local user=${2:-$USER}
fds "$num" "$user"
}
fds() {
#!/usr/bin/env bash
app=( python3 module_design_analytics.py )
root_dir=/Users/pha212/Documents/ExtFin-EFS/smoke
main () {
local dir
local result
kill_process || true
@binaryphile
binaryphile / .golangci.yml
Created September 13, 2021 21:11
tell linter not to lint old files
linters-settings:
errcheck:
check-type-assertions: true
goconst:
min-len: 2
min-occurrences: 3
gocritic:
enabled-tags:
- diagnostic
- experimental
@binaryphile
binaryphile / flake.nix
Created January 24, 2025 19:50
Node development shell flake
{
description = "URMA Nix development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: