• Stars
    star
    16
  • Rank 1,311,288 (Top 26 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple and straightforward large files finder utility

lff-cr

License: MIT Built with Crystal Build Status Latest release lff

Simple and straightforward large files finder utility for *nix, optimize for human.

Why?

There are workarounds about how to do it on *nix, for instance is using combination of find, du, sort, head.

find /your/directory -xdev -type f -exec du -sh {} ';' | sort -rh | head -n10
# will printout the top 10 largest files size within given directory

But I'm to lazy to memorize them all ๐Ÿ˜… I need a simpler solution instead!

# my way
lff /your/directory

Benchmark

I simple benchmarking with time, with searching the top largest files within moderate Java project directory and about 11.901 files:

# with: find, du, sort, head
find /my/project/directory -xdev -type f -exec du -sh {} ';'  6.63s user 14.03s system 85% cpu 24.131 total
sort -rh  0.08s user 0.07s system 0% cpu 24.145 total
head -n10  0.00s user 0.00s system 0% cpu 24.141 total
# with: lff
./lff /my/project/directory  0.05s user 0.25s system 92% cpu 0.328 total

It is faster!

NOTE: Benchmarking is run on MBP2018 13" OSX 10.15.4.

Installation

MacOS

brew tap mkdika/brew
brew install lff

Linux via snap

For more on installing & using snap with your Linux distribution, see the official documentation.

snap install lff

Build from source

Install Crystal language.

git clone https://github.com/mkdika/lff-cr.git
cd lff-cr/
shards build --production --release

The built binary will be available as ./bin/lff

Usage

# lff <directory-path>
lff ~/Downloads
# or simple `lff` only to run at current directory.

Contributing

  1. Fork it (https://github.com/mkdika/lff-cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Copyright and License

Copyright 2020 - 2021 Maikel Chandika ([email protected]). Code released under the MIT License. See LICENSE file.

More Repositories

1

spring5-rest-api

Spring 5 RESTful API Example
Java
10
star
2

spring-restapi-auths

Several REST API Authentication Types Example with Spring Boot 1.5 and Spring Security.
Java
7
star
3

rexumee

A simple one page website for professional resume.
FreeMarker
6
star
4

kemal-rest-api

Simple REST API example with Kemal
Crystal
6
star
5

zkmvvmcrud

ZK MVVM CRUD Spring Data JPA Sample & Proof of Concept
Java
5
star
6

rblog

Simple Ruby on Rails 5 blog application
Ruby
5
star
7

jeneric

A tiny library for collection of custom yet frequently used function and helper, build on top of Java 8 Standard API
Java
4
star
8

learnjava8

Repository for my Java 8 Learning Process
Java
4
star
9

zkmvvmcrud8

ZK Framework version 8 MVVM Pattern on CRUD Transaction Proof of Concept.
HTML
3
star
10

learn-ruby

Learning Ruby and Its Framework Repository
Ruby
3
star
11

spring-boot-social

Spring Boot 1.5.x and Spring Social Example
HTML
2
star
12

spring-rx2-jdbc

Spring Boot 2 WebFlux and Reactive RDBMS Connection using Rx2 JDBC
Kotlin
2
star
13

jclassfinder

Java Desktop (Swing) utilities application to ease Java JAR class finder.
Java
2
star
14

djangoexample

Django Learning Example and Sample Project
Python
2
star
15

zkspringhbmvn

ZK Framework + Spring Framework + Hibernate Framework + Apache Maven + MySQL
Java
2
star
16

spring5-reactive-blog

Spring 5 Reactive Blog Project Sample
Java
2
star
17

lightweight-web-api

My Alternative for Java Lightweight Web API Stack POC
Java
2
star
18

optimizedjava

Optimized & GC Friendly Java Code Dicipline
Java
2
star
19

spring-geospatial

Spring Boot Geo Spatial Web API Benchmark with MongoDB and PostGIS
Java
2
star
20

swingworker

Example project to use Swing Worker along with Java Swing (Desktop)
Java
1
star
21

jeneric-kt

A Kotlin extension library for collection of custom and frequently used high level function.
Kotlin
1
star
22

javalingraalvm

GraalVM demo with Javalin Framework in Kotlin
Kotlin
1
star
23

spring5-reactive-stock

Spring 5 Reactive with Realtime Dummy Stock Price Scenario Example
HTML
1
star
24

java-stream-cookbook

Repository for Java 8 Stream API Cook Book and Practical Example
1
star
25

pyniblog

A simple POC for Blog application, build with Django 2.
JavaScript
1
star
26

kepotbot

Example for Simple Telegram Chat Bot Using Java and TelegramBot Java Lib
Java
1
star
27

spring5-zk85

Spring 5, Spring Boot 2, ZK 8.5 Example Project
Java
1
star
28

java-collection-api

Java Collection API Example
Java
1
star
29

django-form-demo

Django Form and Web Widget demo.
Python
1
star
30

rails-docker

Docker provision for local Rails development
Ruby
1
star
31

spring5-kotlin-api

Spring 5 Kotlin REST API demo with Spring Boot 2 stacks.
Kotlin
1
star
32

mkgrep

My version of simple grep replica in Rust language
Rust
1
star
33

vagrant-ruby-dev

Base Vagrant to ease the provision of Ruby based application development environment
1
star
34

vagrant-jvm-dev

Base Vagrant to ease the provision of server side JVM based application development environment.
1
star
35

spring-r2dbc

Spring Boot 2 WebFlux and Asynchronous RDBMS Connection (R2DBC)
Kotlin
1
star