Skip to content

Instantly share code, notes, and snippets.

View nzbr's full-sized avatar
💾

nzbr

💾
View GitHub Profile
@noelboss
noelboss / git-deployment.md
Last active July 16, 2024 09:50
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@thexyno
thexyno / mastodonfollow.py
Created April 27, 2022 00:13
A script to follow all accounts given via stdin on mastodon
#!/usr/bin/env nix-shell
#! nix-shell -i python3 -p python3Packages.mastodon-py
from mastodon import Mastodon
import argparse
import sys
import time
parser = argparse.ArgumentParser(description='follow a (newline terminated) list of mastodon accounts, given via stdin')
parser.add_argument('-t', '--token', help='oauth2 token')