Skip to content

robherley/hacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacks

CLI full of hacks that make my life easier

Prerequisites

  • Rust (1.70 or later)
  • Cargo (comes with Rust)

Building

Quick Build

cargo build --release

Development Build

cargo build

The binary will be available at:

  • Release: target/release/hacks
  • Development: target/debug/hacks

Development

Running Tests

cargo test

Linting

cargo clippy

Formatting

cargo fmt

Check Formatting

cargo fmt --check

Usage

IP Commands

# Get external IP address
hacks ip external

# Get internal IP addresses
hacks ip internal

UUID Commands

# Generate a UUID (default: v7)
hacks uuid new

# Generate a specific UUID version
hacks uuid new --version 4
hacks uuid new --version 1
hacks uuid new --version 7

# Get information about a UUID
hacks uuid info 01971f3a-8606-7a13-aa68-06059c72a37e

Msgpack Commands

# Decode base64 msgpack from stdin
echo "gaNuYW1lpHRlc3SlYXJyYXmTAQIDpXZhbHVle4w=" | hacks msgpack decode

CSV to Markdown

# Convert CSV to markdown table
echo -e "name,age\nJohn,25\nJane,30" | hacks csv2md

# Convert CSV with header row
echo -e "name,age\nJohn,25\nJane,30" | hacks csv2md --header

Installation

cargo install --git https://github.com/robherley/hacks

License

MIT

About

cli full of hacks that make my life easier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages