This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# https://gist.github.com/jtmoon79/c951f81f621bb87ddb60836245aca4ff | |
# | |
# Script to generate a site-to-site Wireguard IPv4 VPN tunnel | |
# configuration files, and commands for systemd services. | |
# This script only covers a narrow scope of possible networking arrangements. | |
# It may not perfectly fit the user's needs, but it may provide the user with | |
# a working example that they can modify for their needs. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
# Used to provide DDNS service for my home | |
# Needs the DNS record pre-creating on Cloudflare | |
# Proxy - uncomment and provide details if using a proxy | |
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
# Cloudflare zone is the zone which holds the record |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# refer to http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=3&t=2565 | |
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch -W -v 05c6 -p 1000 -K" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gammu] | |
port = /dev/tty.HUAWEIMobile-Modem | |
connection = at19200 | |
model = at | |
synchronizetime = yes | |
logfile = /Users/me/.gammu/log | |
logformat = errorsdate | |
gammucoding = utf8 | |
[smsd] |