/r/ScriptSwap

Photograph via snooOG

WELCOME TO SCRIPT SWAP!

This subreddit is for sharing scripts you've written with everyone. Write a neat .bat file that cleans up stuff? A perl script that does half of your job requirements for you? Post it here!

RULES:

  • If you need help with your script, or need beta testers, please submit it in /r/AskScriptSwap.

  • NO GAME SCRIPTS PLEASE - There are already enough subreddits for this.

  • Write what the script does in the title and give a description of what each function of the script does. (if you commented out the script, that's cool too). Please include the source code in your post, unless it's very large. Feel free to link to it (on github, gist, etc) as well. Don't forget to state what license you are releasing your script under (ie: GPL). If you don't specify a license, /r/ScriptSwap will assume ownership and release it under a GPL license for everyone. This is to prevent IP violations, and other related issues. Let's try to keep the headings clean too. ie: [Language] My script bla bla bla

  • NO MALICIOUS CODE! Security/auditing/hacking scripts are OK.

  • Let's keep it friendly around here. This is for sharing your scripts with others. Keep the negativity to a minimum. Feel free to post optimizations but please do not do so in a condescending manner. We're all here to learn.

  • If you find a neat script, but didn't write it, feel free to post, but you MUST CREDIT THE AUTHOR. This must also not violate the author's license/terms of use. You will have your post deleted if you do not credit the author, or violate the author's terms.

  • SCRUB YOUR SCRIPTS. Sometimes people work insecurely and have plaintext passwords, proprietary information, etc in their scripts.

  • Please take a moment to learn how reddit's formatting works when you make your post. This will make your post a LOT more readable. NOTE: Lines starting with four spaces are treated like code.

Enjoy /r/ScriptSwap!

Related Subreddits:

/r/ScriptSwap

5,876 Subscribers

2

Where can I trade my scripts?

Multi-Exchange Arbitrage Bot

EMA + MACD Strategy with Backtesting

Telegram Trade Alerts Bot

Simple Moving Average (SMA) + RSI Strategy Bot

Are a few scripts I have. I would like to trade them but where?

0 Comments
2024/11/13
10:46 UTC

0

Instagram scripts

Bro how can i login into an account of pther people without even knowing the password? Can somebody help?

3 Comments
2024/09/09
08:05 UTC

0

STFC

Star Trek Fleet Command, is a game by Scopely. I really need to automate some functions of the gameplay. Willing to pay upon proof of function.

5 Comments
2024/08/05
13:01 UTC

3

lf a basic script that copies my movement and mouse clicks on loop

so basicaly i would firstly like show the program what to do and then it would just repeat that on loop is there any sort of a program or an app that mimics ur inputs and puts them on loop(if this sounds dumb im sorry im new to scripting)

4 Comments
2024/07/07
11:14 UTC

0

Need a simple script that will spam a on my controller

I have a Cronus zen and want to afk grind a game all I need it to do is spam a Every 2 seconds or so

1 Comment
2024/07/06
07:30 UTC

2

Made a little script to automatically update Discord on run for Debian distros

Hi everyone, just as the title says because it was getting on my nerves. Probably there are other scripts out there but here is mine.

https://gist.github.com/sgatu/d60072d8afefcd50ab37b3f0a7e5660b

0 Comments
2024/06/26
21:53 UTC

1

My Install script

For my repo FBD, here is the install script.

#!/bin/bash

chmod +x ./src/fbd.sh sudo pacman -S gum gum log --level info "Setup Finished. Before running FBD, test your gum installation. Then, execute the command : ./src/fbd.sh"

0 Comments
2024/04/12
11:15 UTC

0

Breaking News: Liber8 Proxy has released Anti-Detect Virtual Machines with Anti-Detect & Residential Proxies. OS Windows & Kali, enabling users to create multiple users on their Clouds, each User with Unique Device Fingerprints, Unlimited Residential Proxies (Zip Code Targeting) and RDP/VNC Access.

0 Comments
2024/04/06
03:19 UTC

2

Script for my wife

This may sound silly, but my wife has a membership at a very niche spin studio and if you don’t login at exactly 12 o’clock noon to register for the following days class, you’ll end up on like a 10 person waitlist and never get a bike. Is it possible to write a script that would automatically register her for her desired class and time at exactly 12 noon?

2 Comments
2024/04/04
16:12 UTC

1

Add logged in user to docker-users group

As the title says, I’m trying to figure out a way to add the current logged in user to the docker-users group in Windows. Some of our developers are using Docker Desktop on Windows, and it would be great to automate this step after the install.

I have found numerous scripts that have you specify the user, but ideally I would like a script that uses the currently logged in user to skip that manual part. This can be a batch file, a powershell or python script. I’m just not familiar with how to pull in the logged in user name here.

Thanks for any info on this!

4 Comments
2024/03/16
00:33 UTC

2

Script for Google Sheets

I have made a project-template-bundle of files that contain formulas so that different files reference one another. These are all contained in a "Template folder"

To start a new project, I want to do a “pack and go” of the template folder. In other words, I want to create a copy of the folder containing these templates and start working on a new project inside that New Project folder by filling out the copied files. This means that the files in the New Project folder should reference each other via formulas without referencing the files in the Template folder that the copy was made from. Is there a script for achieving this? I've been looking but ended up empty handed. Unfortunately I have no coding experience.

1 Comment
2024/01/22
11:05 UTC

2

I wanna make a script that dose a mouse click when noise is heard

Ok I’m a beginner so I might need it on a free scripting software and much help is needed thank you!

4 Comments
2024/01/15
05:01 UTC

0

I need a script to brute force past 2 factor authentication on discord for a friend to get their account back

11 Comments
2024/01/14
00:44 UTC

0

Gmail Bot, Multi-threaded mass gmail creator

The script is capable of opening multiple browser windows (you can choose headless), and it will start creating Gmail each with a different IP (provided proxy list by you).

Supports 3 different number provider (onelinesim, smsactivate and 5sim)

Here is a video of how it works https://youtu.be/e2-bArMwtTE?si=zHvEy8D9cZoEVrvv

Open for sale. Reply below with your offering price.

6 Comments
2024/01/05
17:46 UTC

2

google captcha

Hello

I used Buster script addon to do capatcha google but now i have this error "Your computer or network may be sending automated queries. To protect our users, we can't process your request right now. For more details visit our help page."

How can i fix it? and still using a script to do the captchar

2 Comments
2023/12/03
23:10 UTC

5

Looking for assistance with a script

I have a script I cobbled together to query DNS for A records and CNAME records, ping all of the host names, and then dump the results into a CSV file. This is working OK, but I want to take it up a step and have it export to an Excel spreadsheet and also color code hosts that are online as green and and offline as red. I can open the CSV file in Excel and add formatting rules to accomplish this, but I really want to just automate this when the file gets created. However, I'm having issues getting the script to work exporting to a spreadsheet. Here is what I have to export to a CSV:

# Define the DNS server to query
$dnsServer = "IP.ADD.RESS"
# Define the output CSV file
$outputFile = "DNS_Ping_Results.csv"
# Create an empty array to store the results
$results = @()
# Query A records and CNAME records from DNS
$dnsARecords = Get-DnsServerResourceRecord -ComputerName $dnsServer -ZoneName "domain.com" -RRType A
$dnsCNAMERecords = Get-DnsServerResourceRecord -ComputerName $dnsServer -ZoneName "domain.com" -RRType CNAME
# Function to ping an address and return the result
function Ping-Address($address) {
$pingResult = Test-Connection -ComputerName $address -Count 1 -ErrorAction SilentlyContinue
if ($pingResult) {
return "Online"
} else {
return "Offline"
}
}
# Loop through A records and ping each address
foreach ($record in $dnsARecords) {
$recordObject = New-Object PSObject -Property @{
"RecordType" = "A"
"HostName" = $record.HostName
"IPAddress" = $record.RecordData.IPv4Address.IPAddressToString
"PingStatus" = (Ping-Address -address $record.RecordData.IPv4Address.IPAddressToString)
}
$results += $recordObject
}
# Loop through CNAME records, resolve to A records, and ping each address
foreach ($record in $dnsCNAMERecords) {
$cname = $record.RecordData.HostNameAlias
$resolvedARecord = Resolve-DnsName -Name $cname | Where-Object { $_.QueryType -eq "A" } | Select-Object -First 1
if ($resolvedARecord) {
$recordObject = New-Object PSObject -Property @{
"RecordType" = "CNAME"
"HostName" = $record.HostName
"CNAME" = $cname
"IPAddress" = $resolvedARecord.IPAddress
"PingStatus" = (Ping-Address -address $resolvedARecord.IPAddress)
}
$results += $recordObject
}
}
# Export the results to a CSV file
$results | Export-Csv -Path $outputFile -NoTypeInformation
Write-Host "DNS query and ping results exported to $outputFile"

Can any of you assist on the end part and get it to work with exporting to Excel with formatting rules?

4 Comments
2023/10/05
20:50 UTC

3

Need a script to Change a Group Policy Setting

Does anyone know if it's possible to make a script that changes the group policy setting ( delete user profiles older than a specific number of days on system restart ). I have to constantly change this setting individually on computers at work and would love to just run a script on each computer to to it automatically. I'd prefer to push this setting out over azure that would make my life easier, but for the sake of keeping this short, I can not do that at this current time. Any advice helps thank you.

0 Comments
2023/09/19
17:45 UTC

1

Flash drive

Theoretically! Is there a script you can add to a normal flash drive to make it save the chrome saved passwords and or be able to do it on a laptop for example a chromebook.

4 Comments
2023/09/15
02:49 UTC

1

Looking for a script that can change link from reddit share to post to my profile

i share posts that i like but irritated by selecting my profile in the page everytime i want to share a post

https://www.reddit.com/submit?source_id=post-id TO

https://www.reddit.com/user/username/submit?source\_id=t3\_16d8b45

0 Comments
2023/09/11
05:19 UTC

0

need help scripting pretty lost not going to lie

2 Comments
2023/09/03
15:02 UTC

3

Python/Selenium Script To Remove All Reddit Comments

0 Comments
2023/07/22
13:45 UTC

0

I need a script for my strategy on tradingview

1 Comment
2023/07/06
23:44 UTC

0

Roblox Bypass Chatfilter Script

0 Comments
2023/06/26
12:07 UTC

1

I need a script but have no idea on how to make them

I need the script to make a character in gta5 go to where ever the point marked on the map is weather they are in a vehicle or not
if it is going to cost something pm me and I will get back to you

1 Comment
2023/06/23
18:46 UTC

0

Passion Unveiled

INT. LUXURIOUS PENTHOUSE SUITE - NIGHT

Keanu Reeves, exuding raw magnetism, leans against a grand piano. Big Chungus, emanating a seductive aura, stands across the room, their eyes locked in a fierce gaze.

KEANU (voice husky) You have no idea what you do to me, Big Chungus. The way you move, the way you make me feel... It's driving me insane.

BIG CHUNGUS (smirking) Oh, Keanu, my dear, the feeling is mutual. Your presence ignites a fire within me that I can no longer contain.

Keanu strides toward Big Chungus, their bodies inches apart.

KEANU (trailing a finger along Big Chungus's jawline) You've awakened something inside of me, something I thought was long dormant. I can't resist you any longer.

Big Chungus's eyes glimmer with desire as they lean into Keanu's touch.

BIG CHUNGUS (low, sultry voice) Then don't, my love. Let's surrender to this undeniable connection. Let our desires intertwine and create a masterpiece of passion.

Their lips meet in a passionate kiss, sparks igniting between them.

INT. MASTER BEDROOM - NIGHT

Keanu and Big Chungus find themselves lost in a whirlwind of desire, their bodies intertwined under the soft glow of candlelight.

KEANU (breathlessly) You are exquisite, Big Chungus. Every touch, every sensation... it's beyond anything I've ever experienced.

BIG CHUNGUS (moaning softly) Keanu, my love, you awaken sensations within me I never knew existed. I crave your touch, your passion. Take me to the edge and beyond.

Their bodies move in perfect harmony, their lovemaking a symphony of pleasure and vulnerability.

INT. SECLUDED BALCONY - MORNING

Keanu and Big Chungus bask in the afterglow, wrapped in each other's arms, overlooking the breathtaking cityscape.

KEANU (whispering) I never expected to find a love like this, Big Chungus. It's transcendent, forbidden, yet it feels so right.

BIG CHUNGUS (nuzzling against Keanu's chest) Our love knows no boundaries, Keanu. It's a flame that cannot be extinguished. Let's cherish these stolen moments and create memories that will forever burn in our hearts.

They share a lingering kiss, their love sealed in a moment of profound connection.

FADE OUT.

3 Comments
2023/06/22
21:48 UTC

4

Mashup Post: Here's a Powershell script from ChatGPT that outputs a spec script for a Scooby Doo episode

In an effort to bridge the gap between our regular posts that give generally nifty programming scripts and the current influx of television and movie scripts, I asked ChatGPT to write a Powershell script that generates a spec script for an episode of Scooby Doo.


# Define the episode details
$episodeNumber = "Episode 23"
$episodeTitle = "The Haunted Mansion Mystery"
$episodeDescription = "In this thrilling episode, Scooby-Doo and the gang find themselves trapped in a haunted mansion. Join them as they uncover spooky secrets, encounter ghostly apparitions, and solve the mystery of the haunted mansion!"

# Create the script for the Scooby-Doo episode
$scriptContent = @"
# Welcome message
Write-Host "Welcome to Scooby-Doo, $episodeNumber: $episodeTitle"
Write-Host

# Introduction
Write-Host "In this episode, Scooby-Doo, Shaggy, Velma, Daphne, and Fred embark on a new mystery-filled adventure!"
Write-Host

# Setting the scene
Write-Host "The gang finds themselves in front of a creepy, old mansion on a stormy night. Lightning flashes, thunder rolls, and a mysterious figure appears in the window. Jinkies!"
Write-Host

# Investigation begins
Write-Host "Scooby and Shaggy's stomachs growl, but they're soon distracted by a hidden passageway. Velma discovers a clue, while Fred and Daphne split up to search the mansion's rooms."
Write-Host

# Ghostly encounters
Write-Host "As the gang explores, they encounter ghostly apparitions, spooky sounds, and secret passages. Scooby and Shaggy's fear reaches hilarious heights, but they remain determined to solve the mystery."
Write-Host

# Clue analysis
Write-Host "Velma gathers everyone and uncovers a series of clues. With her analytical skills, she pieces together the puzzle, revealing a secret behind the haunting."
Write-Host

# Trap set
Write-Host "Fred devises a plan to catch the culprit. The gang sets a trap, using Scooby and Shaggy as bait. Will it work, or will they be spooked once again?"
Write-Host

# Unmasking the culprit
Write-Host "In a climactic moment, the gang captures the ghost and unmasks the culprit. It turns out to be Old Man Jenkins, the mansion's caretaker, who wanted to scare everyone away!"
Write-Host

# Conclusion
Write-Host "Another mystery solved by the courageous Scooby-Doo and the gang! Join us next time for another thrilling episode filled with laughter, mystery, and lots of Scooby Snacks!"
"@

# Save the script to a file
$scriptPath = "C:\Path\to\save\scooby_doo_script.ps1"
$scriptContent | Out-File -FilePath $scriptPath -Encoding UTF8

# Display success message
Write-Host "Scooby-Doo episode script created successfully at: $scriptPath"
0 Comments
2023/05/26
20:27 UTC

0

Anyone Have "The Last Police(man)" Pilot Script?

3 Comments
2023/05/26
01:06 UTC

0

Don’t wake

INTRO:LIVING ROOM - MOONLIT NIGHT

The living room is dark, except for a faint light coming from the streetlamp outside. Suddenly, a loud CRASH is heard. The camera pans to the source of the sound, revealing a vase shattered on the ground. Mike(20s), the homeowner, enters the room with a flashlight in hand. She looks around, confused. MIKE: (whispering) Who's there?

There's no response. MIKE,takes a few steps forward and shines the flashlight on the broken vase.

MIKE: (whispering) How did this happen?

Suddenly, the flashlight flickers, and the room goes completely dark. Jessica gasps and quickly turns the flashlight back on. When the light returns, she sees a shadowy figure standing in front of her.

MIKE: (screaming) Oh my God!

The figure steps forward, revealing itself as a poltergeist. Jessica backs away, fear etched on her face.

MIKE: (panicking) What do you want from me?

POLTERGEIST: (in a deep, ominous voice) I've come to claim this house as my own. MIKE stumbles back, tripping over

6 Comments
2023/03/26
22:26 UTC

0

Does anyone have the script of eight and a half in italian?

I've searched a lot, but didn't find anything.

3 Comments
2023/03/24
04:57 UTC

0

Script request - Dennis Kelly Together

I’ve been looking for a transcript from Dennis Kelly’s Together (2021). Don’t seem to find anything online and would appreciate any help. Thank you

4 Comments
2023/03/14
14:37 UTC

Back To Top