This file contains 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 | |
# Set credentials and address for VNS3 manager | |
VNS3_PW=pa55Word | |
VNS3_IP=10.11.22.33 | |
# Use IPsec connection 2 | |
VNS3_EP=2 | |
# Clear out any existing IPsec tunnels | |
while true; do | |
TUNNEL=$(curl -s -k -X GET -u api:"$VNS3_PW" \ | |
https://"$VNS3_IP":8000/api/ipsec | python -mjson.tool \ |
This file contains 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 python | |
""" | |
Simplified stand-alone script to mimic codrspace.com short code processing. | |
Script takes 1 optional argument, the path of your python environment. | |
The rest of the input is read directly from stdin and expected to be codrspace | |
markdown text. The output is codrspace html after all markdown and codrspace | |
specific short codes have been processed. |
This file contains 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 python | |
""" | |
A pure python ping implementation using raw socket. | |
Note that ICMP messages can only be sent from processes running as root. | |
Derived from ping.c distributed in Linux's netkit. That code is |