npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

trolol

v1.12.0

Published

Troll your friends AS QUICKLY AS POSSIBLE with a simple command

Downloads

22

Readme

Trolol - Command line tool for trolling

Troll your friends with a simple command AS QUICKLY AS POSSIBLE.

Trolol

Currently usable only on Linux and Mac OS X machines.

Installation

Install npm and use it to install trolol globally

$ npm install -g trolol

Usage

  Usage: trolol [options] [command]


  Commands:

    command-not-found|cmd <command>      Overwrite command with a fake alias

    rebecca-black|rebecca [options]      Play Rebecca Black Greatest Hits in a browser ("Friday" is default)
    steve [options]                      Open "Developers by Steve Balmer" in a browser

    volume-level|vol [options] <length>  Change volume level randomly in period of time (length in seconds)
    brightness [options] <length>        Change brightness randomly in period of time (length in seconds)
    screensaver [options] <times>        Start the screensaver with a random interval of 5 to 30 seconds
    shutdown <program> [options]         Shut down a program at random intervals, between 5 and 20 minutes

    move-mouse|mouse [options] <length>  Move mouse slowly and randomly across the screen
    disable-mouse [options] <length>     Disable mouse cursor for some time (length in seconds)

    beep [options] <times>               Beeep beeeeep, annoying little sh*t
    eject [options] <times>              Eject media from drive after every 15 seconds n time

    say [options] <message>              [MAC ONLY] Scare the sh*t out of your dude with a speaking computer
    mmm [options]                        [MAC ONLY] Receive repeated approval from your computer
    photo-booth [options] <times>        [MAC ONLY] Open up Photo booth n times
    spotify [options] <times>            [MAC ONLY] Switch Spotify music track back after every 15 seconds n time

    website <from> <to>                  [RUN AS ADMIN] Redirect webpage to a different site
    motd-dickbutt|dickbutt               [RUN AS ADMIN] Add Dickbutt ASCII art text to Terminal Message of the day

  Options:

    -h, --help     output usage information

Examples

Command not found

Make a given command "not found" with a fake alias. For example existing command grails

$ trolol command-not-found grails

will start throwing error after using a command above

-bash: grails: command not found

Change volume level randomly

Command

$ trolol volume-level 10 --wait 25

will start changing volume level after 25 seconds randomly 10 times.

Move mouse

Command

$ trolol move-mouse 60

will move the mouse 60 seconds randomly across the screen

Shutdown

Command

$ trolol shutdown iTunes --times 10

will shut down iTunes randomly every 5 - 20 minutes, a total of 10 times

Contribute

  1. Implement a cool and "easy to revert" troll in a bash script
  2. Move the script to ./src/scripts
  3. Write a command to ./bin/trolol (more info about commander.js)
  4. Write a shell script executor to ./src/trolol.js (more info about ShellJS)
  5. Test (no automated tests for now)
  6. Make a pull request

With a succesful contribution you can write your name in history.

License

MIT