Skip to content

Instantly share code, notes, and snippets.

@alext
alext / vpnc-script-aws
Last active July 12, 2018 12:54
vpnc script to route all AWS IP ranges over VPN.
#!/bin/bash
# vpnc-script wrapper for use with openconnect that routes all AWS IP ranges over the VPN.
# Pass any additional IP ranges to be routed as args to the script.
#
# Requirements: bash, curl and jq.
#
# Example usage:
# openconnect https://vpn.example.com/profile --script '/path/to/vpnc-script-aws'
#
#!/bin/bash
# vpnc-script wrapper for use with openconnect that Prevents routing DNS over the VPN.
#
# Example usage:
# openconnect https://vpn.example.com/profile --script '/path/to/vpnc-script-no-dns'
unset INTERNAL_IP4_DNS
unset CISCO_DEF_DOMAIN
@alext
alext / christmas-tree.yml
Last active December 12, 2017 13:20
Concourse pipeline that displays a Christmas tree.
resources:
- name: 'x'
type: time
source:
interval: 20s
check_every: 20s
- name: 'y'
type: time
source:
interval: 2000h