Skip to content

Instantly share code, notes, and snippets.

@jvaubourg
jvaubourg / sshvpn.sh
Last active October 28, 2022 19:32
Access to a remote private IPv4 network, using SSH as a VPN
#!/bin/bash
# Goal to reach:
# +--------------------------------+ +-----------------------------+
# | LOCAL LAPTOP | In | REMOTE SERVER |
# | tun1 | <=(ter)=> | tun1 |
# | Private IPv4 of the remote net | net | Remote IPv4 private network |
# +--------------------------------+ +-----------------------------+
# Good doc: https://help.ubuntu.com/community/SSH_VPN
@jazzyisj
jazzyisj / package_unavailable_entities.yaml
Last active February 2, 2024 12:31
Unavailable Sensor Detection and Notification
#######################################################################################################################
# The Unavailable Entities Sensor Package has been moved to it's own repository!
# https://github.com/jazzyisj/unavailable-entities-sensor
#######################################################################################################################
@ntrogers
ntrogers / apple_caching_commands.sh
Last active May 3, 2024 17:39
[Apple Cacheing commands]
https://support.apple.com/guide/mac-help/configure-advanced-content-caching-settings-mchl91e7141a/mac
# On client, test caching server availability
/usr/bin/assetcachelocatorutil
# View log
log show --predicate 'subsystem == "com.apple.AssetCache"'
log stream --predicate 'subsystem == "com.apple.AssetCache"'
# Display content cache settings
@bryanjswift
bryanjswift / .rtorrent.rc
Created December 28, 2011 02:42
rtorrent configuration file with description
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)