Skip to content

Instantly share code, notes, and snippets.

@DovieW
DovieW / issues-gitea-to-github.sh
Created November 16, 2023 23:47
Transfer issues from Gitea to Github
#!/bin/bash
# Configuration
GITEA_REPO="username/repository"
GITEA_API_TOKEN="your_gitea_api_token"
GITHUB_REPO="username/repository"
GITHUB_API_TOKEN="your_github_api_token"
GITEA_API_URL="https://your_gitea_instance/api/v1"
GITHUB_API_URL="https://api.github.com"
ISSUE_FILE="gitea_issues.json"
@DovieW
DovieW / send_email.ps1
Created May 11, 2023 02:26
Send Email via PowerShell
$to = "user1@email.com,user2@email.com" # comma separate multiple recipients
$from = "sender@email.com"
$subject = "subject goes here"
$body = "message body goes here"
$smtpServer = "smtp.gmail.com"
$smtpClient = New-Object Net.Mail.SmtpClient($smtpServer, 587) # port 25 for non SSL, port 587 for SSL
$smtpClient.EnableSsl = $true # set to $true for SSL