Giter VIP home page Giter VIP logo

rickrollrc's Introduction

rickrollrc

Bash script which rickrolls your terminal by playing Rick Astley’s “Never Gonna Give You Up” with ANSI 256-color coded UTF-8 characters + audio (if available).

How to Roll

To start rickrollin’ immediately:

curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash

Here is the clandestine command you can give to your friends 😈

curl -s -L http://bit.ly/10hA8iC | bash

rickroll in xterm rickroll in mac

For the record: It is not actually a good idea to make a habit of

curl $(random_script_from_the_internets) | bash"

Nevertheless, for the enhanced experience, I highly recommend the following:

./roll.sh inject

Which essentially just does:

echo "curl -s -L http://bit.ly/10hA8iC | bash" >> ~/.bashrc

For a salutary lesson in the importance of taking care what you execute in your terminal, inspired by the classic sl, save the command in a shell script called suod somewhere on your PATH. It’s recommended to download the script for faster startup, to avoid spoiling the surprise when you accidentally execute it for the nth time (and also, unless you really like living dangerously, for security, in case we are demonically possessed to replace roll.sh with something evil).

Misc.

This has been tested on Arch, Debian, Ubuntu, Mac and Cygwin (so far). To enable sound in Cygwin, install the sox package.

Since this is a colorful hobby, you need to ensure 256-color mode is enabled or Astley will look sad.

For example, if you use GNU screen, ensure your ~/.screenrc contains something like:

termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"

Kudos to jart for our lovely hiptext shenanigans. Please see our sister project: hiptext, which generates ANSI color codes for any image or video.

<3,

~serene (@kiserene)

rickrollrc's People

Contributors

keroserene avatar rrthomas avatar jart avatar mvdan avatar zestyping avatar mrpants avatar

Watchers

Fyyaz Khan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.