script
webhook
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
script
-
GNU Parallel, where have you been all my life?
I use Go. You can run scripts with go run directly, and this package makes shell tasks easy: https://github.com/bitfield/script
-
Scripting with Go: A Modest Proposal
If you're not deeply familiar with Go there is one detail missing from this post (though it's in the script README) - what a complete program looks like. Here's the example from https://github.com/bitfield/script#a-realistic-use-case
package main
- 'script' is for writing shell-like pipelines in Go
- script
-
Some Useful Patterns for Go's os/exec
Imho also worth mentioning: https://github.com/bitfield/script
-
Is there anything golang similar to python plumbum?
I would say bitfield/script is the closest thing to plumbum. You should check out this article written by the author.
-
Change go code behaviour at runtime
There are lua and Go-script options. My impression is that a few are well accepted but perhaps just a little less widely used than the first two. I cannot speak from personal experience on them. Shopify has a Lua 5.2 port: https://github.com/Shopify/go-lua and I know https://github.com/bitfield/script is one of the Go-like scripting languages, but I think it's more for a shell script replacement than embedding.
-
Planning to learn Go, does it have this feature?
Parallel to my other comment, u/Akirapearl, if you find yourself getting annoyed at Go’s system-language focus, you might find John’s “script” Go library useful: https://github.com/bitfield/script
- DevOps Junior, Why is BASH something I need to learn?
-
Scripting with Go
It took me a while to find the link to the library "script" and it's repo - https://github.com/bitfield/script
webhook
-
Telegram bots for server control
Try this awesome tool https://github.com/adnanh/webhook and you can make any bot you wish
-
What is the preferred way to send a command from one container to another?
Something like this: https://github.com/adnanh/webhook for a low code solution. This is the just the top hit, there tons of “Linux WebHook receivers” out there. Container A has the WebHook config to run ffmpeg. Container B runs curl to trigger the WebHook. Can be instrumented with fairly simple shell script.
-
Goshia: the simplest of the simplest CD tool
If all you need is a Webhook trigger, you might want to take a look at https://github.com/adnanh/webhook
-
Open source webhook service
I thought this is for receiving webhooks at first glance, like another alternative for node-red, n8n.io, and adnanh/webhook.
-
Is there a way to automatically update a bot running on a separate machine through GitHub?
you can register a webhook on github and listen to it from your second pc using https://github.com/adnanh/webhook
-
Event-driven automation with Ansible
I occasionally trigger playbooks using this simple go project https://github.com/adnanh/webhook.
-
Can anyone explain what the dev ops section in this flowchart is used for. I am familiar with all the rest.
You can do a hell of a lot with webhooks, a bit of scripting and, err, webhook.
- The best way to run script after receiving HTTP request
- Sending an HTTP Request to Play a Sound on my Server
-
Container Updating Strategies
I use https://github.com/adnanh/webhook to deploy the changes in the git repository to the server and have it run docker compose up -d. I actually just modified it this week to run the docker commands in a background queue using https://vicerveza.homeunix.net/~viric/soft/ts/ (commands are added to a queue and run in the order they were added, useful for long-running commands) this way webhook can reply that the git repository was updated on the server and the docker compose command was added to the task queue and webhook doesn't timeout.
What are some alternatives?
Hey - HTTP load generator, ApacheBench (ab) replacement
Gitea - Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
bombardier - Fast cross-platform HTTP benchmarking tool written in Go
Gogs - Gogs is a painless self-hosted Git service
Go Metrics - Go port of Coda Hale's Metrics library
Scaleway-cli - Command Line Interface for Scaleway
Moby - The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
EasySSH - unmaintained
Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
grafana-matrix-forwarder
grapes - easy way to distribute commands over ssh.
convoy - The Cloud Native Webhooks Gateway