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/zsh | |
QA_SERVERS=(...list of servers separated by spaces as array...) | |
PRD_SERVERS=(...list of servers separated by spaces as array...) | |
SSH_USER=pingfederate | |
LOG_PATH=/ping/pingfederate-7.0.1/pingfederate/log/server.log | |
# Get qa or prod command argument from shell invocation | |
env="$1" | |
case "$env" in |
Note: Dues to Jool's GRO offload limitation, it can not be used in cloud environments such as GCE.
NAT64 runs on an Ubuntu 16.04.2 host and is implemented using Jool v3.5.4. Start by installing the Jool dependencies:
sudo apt-get update && sudo apt-get install -y zip gcc make linux-headers-$(uname -r) dkms \
pkg-config libnl-genl-3-dev autoconf
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
configure | |
set vpn ipsec ipsec-interfaces interface eth0 # your WAN interface | |
set vpn ipsec auto-firewall-nat-exclude enable | |
set vpn ipsec nat-networks allowed-network 0.0.0.0/0 # check that's OK before you set it | |
set vpn l2tp remote-access authentication mode local | |
set vpn l2tp remote-access authentication local-users username <user> password <password> | |
set vpn l2tp remote-access client-ip-pool start <starting IP> | |
set vpn l2tp remote-access client-ip-pool stop <end IP> | |
set vpn l2tp remote-access dns-servers server-1 <DNS server IP> | |
set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret |
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 python3 | |
""" | |
Python 3 webserver which supports IPv6 | |
original from: | |
https://gist.github.com/akorobov/7903307 | |
Pseudo path of /ip will report client IP address back to client, | |
otherwise, shows directory index |
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/sh | |
showHelp() { | |
cat <<EOF | |
This script requires 2 or 3 arguments exactly. | |
"${0}" <redhat username> <redhat password> [<redhat release>] | |
examples: | |
"${0}" user1 passw0rd! 7Server | |
"${0}" user2 pAssw@rd | |
By default the omission of the release version will default to 7Server being set. |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
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
<?xml version="1.0"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsl:output version="1.0" encoding="utf-8" indent="yes" name="xml" /> | |
<xsl:template match="/"> | |
<xsl:apply-templates /> |
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
# Epitome | |
I want to have os image that can login with password. | |
download UEC image. | |
for example, this precise. | |
http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img | |
this image was forbidden to password login feature in terminal console. | |
it's reasonable for use of cloud image. |
OlderNewer