Skip to content

Instantly share code, notes, and snippets.

View masterlog80's full-sized avatar
💭
I may be slow to respond.

masterlog80

💭
I may be slow to respond.
View GitHub Profile
@jtmoon79
jtmoon79 / wireguard-site-to-site.sh
Last active April 12, 2024 14:37
Wireguard Site to Site generator
#!/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.
#
@Tras2
Tras2 / cloudflare-ddns-update.sh
Last active September 22, 2024 08:28
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/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
@UedaTakeyuki
UedaTakeyuki / 99-Qualcomm_Siemens-SG75.rules
Created August 24, 2017 08:55
udev rule for usb 3G dongle "05c6:6000 Qualcomm, Inc. Siemens SG75"
# 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"
@rcoup
rcoup / .gammurc
Last active May 23, 2024 16:59
Gammu config and script for receiving SMS via a USB modem attached to an OSX computer and forwarding it into iMessage, where it will appear on all your devices.
[gammu]
port = /dev/tty.HUAWEIMobile-Modem
connection = at19200
model = at
synchronizetime = yes
logfile = /Users/me/.gammu/log
logformat = errorsdate
gammucoding = utf8
[smsd]