Skip to content

Instantly share code, notes, and snippets.

@CodeShakingSheep
CodeShakingSheep / gitea-revert-repos.sh
Created June 18, 2023 11:45
Revert import of organisation or user repositories from GitHub to Gitea based on https://dev.to/nicolasboyer/migrate-all-of-your-repos-from-github-to-gitea-3fk
#!/bin/bash
GITHUB_USERNAME=
GITHUB_TOKEN=
GITHUB_ORGANISATION=
GITHUB_API_CALL=
GITEA_USERNAME=
GITEA_TOKEN=
GITEA_DOMAIN=
#!/bin/bash
GITHUB_USERNAME=
GITHUB_TOKEN=
GITHUB_ORGANISATION=
GITHUB_API_CALL=
GITEA_USERNAME=
GITEA_TOKEN=
GITEA_DOMAIN=
@CodeShakingSheep
CodeShakingSheep / nextcloud-deck-export-import.py
Last active April 29, 2024 01:57 — forked from svbergerem/nextcloud-deck-export-import.py
Nextcloud Deck Export/Import (Note that all comments will be created from the user account specified in the first lines of the script)
# You need to have the 'requests' module installed, see here: https://pypi.org/project/requests/
import requests
# Note regarding 2FA
# You can either disable 'Enforce 2FA' setting and disable '2FA'. Then you can just use your regular user password.
# Or you can just use an app password, e.g. named 'migration' which you can create in 'Personal settings' --> 'Security'. After successful migration you can delete the app password.
urlFrom = 'https://nextcloud.domainfrom.tld'
authFrom = ('username', 'user password or app password')
urlTo = 'https://nextcloud.domainto.tld'