genact README

The project's README from github.com/svenstaro/genact. As one markdown file: README.md.

genact - a nonsense activity generator

CI Docker Hub Crates.io license Stars Downloads

Pretend to be busy or waiting for your computer when you should actually be doing real work! Impress people with your insane multitasking skills. Just open a few instances of genact and watch the show. genact has multiple scenes that pretend to be doing something exciting or useful when in reality nothing is happening at all.

Installation

Packaging status

You don't have to install anything! For your convenience, prebuilt binaries for Linux, OSX and Windows are provided here that should run without any dependencies. Additionally, there is a web version at https://svenstaro.github.io/genact/

It's compatible with FreeBSD, Linux, macOS, Windows, and most modern web browsers that support WebAssembly.

On FreeBSD: You don't have to do anything special here. Just run

pkg install genact
genact

On Linux: Download genact-linux from the releases page and run

chmod +x genact-linux
./genact-linux

On macOS: Download genact-osx from the releases page and run

chmod +x genact-osx
./genact-osx

A homebrew package is also available. To install it this way, run

brew install genact

On macOS, you can also install via MacPorts:

sudo port install genact

On Windows: Download genact-win.exe from the releases page and double click it.

It is also available on Scoop:

scoop install genact

With Cargo: If you have a somewhat recent version of Rust and Cargo installed, you can run

cargo install genact
genact

With gah: If you are using gah, you can run

gah install genact

Running

To see a list of all available options, you can run

./genact -h

or

cargo run -- -h

or (on Docker)

docker run -it --rm svenstaro/genact -h

Usage

A nonsense activity generator

Usage: genact [OPTIONS]

Options:
  -l, --list-modules                               List available modules
  -m, --modules <MODULES>                          Run only these modules [possible values: ansible, bootlog, botnet, bruteforce, cargo, cc, composer,
                                                   cryptomining, docker_build, docker_image_rm, download, julia, kernel_compile, memdump, mkinitcpio,
                                                   rkhunter, simcity, terraform, uv, weblog, wpt]
  -s, --speed-factor <SPEED_FACTOR>                Global speed factor [default: 1]
  -i, --instant-print-lines <INSTANT_PRINT_LINES>  Instantly print this many lines [default: 0]
      --exit-after-time <EXIT_AFTER_TIME>          Exit after running for this long (format example: 2h10min)
      --exit-after-modules <EXIT_AFTER_MODULES>    Exit after running this many modules
      --print-completions <shell>                  Generate completion file for a shell [possible values: bash, elvish, fish, powershell, zsh]
      --print-manpage                              Generate man page
  -h, --help                                       Print help
  -V, --version                                    Print version

Web usage

In the web version, you can run specific modules by providing them as ?module parameters like this: https://svenstaro.github.io/genact?module=cc&module=memdump

You can also provide a ?speed-factor like this: https://svenstaro.github.io/genact?speed-factor=5

Building

You should have a recent version of rust and cargo installed.

Then, just clone it like usual and cargo run to get output:

git clone https://github.com/svenstaro/genact.git
cd genact
cargo run --release

Releasing

This is mostly a note for me on how to release this thing:

genact (svenstaro/genact)

Searching Database…

12.2K ·GitHub
这是什么?genact 是一个无意义活动生成器,它会模拟运行高强度的终端任务(如编译、下载、暴力破解等),让你看起来很忙,但实际上并没有做任何真正的工作。
这是图形界面应用还是命令行工具?它是一个单独的命令行可执行文件,没有图形界面,会输出假的终端内容;此外还有一个 WebAssembly 版本,可以在浏览器中运行相同的场景。
我该怎么让它运行起来?从发布页面下载适用于 Linux、macOS 或 Windows 的预编译可执行文件,或者通过 Homebrew、MacPorts、Scoop、pkg(FreeBSD)、'cargo install genact' 或 Docker 安装,然后直接运行 'genact' 即可。
使用它需要先安装 Rust 吗?不需要。预编译的可执行文件无需任何依赖即可运行;只有当你想从源码自行构建时,才需要安装 Rust 和 Cargo。
它真的会编译代码或挖矿吗?不会,显示的所有内容都是伪造的:'cryptomining'、'bruteforce' 或 'kernelcompile' 等模块会输出看起来很真实的内容,而实际上什么都没有在运行。
我可以选择它显示哪种假任务吗?可以,'-m/--modules' 参数允许你只运行特定场景,例如 ansible、dockerbuild、kernelcompile、simcity 或 terraform,共有 17 个内置模块可选。
我能控制假输出滚动的速度吗?可以,'-s/--speed-factor' 可以调整整体速度,'-i/--instant-print-lines' 则允许你直接瞬间打印指定行数的内容,无需等待。
网页版和命令行版的效果一样吗?一样。因为它被编译为 WebAssembly,你可以通过 '?module' URL 参数选择场景,并用 '?speed-factor' 调整速度。
为什么有人要用假的活动生成器?这是一个用于恶搞或整蛊的工具,可以在会议或开放式办公室里装作很忙,也可以只是为了好玩,在终端里输出一堆无意义的日志。
What are similar projects?spotify-tui, lightcraft, tailcat, deno, edit, hexyl, hyperfine, pdfcraft
Creator
svenstaro
Size
12 MB
Stars
12.2K
Age
15y
Commits · 90 Days