Skip to content

Instantly share code, notes, and snippets.

@Johnley
Johnley / copy-files.ps1
Created April 17, 2023 20:52
Copy files to destination IP addresses (useful for UPS firmware updates)
#ChatGPT Generated
# Define variables for the source files, destination folder, and SSH username
$sourceFiles = @(
"C:\path\to\file1.txt"
"C:\path\to\file2.txt"
"C:\path\to\file3.txt"
)
$destFolder = "/path/to/destination/folder/"
$username = "username"
#This requires discord.py, install with (Windows) py -3 -m pip install -U discord.py
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='D')
@bot.command()
async def ping(context):
await context.send('pong')

Keybase proof

I hereby claim:

  • I am johnley on github.
  • I am johnley (https://keybase.io/johnley) on keybase.
  • I have a public key ASDT4OgllA9L_JPV0IiauB8uDqWWssmhu-EYxfPi69yztwo

To claim this, I am signing this object: