Skip to content

Instantly share code, notes, and snippets.

@willowiscool
Created January 5, 2020 18:21
Show Gist options
  • Save willowiscool/939d1df8c707fbd123f05de3108c5368 to your computer and use it in GitHub Desktop.
Save willowiscool/939d1df8c707fbd123f05de3108c5368 to your computer and use it in GitHub Desktop.
A program that'll help you with copypastas using rofi
# Made by Victor Veytsman
# Usage: have a copypastas.txt file with your copypastas.
# Separate your copypastas with three equal signs
# Separate the name of the copypasta and the text with three semicolons
# Make this file executable and bind it to some keybinding
getList() {
grep -o '^.*;;;' copypastas.txt | sed 's/...$//g'
}
getPasta() {
grep -Pzo "(?s)$1;;;.*?===" copypastas.txt | sed 's/^.*;;;//g; s/===//g'
}
pasta="$(getList | rofi -dmenu -i -p "Copyasta")"
getPasta "${pasta}" | xclip -sel clip -i
Navy Seal;;;What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little "clever" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo.
===
Musket for Home Defense;;;Own a musket for home defense, since that's what the founding fathers intended. Four ruffians break into my house. "What the devil?" As I grab my powdered wig and Kentucky rifle. Blow a golf ball sized hole through the first man, he's dead on the spot. Draw my pistol on the second man, miss him entirely because it's smoothbore and nails the neighbors dog. I have to resort to the cannon mounted at the top of the stairs loaded with grape shot, "Tally ho lads" the grape shot shreds two men in the blast, the sound and extra shrapnel set off car alarms. Fix bayonet and charge the last terrified rapscallion. He Bleeds out waiting on the police to arrive since triangular bayonet wounds are impossible to stitch up. Just as the founding fathers intended.
===
I just downvoted your comment;;;I just downvoted your comment.
# FAQ
## What does this mean?
The amount of karma (points) on your comment and Reddit account has decreased by one.
## Why did you do this?
There are several reasons I may deem a comment to be unworthy of positive or neutral karma. These include, but are not limited to:
* Rudeness towards other Redditors,
* Spreading incorrect information,
* Sarcasm not correctly flagged with a `/s`.
## Am I banned from the Reddit?
No - not yet. But you should refrain from making comments like this in the future. Otherwise I will be forced to issue an additional downvote, which may put your commenting and posting privileges in jeopardy.
## I don't believe my comment deserved a downvote. Can you un-downvote it?
Sure, mistakes happen. But only in exceedingly rare circumstances will I undo a downvote. If you would like to issue an appeal, shoot me a private message explaining what I got wrong. I tend to respond to Reddit PMs within several minutes. Do note, however, that over 99.9% of downvote appeals are rejected, and yours is likely no exception.
## How can I prevent this from happening in the future?
Accept the downvote and move on. But learn from this mistake: your behavior will not be tolerated on Reddit.com. I will continue to issue downvotes until you improve your conduct. Remember: Reddit is privilege, not a right.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment