I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
| settings = { | |
| delay = 1, | |
| maxProcesses = 3, | |
| logfile = "/var/log/lsyncd.log", | |
| } | |
| targetlist = { | |
| "10.0.1.24:/var/www/thomasjstein.com", | |
| "10.0.1.26:/var/www/thomasjstein.com" | |
| } |
| #!/bin/bash | |
| # | |
| # lsyncd: Starts the lsync Daemon | |
| # | |
| # description: Lsyncd uses rsync to synchronize local directories with a remote | |
| # machine running rsyncd. Lsyncd watches multiple directories | |
| # trees through inotify. The first step after adding the watches | |
| # is to, rsync all directories with the remote host, and then sync | |
| # single file buy collecting the inotify events. |
| #!/bin/sh | |
| # Copyright 2020 Paul Morgan | |
| # License: GPLv2 (https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) | |
| set -x | |
| set -e | |
| # | |
| # Docker build calls this script to harden the image during build. | |
| # | |
| # NOTE: To build on CircleCI, you must take care to keep the `find` | |
| # command out of the /proc filesystem to avoid errors like: |
| # /etc/systemd/system/docker.service.d/docker-nftables.conf | |
| # disable iptables in docker, allowing nftables to do work | |
| [Service] | |
| ExecStart= | |
| ExecStart=/usr/bin/docker daemon -H fd:// --iptables=false |
| # /etc/systemd/system/docker.service.d/docker-nftables.conf | |
| # disable iptables in docker, allowing nftables to do work | |
| [Service] | |
| ExecStart= | |
| ExecStart=/usr/bin/docker daemon -H fd:// --iptables=false |
| sudo apt-get update | |
| sudo apt-get install golang-go -y | |
| wget https://dist.ipfs.io/go-ipfs/v0.4.10/go-ipfs_v0.4.10_linux-386.tar.gz | |
| tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz | |
| sudo mv go-ipfs/ipfs /usr/local/bin/ipfs |
| #!/bin/bash | |
| # ============================================================================= | |
| # Author: Chu-Siang Lai / chusiang (at) drx.tw | |
| # Filename: teams-chat-post-for-workflows.sh | |
| # Modified: 2024-07-22 11:44 (UTC+08:00) | |
| # Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows. | |
| # Reference: | |
| # | |
| # - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
| # - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/ |