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 https://bit.ly/3zvELNz | 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

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rickrollrc's Issues

Scaling support?

Should add support for dynamic scaling so it fits the terminal size.

Offline support?

Hey!

This is very fun, but could it be made to work offline for cases where the user running may have restricted internet?

video doesnt play

video doesnt play and only audio plays with a purple heart and an error message-
bash: line 98: python: command not found
os- zorin os 16 (based on ubuntu 20.04)

Graphics Not Showing - Kubuntu 20.04

[Update]: HELP the script runs every time I open my terminal
[Fixed]: Why is it on .bashrc >:( Removed it 👍🏻

The only thing that displays when executing the bit.ly command is "<3"

Here are my system specs:

** Operating System: Kubuntu 20.04 [ubuntu/debian]
** Desktop Environment - KDE Plasma Version 5.18.5
** Kernel Version - 5.4.0-64-generic
** OS Type - 64-bit

How do I stop it heeelpppp

I am a noob when it comes to linux, just installed it yesterday and managed to install this, I use majaro, everytime I open a terminal it rickrolls helppppppppppppppppppp

RGB support?

Should add support for RGB colors, which can be displayed by gnome-terminal and konsole, and maybe others.

new location for data files

was all excited to torture my new office mates with this, but sadly the files are no longer available.

any chance of an update? (I'm happy to host if needed)

Linux aplay error

When I try the script, I just get the following aplay: playback:2483: read error

Cache?

Should add support for caching (most useful with dynamic scaling). Should use $XDG_CACHE_HOME.

Catching kill signal doesn't kill video but kills audio when using ctrl+c

Hi there, this is not an issue of the script per say I imagine, but I'm trying to setup a more annoying script.
I do recognize that injection is brilliant, however, you can always ctrl+c it.
Therefore I decided to find a way to block all kill signals.

My solution is therefore as follows:

#!/bin/bash
trap "" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash

However, when I do ctrl+c and rickroll is running, the audio cuts off, but, fortunately, not the video.

I ask all of you, is there a way to make this script even more annoying by not allowing the user to cancel it as easily?

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.