Skip to content

Instantly share code, notes, and snippets.

View ristomatti's full-sized avatar

Ristomatti Airo ristomatti

  • Maya Consulting Oy
  • Helsinki, Finland
View GitHub Profile
@m-radzikowski
m-radzikowski / script-template.sh
Last active May 4, 2024 04:13
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@sakurai-youhei
sakurai-youhei / _etc_nginx_conf.d_default.conf
Last active May 23, 2021 11:17
Reverse-proxying blynk-server by Nginx with simple WAF
# empty
@kabili207
kabili207 / Rclone systemd service.md
Last active May 13, 2024 13:48
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox