Skip to content

Instantly share code, notes, and snippets.

View FalcoSuessgott's full-sized avatar
🎯
Focusing

FalcoSuessgott

🎯
Focusing
View GitHub Profile
@renzok
renzok / bash-template
Last active June 28, 2024 05:49
A template bash script based on google style guide with some little improvements
#!/bin/bash
# Here short description of this script
# This is just a template to be used for writing new bash scripts
###
# Based on Google Style Guide: https://google.github.io/styleguide/shell.xml
# General remarks
# * Executables should have no extension (strongly preferred) or a .sh extension.
# * Libraries must have a .sh extension and should not be executable
@trscavo
trscavo / md_inspect.sh
Last active April 12, 2024 07:25
Bash script to inspect a SAML metadata file
#!/bin/bash
###########################################################
# Inspect a SAML metadata file and report its characteristics.
#
# Usage: md_inspect.sh [-vs] [MD_FILE]
#
# Optionally takes the path to the metadata file as a command-line
# parameter. If none is given, takes its input from stdin instead.
#
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active July 18, 2024 07:33
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target